public abstract class AbstractEvaluationCalculation
extends java.lang.Object
InputMeasurementCalculatedSeries as function for the
evaluation settings for a TechnicalSystem.CostFunctionCalculated as cost function for the CostModel
and specific combinations of EnergyCarrier and Connectivity.| Constructor and Description |
|---|
AbstractEvaluationCalculation() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getAmountCosts(TechnicalInterface ti,
Connectivity connectivity,
long time1,
long time2,
double flowValue1,
double flowValue2)
Should return the costs for the amount of energy or a good/commodity of the specified
TechnicalInterface. |
abstract CostFunctionDataSeries |
getCostFunctionDataSeries(java.lang.String domain,
Connectivity connectivity)
Returns the actual
CostFunctionDataSeries for the specified combination
of EnergyCarrier and Connectivity. |
protected long |
getEvaluationTimeEnd()
Returns the configured evaluation end time.
|
protected long |
getEvaluationTimeStart()
Returns the configured evaluation start time.
|
abstract InputMeasurement |
getInputMeasurement(SystemVariableDefinition sysVarDef)
Has to returns the actual
InputMeasurement for the specified SystemVariableDefinition and within
the current time range that is specified by getEvaluationTimeStart() and getEvaluationTimeEnd(). |
NodeStatesResolver |
getNodeStateResolver()
Gets the node state resolver.
|
OptionModelController |
getOptionModelController()
Returns the current
OptionModelController. |
protected FixedVariable |
getOrCreateVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID)
Gets or creates the specified variable.
|
abstract double |
getStateCosts(TechnicalSystemStateEvaluation tsse)
Returns the state costs for the specified
TechnicalSystemStateEvaluation. |
protected FixedVariable |
getVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID)
Returns the specified
FixedVariable out of the list of FixedVariable's. |
void |
setOptionModelController(OptionModelController optionModelController)
Sets the current
OptionModelController. |
protected void |
setVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID,
FixedVariable newValue)
Sets a new value for the specified FixedVariable.
|
abstract void |
updateInputMeasurement(TechnicalSystemState tss,
FixedVariable variableToUpdate)
Will be invoked in case that a predicted value should be updated depending on time and the actual
state of a system.
|
public void setOptionModelController(OptionModelController optionModelController)
OptionModelController.optionModelController - the new option model controllerpublic OptionModelController getOptionModelController()
OptionModelController.public NodeStatesResolver getNodeStateResolver()
protected long getEvaluationTimeStart()
protected long getEvaluationTimeEnd()
protected FixedVariable getVariable(java.util.List<FixedVariable> fixedVariableList, java.lang.String variableID)
FixedVariable out of the list of FixedVariable's.fixedVariableList - the list of FixedVariable'variableID - the ID of the variableprotected FixedVariable getOrCreateVariable(java.util.List<FixedVariable> fixedVariableList, java.lang.String variableID)
fixedVariableList - the fixed variable listvariableID - the variable IDprotected void setVariable(java.util.List<FixedVariable> fixedVariableList, java.lang.String variableID, FixedVariable newValue)
fixedVariableList - the list of FixedVariable'variableID - the ID of the variablenewValue - the new value as FixedVariablepublic abstract InputMeasurement getInputMeasurement(SystemVariableDefinition sysVarDef)
InputMeasurement for the specified SystemVariableDefinition and within
the current time range that is specified by getEvaluationTimeStart() and getEvaluationTimeEnd().sysVarDef - the SystemVariableDefinitiongetOptionModelController(),
getEvaluationTimeStart(),
getEvaluationTimeEnd()public abstract void updateInputMeasurement(TechnicalSystemState tss, FixedVariable variableToUpdate)
tss - the current TechnicalSystemState containing time, current I/O settings and othervariableToUpdate - the variable to updatepublic abstract CostFunctionDataSeries getCostFunctionDataSeries(java.lang.String domain, Connectivity connectivity)
CostFunctionDataSeries for the specified combination
of EnergyCarrier and Connectivity.domain - the domainconnectivity - the ConnectivityCostFunctionDataSeriesgetOptionModelController(),
getEvaluationTimeStart(),
getEvaluationTimeEnd()public abstract double getAmountCosts(TechnicalInterface ti, Connectivity connectivity, long time1, long time2, double flowValue1, double flowValue2)
TechnicalInterface.ti - the TechnicalInterface to considerconnectivity - the connectivity that describes the actual flow directiontime1 - the time range start (possibly not required)time2 - the time range final (possibly not required)flowValue1 - the flow value at start time (possibly not required)flowValue2 - the flow value at final time (possibly not required)public abstract double getStateCosts(TechnicalSystemStateEvaluation tsse)
TechnicalSystemStateEvaluation.tsse - the TechnicalSystemStateEvaluationCostModel,
CostModel.getStateCostFunction(),
CostModel.getCostUnit()