public class ResponseValueTweakParams extends Serializer
Modifier and Type | Field and Description |
---|---|
boolean |
_bIsTweakProportional
Is the tweak parallel or proportional
|
double |
_dblTweakAmount
Node tweak amount
|
int |
_iTweakNode
Index of the Instrument whose Manifest Measure is to be Tweaked
|
static int |
MANIFEST_MEASURE_FLAT_TWEAK
Flat Manifest Measure Tweak Mode
|
NULL_SER_STRING, VERSION
Constructor and Description |
---|
ResponseValueTweakParams(byte[] ab)
ResponseValueTweakParams de-serialization from input byte array
|
ResponseValueTweakParams(int iTweakNode,
boolean bIsTweakProportional,
double dblTweakAmount)
ResponseValueTweakParams constructor
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
byte[] |
serialize()
Serialize into a byte array.
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public static final int MANIFEST_MEASURE_FLAT_TWEAK
public int _iTweakNode
public boolean _bIsTweakProportional
public double _dblTweakAmount
public ResponseValueTweakParams(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 ResponseValueTweakParams(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if ResponseValueTweakParams cannot be properly de-serializedpublic byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer