public abstract class MemberEvaluationStrategy extends AbstractEvaluationStrategy
Modifier and Type | Field and Description |
---|---|
protected javax.swing.tree.DefaultMutableTreeNode |
currentNode |
protected AbstractGroupEvaluationStrategy |
groupEvaluationStrategy |
protected GroupTreeNodeObject |
gtno |
evaluationStart, optionModelController
Constructor and Description |
---|
MemberEvaluationStrategy(OptionModelController optionModelController,
AbstractGroupEvaluationStrategy groupEvaluationStrategy,
javax.swing.tree.DefaultMutableTreeNode currentTreeNode,
GroupTreeNodeObject gtno)
Instantiates a new member evaluation strategy.
|
Modifier and Type | Method and Description |
---|---|
protected EnergyFlowInWatt |
createEnergyFlowInWatt(double value,
EnergyUnitFactorPrefixSI siPrefix)
Creates a new
EnergyFlowInWatt . |
protected EnergyFlowMeasured |
createEnergyFlowMeasured(java.lang.String interfaceID,
boolean isStepSeries)
Creates a new
EnergyFlowMeasured . |
protected java.util.HashMap<java.lang.String,EnergyFlowMeasured> |
createEnergyFlowMeasuredHash()
Returns a new HashMap that contains new created
EnergyFlowMeasured for each TechnicalInterface |
protected EnergyMeasurement |
createEnergyMeasurement(long time,
double value,
EnergyUnitFactorPrefixSI siPrefix)
Creates a new
EnergyMeasurement . |
protected GoodFlow |
createGoodFlow(double value,
java.lang.String domainUnit,
TimeUnit timeUnit)
Creates a new
GoodFlow . |
protected GoodFlowMeasured |
createGoodFlowMeasured(java.lang.String interfaceID,
boolean isStepSeries)
Creates a new
GoodFlowMeasured . |
protected java.util.HashMap<java.lang.String,GoodFlowMeasured> |
createGoodFlowMeasuredHash()
Returns a new HashMap that contains new created
GoodFlowMeasured for each TechnicalInterface |
protected GoodMeasurement |
createGoodMeasurement(long time,
double value,
java.lang.String domainUnit,
TimeUnit timeUnit)
Creates a new
GoodMeasurement . |
protected java.util.HashMap<java.lang.String,EnergyAmount> |
createStorageLoadHashEnergy()
Creates a new storage load hash for all
EnergyInterface e that have a storage. |
protected java.util.HashMap<java.lang.String,java.lang.Double> |
createStorageLoadHashGood()
Creates a new storage load hash for all
GoodInterface s that have a storage. |
java.util.Vector<javax.swing.JComponent> |
getCustomToolBarElements()
Should return your custom tool bar elements for the evaluation.
|
abstract java.lang.String |
getDomain(java.lang.String configID,
java.lang.String interfaceID)
Has to return the domain according to the specified interfaceID.
|
FlowsMeasuredGroupMember |
getEnergyFlowsMeasuredGroupMember(long globalTimeFrom,
long globalTimeTo)
Has to return an instance of
FlowsMeasuredGroupMember that describes the
energy flows of the actual system for the specified time range. |
AbstractGroupEvaluationStrategy |
getGroupEvaluationStrategy()
Returns the current
AbstractGroupEvaluationStrategy that may be an AbstractGroupEvaluationStrategyRT also. |
abstract TechnicalSystemStateEvaluation |
getScheduleTechnicalSystemStateEvaluation()
Gets the schedule TechnicalSystemStateEvaluation.
|
protected java.util.HashMap<java.lang.String,EnergyAmount> |
getStorageLoadEnergy(long globalTimeTo,
TechnicalSystemStateEvaluation tsseLast)
Sets the storage load for energy interfaces.
|
protected java.util.HashMap<java.lang.String,java.lang.Double> |
getStorageLoadGood(long globalTimeTo,
TechnicalSystemStateEvaluation tsseLast)
Sets the storage load for good interfaces.
|
abstract java.util.Vector<TechnicalSystemStateEvaluation> |
getTechnicalSystemStateEvaluationVector(long globalTimeFrom,
long globalTimeTo)
Has to returns a vector of all
TechnicalSystemStateEvaluation for the specified time range. |
protected boolean |
isWithinTimeRange(long timeRangeFrom,
long timeRangeTo,
long pointInTimeToCheck)
Checks if is within time range.
|
protected boolean |
isWithinTimeRange(long timeRangeFrom,
long timeRangeTo,
long pointInTimeToCheck,
boolean includeBoundaries)
Checks if is within time range.
|
abstract void |
resetSchedule()
Resets the current schedule TechnicalSystemStateEvaluation.
|
void |
resetScheduleAndCalculationsStartingFrom(long pointInTime)
Resets the local schedule and the calculations starting from the specified point in time.
|
void |
runEvaluation()
Runs the customized evaluation process.
|
protected void |
setFinalEnergyFlows(java.util.HashMap<java.lang.String,EnergyFlowMeasured> measureHash,
TechnicalSystemStateEvaluation tsse,
long globalTimeTo)
Sets the final energy flows in the EnergyFlowMeasured specified through the measureHash.
|
protected void |
setFinalGoodFlows(java.util.HashMap<java.lang.String,GoodFlowMeasured> measureHash,
TechnicalSystemStateEvaluation tsse,
long globalTimeTo)
Sets the final good flows in the GoodFlowMeasured specified through the measureHash.
|
protected void |
setInitialEnergyFlows(java.util.HashMap<java.lang.String,EnergyFlowMeasured> measureHash,
TechnicalSystemStateEvaluation tsse,
long globalTimeFrom)
Sets the initial energy flows in the EnergyFlowMeasured specified through the measureHash.
|
protected void |
setInitialGoodFlows(java.util.HashMap<java.lang.String,GoodFlowMeasured> measureHash,
TechnicalSystemStateEvaluation tsse,
long globalTimeFrom)
Sets the initial good flows in the GoodFlowMeasured specified through the measureHash.
|
abstract void |
setScheduleTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation tsseSchedule)
Sets the schedule TechnicalSystemStateEvaluation.
|
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, setEnablePrintToConsole, setEvaluationThread, setGraphForDeltaCosts, setGraphForStateVariability, setInitialTechnicalSystemStateEvaluation, stopEvaluation
protected AbstractGroupEvaluationStrategy groupEvaluationStrategy
protected javax.swing.tree.DefaultMutableTreeNode currentNode
protected GroupTreeNodeObject gtno
public MemberEvaluationStrategy(OptionModelController optionModelController, AbstractGroupEvaluationStrategy groupEvaluationStrategy, javax.swing.tree.DefaultMutableTreeNode currentTreeNode, GroupTreeNodeObject gtno)
optionModelController
- the option model controllergroupEvaluationStrategy
- the group evaluation strategycurrentTreeNode
- the current tree nodegtno
- the GroupTreeNodeObjectpublic AbstractGroupEvaluationStrategy getGroupEvaluationStrategy()
AbstractGroupEvaluationStrategy
that may be an AbstractGroupEvaluationStrategyRT
also.public abstract java.lang.String getDomain(java.lang.String configID, java.lang.String interfaceID)
configID
- the ID of the used TechnicalInterfaceConfiguration
interfaceID
- the interface ID of the used TechnicalInterface
public abstract void resetSchedule()
public void resetScheduleAndCalculationsStartingFrom(long pointInTime)
pointInTime
- the point in timepublic abstract TechnicalSystemStateEvaluation getScheduleTechnicalSystemStateEvaluation()
public abstract void setScheduleTechnicalSystemStateEvaluation(TechnicalSystemStateEvaluation tsseSchedule)
tsseSchedule
- the new schedule technical system state evaluationpublic abstract java.util.Vector<TechnicalSystemStateEvaluation> getTechnicalSystemStateEvaluationVector(long globalTimeFrom, long globalTimeTo)
TechnicalSystemStateEvaluation
for the specified time range.globalTimeFrom
- the time fromglobalTimeTo
- the time topublic FlowsMeasuredGroupMember getEnergyFlowsMeasuredGroupMember(long globalTimeFrom, long globalTimeTo)
FlowsMeasuredGroupMember
that describes the
energy flows of the actual system for the specified time range. These includes the
EnergyFlowMeasured
for each EnergyInterface
the storage load, if available,
and an EnergyFlowMeasured for the energy losses.globalTimeFrom
- the global time fromglobalTimeTo
- the global time toFlowsMeasuredGroupMember
,
EnergyFlowMeasured
protected void setInitialEnergyFlows(java.util.HashMap<java.lang.String,EnergyFlowMeasured> measureHash, TechnicalSystemStateEvaluation tsse, long globalTimeFrom)
measureHash
- the measure hashtsse
- the TechnicalSystemStateEvaluationglobalTimeFrom
- the global time fromprotected void setInitialGoodFlows(java.util.HashMap<java.lang.String,GoodFlowMeasured> measureHash, TechnicalSystemStateEvaluation tsse, long globalTimeFrom)
measureHash
- the measure hashtsse
- the TechnicalSystemStateEvaluationglobalTimeFrom
- the global time fromprotected void setFinalEnergyFlows(java.util.HashMap<java.lang.String,EnergyFlowMeasured> measureHash, TechnicalSystemStateEvaluation tsse, long globalTimeTo)
measureHash
- the measure hashtsse
- the TechnicalSystemStateEvaluationglobalTimeTo
- the global time toprotected void setFinalGoodFlows(java.util.HashMap<java.lang.String,GoodFlowMeasured> measureHash, TechnicalSystemStateEvaluation tsse, long globalTimeTo)
measureHash
- the measure hashtsse
- the TechnicalSystemStateEvaluationglobalTimeTo
- the global time toprotected java.util.HashMap<java.lang.String,EnergyAmount> getStorageLoadEnergy(long globalTimeTo, TechnicalSystemStateEvaluation tsseLast)
globalTimeTo
- the global time totsseLast
- the last TechnicalSystemStateEvaluation
protected java.util.HashMap<java.lang.String,java.lang.Double> getStorageLoadGood(long globalTimeTo, TechnicalSystemStateEvaluation tsseLast)
globalTimeTo
- the global time totsseLast
- the last TechnicalSystemStateEvaluation
protected java.util.HashMap<java.lang.String,EnergyFlowMeasured> createEnergyFlowMeasuredHash()
EnergyFlowMeasured
for each TechnicalInterfaceprotected java.util.HashMap<java.lang.String,GoodFlowMeasured> createGoodFlowMeasuredHash()
GoodFlowMeasured
for each TechnicalInterfaceprotected java.util.HashMap<java.lang.String,EnergyAmount> createStorageLoadHashEnergy()
EnergyInterface
e that have a storage.protected java.util.HashMap<java.lang.String,java.lang.Double> createStorageLoadHashGood()
GoodInterface
s that have a storage.protected EnergyFlowMeasured createEnergyFlowMeasured(java.lang.String interfaceID, boolean isStepSeries)
EnergyFlowMeasured
.protected GoodFlowMeasured createGoodFlowMeasured(java.lang.String interfaceID, boolean isStepSeries)
GoodFlowMeasured
.protected EnergyFlowInWatt createEnergyFlowInWatt(double value, EnergyUnitFactorPrefixSI siPrefix)
EnergyFlowInWatt
.value
- the valuesiPrefix
- the SI prefixprotected GoodFlow createGoodFlow(double value, java.lang.String domainUnit, TimeUnit timeUnit)
GoodFlow
.value
- the valuedomainUnit
- the domain unittimeUnit
- the time unitprotected EnergyMeasurement createEnergyMeasurement(long time, double value, EnergyUnitFactorPrefixSI siPrefix)
EnergyMeasurement
.time
- the timevalue
- the valuesiPrefix
- the si prefixprotected GoodMeasurement createGoodMeasurement(long time, double value, java.lang.String domainUnit, TimeUnit timeUnit)
GoodMeasurement
.time
- the timevalue
- the valuedomainUnit
- the domain unittimeUnit
- the si prefixprotected boolean isWithinTimeRange(long timeRangeFrom, long timeRangeTo, long pointInTimeToCheck)
timeRangeFrom
- the time range fromtimeRangeTo
- the time range topointInTimeToCheck
- the point in time to checkprotected boolean isWithinTimeRange(long timeRangeFrom, long timeRangeTo, long pointInTimeToCheck, boolean includeBoundaries)
timeRangeFrom
- the time range fromtimeRangeTo
- the time range topointInTimeToCheck
- the point in time to checkincludeBoundaries
- the include boundariespublic java.util.Vector<javax.swing.JComponent> getCustomToolBarElements()
AbstractEvaluationStrategy
getCustomToolBarElements
in class AbstractEvaluationStrategy
public void runEvaluation()
AbstractEvaluationStrategy
runEvaluation
in class AbstractEvaluationStrategy