public class TechnicalSystemStateHelper
extends java.lang.Object
TechnicalSystemState
.Constructor and Description |
---|
TechnicalSystemStateHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Comparator<TechnicalSystemStateEvaluation> |
getComparatorCost()
Returns a comparator for the resulting costs
|
static java.util.Comparator<TechnicalSystemState> |
getComparatorCumulatedCosts(java.lang.String interfaceID)
Returns a comparator for cumulated costs at the specified interface
|
static java.util.Comparator<TechnicalSystemState> |
getComparatorCumulatedEnergy(java.lang.String interfaceID)
Returns a comparator for the cumulated energy amount at the specified interface
|
static java.util.Comparator<TechnicalSystemStateEvaluation> |
getComparatorEnergyLosses()
Returns a comparator for the energy losses
|
static java.util.Comparator<TechnicalSystemState> |
getComparatorEnergyOrGoodFlow(java.lang.String interfaceID)
Returns a comparator for energy flows
|
static java.util.Comparator<FixedVariable> |
getComparatorFixedVariable()
Returns a new comparator for
FixedVariable 's. |
static java.util.Comparator<TechnicalSystemState> |
getComparatorGlobalTime()
Returns a new comparator for the global time of
TechnicalSystemState 's. |
static java.util.Comparator<TechnicalSystemState> |
getComparatorIOVariable(java.lang.String variableID)
Returns the comparator for I/O-variables with a list of
TechnicalSystemState 's. |
static java.util.Comparator<TechnicalSystemState> |
getComparatorState()
Returns a new comparator for the states of
TechnicalSystemState 's. |
static java.util.Comparator<TechnicalSystemStateEvaluation> |
getComparatorStateCost()
Returns a comparator for the state costs
|
static java.util.Comparator<TechnicalSystemState> |
getComparatorStorageLoad(java.lang.String interfaceID)
Returns a comparator for storage load
|
static java.util.Comparator<AbstractStorageLoad> |
getComparatorStorageLoads()
Returns the comparator for
StorageLoadEnergy 's. |
static java.util.Comparator<AbstractUsageOfInterface> |
getComparatorUsageOfInterfaces()
Returns the comparator for
UsageOfInterfaceEnergy 's. |
static long |
getGlobalTimeStart(TechnicalSystemState tss)
Calculate the global time of the start of the state (stateTime==0) from the given tss.
|
static TechnicalSystemStateEvaluation |
getTsseCloneWithoutParent(TechnicalSystemStateEvaluation tsse)
Returns a serial clone of a
TechnicalSystemStateEvaluation . |
static java.lang.String |
toString(java.util.List<FixedVariable> fixedVariableList)
This toString method can be used in order to print the IO-List of a
TechnicalSystemState . |
static java.lang.String |
toString(java.util.List<FixedVariable> fixedVariableList,
java.lang.String separator)
This toString method can be used in order to print the IO-List of a
TechnicalSystemState . |
static java.lang.String |
toString(TechnicalSystemState technicalSystemState)
This methods converts a
TechnicalSystemState into a string for visualisation. |
static java.lang.String |
toString(TechnicalSystemState technicalSystemState,
boolean useNewLineSeparator)
This methods converts a
TechnicalSystemState into a string for visualisation. |
public static java.lang.String toString(TechnicalSystemState technicalSystemState)
TechnicalSystemState
into a string for visualisation.technicalSystemState
- the TechnicalSystemState
TechnicalSystemState
public static java.lang.String toString(TechnicalSystemState technicalSystemState, boolean useNewLineSeparator)
TechnicalSystemState
into a string for visualisation.technicalSystemState
- the TechnicalSystemState
useNewLineSeparator
- indicates whether to use a line separator or notTechnicalSystemState
public static java.lang.String toString(java.util.List<FixedVariable> fixedVariableList)
TechnicalSystemState
.fixedVariableList
- the fixed variable listpublic static java.lang.String toString(java.util.List<FixedVariable> fixedVariableList, java.lang.String separator)
TechnicalSystemState
.fixedVariableList
- the fixed variable listpublic static java.util.Comparator<TechnicalSystemState> getComparatorGlobalTime()
TechnicalSystemState
's.public static java.util.Comparator<TechnicalSystemState> getComparatorState()
TechnicalSystemState
's.public static java.util.Comparator<FixedVariable> getComparatorFixedVariable()
FixedVariable
's.FixedVariable
's.public static java.util.Comparator<TechnicalSystemState> getComparatorIOVariable(java.lang.String variableID)
TechnicalSystemState
's.variableID
- the variable idpublic static java.util.Comparator<AbstractUsageOfInterface> getComparatorUsageOfInterfaces()
UsageOfInterfaceEnergy
's.UsageOfInterfaceEnergy
's.public static java.util.Comparator<TechnicalSystemState> getComparatorEnergyOrGoodFlow(java.lang.String interfaceID)
interfaceID
- the interface idpublic static java.util.Comparator<AbstractStorageLoad> getComparatorStorageLoads()
StorageLoadEnergy
's.StorageLoadEnergy
's.public static java.util.Comparator<TechnicalSystemState> getComparatorStorageLoad(java.lang.String interfaceID)
interfaceID
- the interface idpublic static java.util.Comparator<TechnicalSystemState> getComparatorCumulatedEnergy(java.lang.String interfaceID)
interfaceID
- the interface idpublic static java.util.Comparator<TechnicalSystemState> getComparatorCumulatedCosts(java.lang.String interfaceID)
interfaceID
- the interface idpublic static java.util.Comparator<TechnicalSystemStateEvaluation> getComparatorEnergyLosses()
public static java.util.Comparator<TechnicalSystemStateEvaluation> getComparatorStateCost()
public static java.util.Comparator<TechnicalSystemStateEvaluation> getComparatorCost()
public static TechnicalSystemStateEvaluation getTsseCloneWithoutParent(TechnicalSystemStateEvaluation tsse)
TechnicalSystemStateEvaluation
. The parent (and thus history) will not be included.tsse
- The TechnicalSystemStateEvaluation
to be clonedTechnicalSystemStateEvaluation
public static long getGlobalTimeStart(TechnicalSystemState tss)
tss
- the tss whose state start is to be calculated