Package com.strategyquant.tradinglib
Class FitnessCollection
java.lang.Object
com.strategyquant.tradinglib.FitnessCollection
The Class FitnessCollection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.clone()
Clone.double
getFitness(byte sampleType)
Gets the fitness.org.jdom2.Element
getXML()
Gets the xml.void
setFitness(byte sampleType, double fitness)
Sets the fitness.void
setFromXML(org.jdom2.Element parent)
Sets the from XML.
-
Constructor Details
-
FitnessCollection
public FitnessCollection()
-
-
Method Details
-
getFitness
public double getFitness(byte sampleType)Gets the fitness.- Parameters:
sampleType
- the sample type- Returns:
- the fitness
-
setFitness
public void setFitness(byte sampleType, double fitness)Sets the fitness.- Parameters:
sampleType
- the sample typefitness
- the fitness
-
clone
Clone.- Returns:
- the fitness collection
-
clear
public void clear()Clear. -
getXML
public org.jdom2.Element getXML()Gets the xml.- Returns:
- the xml
-
setFromXML
public void setFromXML(org.jdom2.Element parent)Sets the from XML.- Parameters:
parent
- the new from XML
-