public class Databank
extends com.strategyquant.core.databanks.CustomConditionsDatabank
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
Log
The Constant Log.
|
java.util.ArrayList<SQResultsGroup> |
resultList
The result list.
|
Constructor and Description |
---|
Databank(java.lang.String name)
Instantiates a new databank.
|
Databank(java.lang.String name,
boolean selectable)
Instantiates a new databank.
|
Modifier and Type | Method and Description |
---|---|
void |
add(SQResultsGroup result)
Adds the.
|
void |
addDatabankListener(com.strategyquant.core.gui.tables.databank.DatabankListener listener)
Adds the databank listener.
|
boolean |
delete(SQResultsGroup result)
Delete.
|
boolean |
deleteAll()
Delete all.
|
SQResultsGroup |
get(int index)
Gets the.
|
com.strategyquant.core.gui.tables.databank.DatabankTable |
getDatabankTable()
Gets the databank table.
|
FitnessFunction |
getFitnessFunction()
Gets the fitness function.
|
int |
getMaximumResults()
Gets the maximum results.
|
java.lang.String |
getName()
Gets the name.
|
int |
getNumberOfResults()
Gets the number of results.
|
int |
getNumberOfSelectedResults()
Gets the number of selected results.
|
java.util.ArrayList<SQResultsGroup> |
getSelectedResults()
Gets the selected results.
|
void |
highlightStrategy(SQResultsGroup strategyResults)
Highlight strategy.
|
boolean |
isStrategyNameUnique(java.lang.String strategyName)
Checks if is strategy name unique.
|
boolean |
isStrategyNameUnique(java.lang.String strategyName,
SQResultsGroup editedStrategyResults)
Checks if is strategy name unique.
|
void |
selectAll(boolean selected)
Select all.
|
void |
setFitnessFunction(FitnessFunction fitnessFunction)
Sets the fitness function.
|
void |
setMaximumResults(int maxResults)
Sets the maximum results.
|
addCustomCondition, checkCustomConditions, checkEveryCondition, clearCustomConditions, getCustomConditions, removeCustomCondition, removeCustomCondition, resetCustomConditions, setCustomConditions, setRunController
public static final org.slf4j.Logger Log
public java.util.ArrayList<SQResultsGroup> resultList
public Databank(java.lang.String name)
name
- the namepublic Databank(java.lang.String name, boolean selectable)
name
- the nameselectable
- the selectablepublic java.lang.String getName()
public void addDatabankListener(com.strategyquant.core.gui.tables.databank.DatabankListener listener)
listener
- the listenerpublic com.strategyquant.core.gui.tables.databank.DatabankTable getDatabankTable()
public void add(SQResultsGroup result)
result
- the resultpublic boolean isStrategyNameUnique(java.lang.String strategyName)
strategyName
- the strategy namepublic boolean isStrategyNameUnique(java.lang.String strategyName, SQResultsGroup editedStrategyResults)
strategyName
- the strategy nameeditedStrategyResults
- the edited strategy resultspublic boolean delete(SQResultsGroup result)
result
- the resultpublic boolean deleteAll()
public int getNumberOfResults()
public SQResultsGroup get(int index)
index
- the indexpublic void setMaximumResults(int maxResults)
maxResults
- the new maximum resultspublic int getMaximumResults()
public void setFitnessFunction(FitnessFunction fitnessFunction)
fitnessFunction
- the new fitness functionpublic FitnessFunction getFitnessFunction()
public java.util.ArrayList<SQResultsGroup> getSelectedResults()
public int getNumberOfSelectedResults()
public void highlightStrategy(SQResultsGroup strategyResults)
strategyResults
- the strategy resultspublic void selectAll(boolean selected)
selected
- the selected