public class NodeTweakParams extends Serializer
Modifier and Type | Field and Description |
---|---|
boolean |
_bIsTweakProportional
Is the tweak parallel or proportional
|
double |
_dblTweakAmount
Node tweak amount
|
int |
_iTweakNode
Node to be tweaked
|
static int |
NODE_FLAT_TWEAK
Flat Curve tweak constant
|
NULL_SER_STRING, VERSION
Constructor and Description |
---|
NodeTweakParams(byte[] ab)
NodeTweakParams de-serialization from input byte array
|
NodeTweakParams(int iTweakNode,
boolean bIsTweakProportional,
double dblTweakAmount)
NodeTweakParams constructor
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public static final int NODE_FLAT_TWEAK
public int _iTweakNode
public boolean _bIsTweakProportional
public double _dblTweakAmount
public NodeTweakParams(int iTweakNode, boolean bIsTweakProportional, double dblTweakAmount) throws java.lang.Exception
iTweakNode
- Node to be tweaked - Set to NODE_FLAT_TWEAK for flat curve tweakbIsTweakProportional
- True => Tweak is proportional, False => paralleldblTweakAmount
- Amount to be tweaked - proportional tweaks are represented as percent, parallel
tweaks are absolute numbersjava.lang.Exception
public NodeTweakParams(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if NodeTweakParams cannot be properly de-serializedpublic byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception