public class EvaluationTimeRangeReminder
extends java.lang.Object
InputMeasurement's and CostFunctionDataSeries's
that are used within the evaluation of a TechnicalSystem. Especially if the DataRepetition in
the EvaluationSettings is set to DataRepetition.DAILY this class will prevent recalculating
an usable set of discrete values by applying a daily shift again and again. Overall, this will accelerate the
evaluation process.| Constructor and Description |
|---|
EvaluationTimeRangeReminder(OptionModelController optionModelController,
long evalStartTime,
long evalEndTime)
Instantiates a new evaluation range values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Long> |
getChangeEventTimesForMeasurements(long timeFrom,
long timeTo)
Returns the change event times for the measurements within the specified time range.
|
AbstractCostFunction |
getCostFunction(java.lang.String domain,
Connectivity connectivity)
Returns the
AbstractCostFunction for the specified domain in connection with the Connectivity. |
CostFunctionDataSeries |
getCostFunctionHistory(java.lang.String domain,
Connectivity connectivity)
|
long |
getEvalEndTime()
Returns the evaluation end time for this reminder instance.
|
long |
getEvalStartTime()
Returns the evaluation start time for this reminder instance.
|
AbstractInputMeasurement |
getInputMeasurement(java.lang.String variableID)
Returns the
InputMeasurement of the current TechnicalSystem for the specified ID of a SystemVariableDefinition. |
AbstractInputMeasurement |
getInputMeasurement(SystemVariableDefinition sysVarDef)
Returns the
InputMeasurement for the specified SystemVariableDefinition. |
FixedVariable |
getInputMeasurement4PointInTime(TechnicalSystemState tss,
java.lang.String variableID)
Gets the measurement for the specified
SystemVariableDefinition for the specified point in time
in case that the variable is indeed a measurement value (). |
java.util.List<FixedVariable> |
getInputMeasurements(TechnicalSystemState technicalSystemState,
boolean addDefaultMeasurementValueIfPredictionIsNotAvailable)
Returns the list of
FixedVariable's that contain the current InputMeasurement's for
the specified TechnicalSystemState's global time. |
void |
setInputMeasurement(java.lang.String variableID,
AbstractInputMeasurement aim)
Sets the input measurement of the current system for the specified ID of a
SystemVariableDefinition. |
void |
updateInputMeasurementsInIOList(TechnicalSystemState technicalSystemState)
Updates the values for
InputMeasurement's (measurements and user set points)
in the specified TechnicalSystemState. |
public EvaluationTimeRangeReminder(OptionModelController optionModelController, long evalStartTime, long evalEndTime)
optionModelController - the option model controllerevalStartTime - the evaluation start timeevalEndTime - the evaluation end timepublic long getEvalStartTime()
public long getEvalEndTime()
public void setInputMeasurement(java.lang.String variableID,
AbstractInputMeasurement aim)
SystemVariableDefinition.variableID - the variable ID of the SystemVariableDefinitionaim - the actual instance input measurementpublic AbstractInputMeasurement getInputMeasurement(java.lang.String variableID)
InputMeasurement of the current TechnicalSystem for the specified ID of a SystemVariableDefinition.variableID - the variable ID of the SystemVariableDefinitionpublic AbstractInputMeasurement getInputMeasurement(SystemVariableDefinition sysVarDef)
InputMeasurement for the specified SystemVariableDefinition.sysVarDef - the SystemVariableDefinitionpublic java.util.List<java.lang.Long> getChangeEventTimesForMeasurements(long timeFrom,
long timeTo)
timeFrom - the time fromtimeTo - the time topublic AbstractCostFunction getCostFunction(java.lang.String domain, Connectivity connectivity)
AbstractCostFunction for the specified domain in connection with the Connectivity.domain - the domainconnectivity - the connectivitypublic CostFunctionDataSeries getCostFunctionHistory(java.lang.String domain, Connectivity connectivity)
domain - the domainconnectivity - the connectivitypublic void updateInputMeasurementsInIOList(TechnicalSystemState technicalSystemState)
InputMeasurement's (measurements and user set points)
in the specified TechnicalSystemState. Values will be updated with respect to
the global time.technicalSystemState - the technical system statepublic java.util.List<FixedVariable> getInputMeasurements(TechnicalSystemState technicalSystemState, boolean addDefaultMeasurementValueIfPredictionIsNotAvailable)
FixedVariable's that contain the current InputMeasurement's for
the specified TechnicalSystemState's global time.technicalSystemState - the TechnicalSystemStateaddDefaultMeasurementValueIfPredictionIsNotAvailable - set true, if a default value should be added in case of missing predictions for measurementspublic FixedVariable getInputMeasurement4PointInTime(TechnicalSystemState tss, java.lang.String variableID)
SystemVariableDefinition for the specified point in time
in case that the variable is indeed a measurement value (SystemVariableDefinition.isSetPoint()==false).tss - the TechnicalSystemStatevariableID - the variable idFixedVariableSystemVariableDefinition.isSetPoint(),
FixedVariable,
FixedBoolean,
FixedInteger,
FixedDouble