public abstract class AbstractEvaluationStrategyRT extends AbstractEvaluationStrategy
TechnicalSystem
's.
Consequently, it has to be extend in order to create a customised evaluation strategy.Modifier and Type | Class and Description |
---|---|
static class |
AbstractEvaluationStrategyRT.InitialStateAdaption
The Enumeration InitialStateAdaption can be used in order to specify how the initial state of the system
should be adapted in case that the initial state time does not correspond to the current evaluation time.
|
Modifier and Type | Field and Description |
---|---|
protected long |
evaluationStepEndTime |
protected Schedule |
scheduleResult |
protected TechnicalSystemStateEvaluation |
tsse |
evaluationStart, optionModelController
Constructor and Description |
---|
AbstractEvaluationStrategyRT(OptionModelController optionModelController)
Instantiates a new abstract evaluation strategy for a real time control.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector<javax.swing.JComponent> |
getCustomToolBarElements()
Should return your custom tool bar elements for the evaluation.
|
abstract AbstractEvaluationStrategyRT.InitialStateAdaption |
getInitialStateAdaption()
Should returns the
AbstractEvaluationStrategyRT.InitialStateAdaption for this real time strategy. |
AbstractEvaluationStrategyRT.InitialStateAdaption |
getInitialStateAdaptionConfigured()
Returns the configured initial state adaption for this real time strategy.
|
FixedVariable |
getMeasurementFromSystem(java.lang.String searchVariableID)
Returns the specified measurement out of the list of measurements.
|
FixedVariableList |
getMeasurementsFromSystem()
Gets the current measurements from the system.
|
protected long |
getRemainingPeriodUntilStateTransition(TechnicalSystemState tss)
Calculate the time the evaluation can be paused until the next decision is necessary
(the remaining duration needed to be spent in the given state)
it is negative, if the decision is overdue.
|
FixedVariableList |
getSetPointsToSystem()
Gets the current set-points to the system.
|
FixedVariable |
getSetPointToSystem(java.lang.String searchVariableID)
Returns the specified set-point out of the list of set-points.
|
TechnicalSystemStateEvaluation |
getTechnicalSystemStateEvaluation()
Gets the current
TechnicalSystemStateEvaluation . |
void |
resetStrategy()
Resets the strategy, i.e. sets the current TSSE and the result schedule to null
|
void |
runEvaluationUntil(long evaluationStepEndTime)
Run evaluation until the specified time.
|
void |
setInitialStateAdaptionConfigured(AbstractEvaluationStrategyRT.InitialStateAdaption newInitialRStateAdaption)
Sets the configured initial state adaption for this real time strategy.
|
protected void |
setIntermediateStateToResult(TechnicalSystemStateEvaluation tsse)
Adds the intermediate state to the result schedule.
|
void |
setMeasurementsFromSystem(FixedVariableList newCurrentMeasurements)
Sets the current measurements from the system.
|
void |
setSetPointsToSystem(FixedVariableList setPointsToSystem)
Sets the current set-points to the system.
|
protected void |
setTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation newTSSE)
Sets the technical system state evaluation.
|
addStateToResults, addStateToResults, calculateAndSetStateCosts, convertToTechnicalSystemStateEvaluation, copyEnergyAmount, copyEnergyFlowInWatt, copyStorageLoad, copyTechnicalSystemState, copyTechnicalSystemState, executeEvaluation, getAllDeltaEvaluationsStartingFromTechnicalSystemState, getAllDeltaEvaluationsStartingFromTechnicalSystemState, getAllDeltaEvaluationsStartingFromTechnicalSystemState, getAllPossibleSubsequentStatesByDefinition, getAllPossibleSubsequentStatesByDefinition, getCostFunctionHistory, getCostModel, getDefaultSIPrefix, getDefaultTimeUnit, getEndTime, getEvaluationProcess, getEvaluationResults, getEvaluationSettings, getEvaluationThread, getEvaluationTimeRangeReminder, getFirstTechnicalSystemStateEvaluationWithEqualState, getGraphForDeltaCosts, getGraphForStateVariability, getInitialTechnicalSystemStateEvaluation, getNextTechnicalSystemStateEvaluation, getNodeStateResolver, getOptionModelCalculation, getStartTime, getStateDurationFromTechnicalSystemState, getTechnicalInterfaceConfiguration, hasStateCostFunction, isAvailableOptionModelCalculation, isConstantStateSinceGlobalTime, isEnabledPrintToConsole, isRealTimeStrategyOrPartOfRealTimeStrategy, isStopEvaluation, print, printlnGlobalTime, printlnGlobalTime, recursivelyCreateEvaluationGraphForCostsOverTime, recursivelyCreateEvaluationGraphForCostsOverTime, resetInitialTechnicalSystemStateEvaluation, resetScheduleAndCalculationsStartingFrom, runEvaluation, setEnablePrintToConsole, setEvaluationThread, setGraphForDeltaCosts, setGraphForStateVariability, setInitialTechnicalSystemStateEvaluation, stopEvaluation
protected long evaluationStepEndTime
protected TechnicalSystemStateEvaluation tsse
protected Schedule scheduleResult
public AbstractEvaluationStrategyRT(OptionModelController optionModelController)
optionModelController
- the option model controllerpublic java.util.Vector<javax.swing.JComponent> getCustomToolBarElements()
AbstractEvaluationStrategy
getCustomToolBarElements
in class AbstractEvaluationStrategy
public abstract AbstractEvaluationStrategyRT.InitialStateAdaption getInitialStateAdaption()
AbstractEvaluationStrategyRT.InitialStateAdaption
for this real time strategy.public AbstractEvaluationStrategyRT.InitialStateAdaption getInitialStateAdaptionConfigured()
public void setInitialStateAdaptionConfigured(AbstractEvaluationStrategyRT.InitialStateAdaption newInitialRStateAdaption)
newInitialRStateAdaption
- the new initial state adaptionpublic void setMeasurementsFromSystem(FixedVariableList newCurrentMeasurements)
newCurrentMeasurements
- the new measurements from systempublic FixedVariableList getMeasurementsFromSystem()
public FixedVariable getMeasurementFromSystem(java.lang.String searchVariableID)
searchVariableID
- the search variable idpublic void setSetPointsToSystem(FixedVariableList setPointsToSystem)
setPointsToSystem
- the new set-points to the systempublic FixedVariableList getSetPointsToSystem()
public FixedVariable getSetPointToSystem(java.lang.String searchVariableID)
searchVariableID
- the search variable idpublic TechnicalSystemStateEvaluation getTechnicalSystemStateEvaluation()
TechnicalSystemStateEvaluation
.protected void setTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation newTSSE)
newTSSE
- the new technical system state evaluationpublic void runEvaluationUntil(long evaluationStepEndTime)
evaluationStepEndTime
- the time untilprotected void setIntermediateStateToResult(TechnicalSystemStateEvaluation tsse)
tsse
- the intermediate TechnicalSystemStateEvaluation
protected long getRemainingPeriodUntilStateTransition(TechnicalSystemState tss)
tss
- the technical system statepublic void resetStrategy()