|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fxcm.fix.PositionQty
public class PositionQty
PositionQty component block. Used to specify position qty
| Constructor Summary | |
|---|---|
PositionQty()
Empty constructor. |
|
PositionQty(double aLongQty,
double aShortQty)
Constructor with full set of fields. |
|
PositionQty(ISide aSide,
double aQty)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object aObj)
Checks if a PositionAmountData object is equal to this PositionAmountData object. |
boolean |
fill(PositionQty aOrig)
Fills out object state. |
double |
getLongQty()
Obtains long qty (if side is BUY, 0 otherwise). |
double |
getQty()
convenience method to get the qty whether its short or long |
double |
getShortQty()
Obtains short qty (if side is SELL, 0 otherwise). |
ISide |
getSide()
|
void |
setLongQty(double aLongQty)
Updates long quantity. |
void |
setShortQty(double aShortQty)
Updates short quantity. |
void |
setSideQty(ISide aSide,
double aQty)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PositionQty()
public PositionQty(double aLongQty,
double aShortQty)
aLongQty - Quantity of position if side is BUY, 0 otherwiseaShortQty - Quantity of position if side is SELL, 0 otherwise
public PositionQty(ISide aSide,
double aQty)
| Method Detail |
|---|
public ISide getSide()
public double getShortQty()
public double getLongQty()
public double getQty()
public void setSideQty(ISide aSide,
double aQty)
public void setShortQty(double aShortQty)
aShortQty - Sell side amountpublic void setLongQty(double aLongQty)
aLongQty - Buy side amount.public boolean equals(Object aObj)
equals in class ObjectaObj - Code object to compare.
true if codes are the same; false otherwise.public boolean fill(PositionQty aOrig)
aOrig - Object to copy state from.
true if state is updated successfully; false otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||