Package com.illumon.modelfarm
Interface ExecPrioritizer<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,DATATYPE>>
- Type Parameters:
KEYTYPE- unique ID key typeDATATYPE- data type
- All Known Implementing Classes:
EquityPrioritizer,FuturesPrioritizer
public interface ExecPrioritizer<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,DATATYPE>>
An interface for prioritizing the execution of table rows.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecHappened(DATATYPE data) A new execution happened using this row data.intpriority(ROWDATAMANAGERTYPE dataManager, long index) Compute the priority for processing the data at the indicated table index.
-
Method Details
-
priority
Compute the priority for processing the data at the indicated table index.- 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
A new execution happened using this row data.- Parameters:
data- data used in the execution.
-