public abstract class AbstractOptionModelCalculation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractOptionModelCalculation.DurationType
The Enumeration DurationType describes the type of a needed
Duration . |
Modifier and Type | Field and Description |
---|---|
protected OptionModelController |
optionModelController
The option model controller that enables access to the
TechnicalSystem and features several help functions for it. |
Constructor and Description |
---|
AbstractOptionModelCalculation(OptionModelController optionModelController)
Instantiates a new abstract option model calculation.
|
Modifier and Type | Method and Description |
---|---|
abstract Duration |
getDuration(AbstractOptionModelCalculation.DurationType durationType,
TechnicalSystemStateEvaluation tsse)
Returns the specified
AbstractOptionModelCalculation.DurationType as Duration . |
abstract EnergyFlowInWatt |
getEnergyFlowForLosses(TechnicalSystemStateEvaluation tsse)
Returns the energy losses as
EnergyAmount for the TechnicalInterfaceConfiguration
and the State specified within the given TechnicalSystemStateEvaluation . |
AbstractInterfaceFlow |
getEnergyOrGoodFlow(TechnicalSystemStateEvaluation tsse,
TechnicalInterface ti)
Returns the
EnergyFlowInWatt or the GoodFlow for the specified TechnicalSystemStateEvaluation and its I/O-list settings. |
abstract AbstractInterfaceFlow |
getEnergyOrGoodFlow(TechnicalSystemStateEvaluation tsse,
TechnicalInterface ti,
boolean isManualConfiguration)
Returns the
EnergyFlowInWatt or the GoodFlow for the specified TechnicalSystemStateEvaluation and its I/O-list settings. |
AbstractGroupEvaluationStrategy |
getGroupEvaluationStrategy()
Returns the current group evaluation strategy.
|
EnergyAmount |
getNewEnergyStorageLoad(EnergyAmount storageLoadOld,
DomainInterfaceFlows domainInterfaceFlows,
long duration)
May return the new energy storage load, based on an individual calculation and the specified parameter.
|
EnergyAmount |
getNewEnergyStorageLoad(EnergyAmount storageLoadOld,
DomainInterfaceFlows domainInterfaceFlows,
long duration,
TechnicalSystemStateEvaluation initialTSSE,
TechnicalSystemStateEvaluation newTSSE)
May return the new energy storage load, based on an individual calculation and the specified parameter.
|
java.lang.Double |
getNewGoodStorageLoad(double storageLoadOld,
DomainInterfaceFlows domainInterfaceFlows,
long duration)
May return the new good storage load based on an individual calculation and the specified parameter.
|
java.lang.Double |
getNewGoodStorageLoad(double storageLoadOld,
DomainInterfaceFlows domainInterfaceFlows,
long duration,
TechnicalSystemStateEvaluation initialTSSE,
TechnicalSystemStateEvaluation newTSSE)
May return the new good storage load based on an individual calculation and the specified parameter.
|
NodeStatesResolver |
getNodeStateResolver()
Gets the node state resolver.
|
protected FixedVariable |
getOrCreateVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID)
Gets or creates the specified variable.
|
protected TechnicalSystem |
getTechnicalSystem()
Returns the current
TechnicalSystem |
protected FixedVariable |
getVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID)
Returns the specified
FixedVariable out of the list of FixedVariable 's. |
protected boolean |
isEqualTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation tsse1,
TechnicalSystemStateEvaluation tsse2)
Checks if two specified
TechnicalSystemStateEvaluation instances are equal. |
void |
setGroupEvaluationStrategy(AbstractGroupEvaluationStrategy abstractGroupEvaluationStrategy)
Sets the current group evaluation strategy.
|
protected void |
setVariable(java.util.List<FixedVariable> fixedVariableList,
java.lang.String variableID,
FixedVariable newValue)
Sets a new value for the specified FixedVariable.
|
protected OptionModelController optionModelController
TechnicalSystem
and features several help functions for it.public AbstractOptionModelCalculation(OptionModelController optionModelController)
optionModelController
- the option model controllerpublic NodeStatesResolver getNodeStateResolver()
public abstract Duration getDuration(AbstractOptionModelCalculation.DurationType durationType, TechnicalSystemStateEvaluation tsse)
AbstractOptionModelCalculation.DurationType
as Duration
.durationType
- the duration typetsse
- the current TechnicalSystemStateEvaluation
Duration
AbstractOptionModelCalculation.DurationType
,
SelectionModel
,
State
,
State.getDuration()
,
StateTransition
,
StateTransition.getMinDuration()
,
StateTransition.getMaxDuration()
,
Duration
public AbstractInterfaceFlow getEnergyOrGoodFlow(TechnicalSystemStateEvaluation tsse, TechnicalInterface ti)
EnergyFlowInWatt
or the GoodFlow
for the specified TechnicalSystemStateEvaluation
and its I/O-list settings.tsse
- the current TechnicalSystemStateEvaluation
ti
- the EnergyInterface
for that an energy flow has to be calculatedpublic abstract AbstractInterfaceFlow getEnergyOrGoodFlow(TechnicalSystemStateEvaluation tsse, TechnicalInterface ti, boolean isManualConfiguration)
EnergyFlowInWatt
or the GoodFlow
for the specified TechnicalSystemStateEvaluation
and its I/O-list settings.tsse
- the current TechnicalSystemStateEvaluation
ti
- the EnergyInterface
for that an energy flow has to be calculatedisManualConfiguration
- true, if this method call comes from a manual configurationpublic EnergyAmount getNewEnergyStorageLoad(EnergyAmount storageLoadOld, DomainInterfaceFlows domainInterfaceFlows, long duration)
getNewEnergyStorageLoad(EnergyAmount, DomainInterfaceFlows, long, TechnicalSystemStateEvaluation, TechnicalSystemStateEvaluation)
instead.storageLoadOld
- the storage load olddomainInterfaceFlows
- the domain interface flowsduration
- the duration in millisecondspublic EnergyAmount getNewEnergyStorageLoad(EnergyAmount storageLoadOld, DomainInterfaceFlows domainInterfaceFlows, long duration, TechnicalSystemStateEvaluation initialTSSE, TechnicalSystemStateEvaluation newTSSE)
storageLoadOld
- the storage load olddomainInterfaceFlows
- the domain interface flowsduration
- the duration in millisecondsinitialTSSE
- [contains further optional parameter that might be useful for specific storages and related calculations] newTSSE
- [contains further optional parameter that might be useful for specific storages and related calculations] public java.lang.Double getNewGoodStorageLoad(double storageLoadOld, DomainInterfaceFlows domainInterfaceFlows, long duration)
getNewGoodStorageLoad(double, DomainInterfaceFlows, long, TechnicalSystemStateEvaluation, TechnicalSystemStateEvaluation)
instead.storageLoadOld
- the storage load olddomainInterfaceFlows
- the domain interface flowsduration
- the duration in millisecondspublic java.lang.Double getNewGoodStorageLoad(double storageLoadOld, DomainInterfaceFlows domainInterfaceFlows, long duration, TechnicalSystemStateEvaluation initialTSSE, TechnicalSystemStateEvaluation newTSSE)
storageLoadOld
- the storage load olddomainInterfaceFlows
- the domain interface flowsduration
- the duration in millisecondsinitialTSSE
- [contains further optional parameter that might be useful for specific storages and related calculations] newTSSE
- [contains further optional parameter that might be useful for specific storages and related calculations] public abstract EnergyFlowInWatt getEnergyFlowForLosses(TechnicalSystemStateEvaluation tsse)
EnergyAmount
for the TechnicalInterfaceConfiguration
and the State
specified within the given TechnicalSystemStateEvaluation
.tsse
- the current TechnicalSystemStateEvaluation
protected TechnicalSystem getTechnicalSystem()
TechnicalSystem
TechnicalSystem
protected boolean isEqualTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation tsse1, TechnicalSystemStateEvaluation tsse2)
TechnicalSystemStateEvaluation
instances are equal.tsse1
- the first TechnicalSystemStateEvaluation
to comparetsse2
- the second TechnicalSystemStateEvaluation
to compareprotected 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 FixedVariable
public void setGroupEvaluationStrategy(AbstractGroupEvaluationStrategy abstractGroupEvaluationStrategy)
abstractGroupEvaluationStrategy
- the new group evaluation strategypublic AbstractGroupEvaluationStrategy getGroupEvaluationStrategy()
FallBackGroupStrategy
will be used, which only summarises the energy flows, without
doing any network calculation.AbstractGroupEvaluationStrategy