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()doubledoublegetType()org.jdom2.ElementgetXML()booleanisUsed()voidsetFromXML(org.jdom2.Element element)
-
Constructor Details
-
SwapMethod
public SwapMethod() -
SwapMethod
-
-
Method Details
-
getXML
public org.jdom2.Element getXML()- Specified by:
getXMLin interfacecom.strategyquant.lib.settings.IXMLAble
-
setFromXML
- Specified by:
setFromXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Throws:
Exception
-
isUsed
public boolean isUsed() -
getType
-
getLongSwap
public double getLongSwap() -
getShortSwap
public double getShortSwap() -
getTripleSwapOn
-
clone
-
getTypeSymbol
-
printFormatedName
-