Class EquityPrioritizer<DATATYPE extends EquityFitData>
java.lang.Object
com.illumon.modelfarm.fitterfarm.equity.EquityPrioritizer<DATATYPE>
- Type Parameters:
DATATYPE
- data type
- All Implemented Interfaces:
ExecPrioritizer<FitScope,
DATATYPE, EquityFitDataManager<DATATYPE>>
public class EquityPrioritizer<DATATYPE extends EquityFitData>
extends Object
implements ExecPrioritizer<FitScope,DATATYPE,EquityFitDataManager<DATATYPE>>
A utility for prioritizing the processing of new data to fit.
Underlying changes above a threshold are escalated to a high priority.
-
Constructor Summary
ConstructorsConstructorDescriptionEquityPrioritizer
(double highPriorityUnderlyingChange) Creates a new prioritizer for equities. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execHappened
(EquityFitData data) A new execution happened using this row data.int
priority
(EquityFitDataManager dataManager, long index) Compute the priority for processing the data at the indicated table index.
-
Constructor Details
-
EquityPrioritizer
public EquityPrioritizer(double highPriorityUnderlyingChange) Creates a new prioritizer for equities.- Parameters:
highPriorityUnderlyingChange
- underlying relative price changes greater than this threshold are refit with a high priority. For example, 0.02 for 2%.
-
-
Method Details
-
priority
Description copied from interface:ExecPrioritizer
Compute the priority for processing the data at the indicated table index.- Specified by:
priority
in interfaceExecPrioritizer<FitScope,
DATATYPE extends EquityFitData, EquityFitDataManager<DATATYPE extends EquityFitData>> - Parameters:
dataManager
- interface for accessing and querying data contained in rows of a dynamic table.index
- index of the data in the fit data manager source table.- Returns:
- priority of processing the data at the indicated index. Higher numbers are higher priority.
-
execHappened
Description copied from interface:ExecPrioritizer
A new execution happened using this row data.- Specified by:
execHappened
in interfaceExecPrioritizer<FitScope,
DATATYPE extends EquityFitData, EquityFitDataManager<DATATYPE extends EquityFitData>> - Parameters:
data
- data used in the execution.
-