Package com.strategyquant.tradinglib
Class RiskManagementMethod
java.lang.Object
com.strategyquant.tradinglib.debug.Debugger
com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
com.strategyquant.tradinglib.propertygrid.ParametersTableItem
com.strategyquant.tradinglib.RiskManagementMethod
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble
,com.strategyquant.lib.utils.ISQCloneable<RiskManagementMethod>
,Serializable
public abstract class RiskManagementMethod
extends com.strategyquant.tradinglib.propertygrid.ParametersTableItem
implements com.strategyquant.lib.utils.ISQCloneable<RiskManagementMethod>
The Class RiskManagementMethod.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
_text, editable, name
Fields inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
df, Log, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_INT, TYPE_INT_LIST, TYPE_STR_LIST, TYPE_STRING, TYPE_TIME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetClone()
Gets the clone.org.jdom2.Element
getXML()
Gets the xml.void
setFromXML(org.jdom2.Element rmElem)
Sets the from XML.void
Sets the name.abstract void
verifyOrder(Trader trader, ILiveOrder order)
Verify order.Methods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItem
equals, getDescription, getEngine, getFormatedName, getName, getNote, isEditable, isUsed, newInstance, printFormatedName, setEditable, setFromParameterEl, setUsed
Methods inherited from class com.strategyquant.tradinglib.propertygrid.ParametersTableItemProperties
getParametersList, getParameterValue, getParams, getPGParameterValue, setDefaultValues, setParameterValue, setParams
Methods inherited from class com.strategyquant.tradinglib.debug.Debugger
debug, fdebug
-
Constructor Details
-
RiskManagementMethod
public RiskManagementMethod()
-
-
Method Details
-
setName
Sets the name.- Parameters:
name
- the new name
-
getXML
public org.jdom2.Element getXML()Gets the xml.- Specified by:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Overrides:
getXML
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Returns:
- the xml
-
setFromXML
Sets the from XML.- Specified by:
setFromXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Overrides:
setFromXML
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Parameters:
rmElem
- the new from XML- Throws:
Exception
- the exception
-
verifyOrder
Verify order.- Parameters:
trader
- the traderorder
- the order
-
getClone
Gets the clone.- Specified by:
getClone
in interfacecom.strategyquant.lib.utils.ISQCloneable<RiskManagementMethod>
- Overrides:
getClone
in classcom.strategyquant.tradinglib.propertygrid.ParametersTableItem
- Returns:
- the clone
- Throws:
Exception
- the exception
-