Package com.strategyquant.tradinglib
Class SwapMethod
java.lang.Object
com.strategyquant.tradinglib.SwapMethod
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble
,Serializable
public class SwapMethod
extends Object
implements com.strategyquant.lib.settings.IXMLAble, Serializable
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionSwapMethod(boolean use, String type, double longSwap, double shortSwap, String tripleSwapOn)
-
Method Summary
Modifier and TypeMethodDescriptionclone()
double
double
getType()
org.jdom2.Element
getXML()
boolean
isUsed()
void
setFromXML(org.jdom2.Element element)
-
Constructor Details
-
SwapMethod
public SwapMethod() -
SwapMethod
-
-
Method Details
-
getXML
public org.jdom2.Element getXML()- Specified by:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
-
setFromXML
- Specified by:
setFromXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Throws:
Exception
-
isUsed
public boolean isUsed() -
getType
-
getLongSwap
public double getLongSwap() -
getShortSwap
public double getShortSwap() -
getTripleSwapOn
-
clone
-
getTypeSymbol
-
printFormatedName
-