Enum Class STNURTE.StrategyEnum
- All Implemented Interfaces:
STNURTE.Strategy
,Serializable
,Comparable<STNURTE.StrategyEnum>
,Constable
- Enclosing class:
STNURTE
public static enum STNURTE.StrategyEnum
extends Enum<STNURTE.StrategyEnum>
implements STNURTE.Strategy
Allows the specification of a predefined strategy as an input parameter.
- Author:
- Léon Planken
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReturns the minimum possible execution time,l
, with all nodes that can be executed at that time, i.e.,l' ≤ l
.
It is assumed thatcandidates.timeInterval = [l, u]
and each node has a time interval[l',u']
such thatl ≤ l'
andu ≤ u'
.Returns the first node among the candidate and the lower bound of its time window compatible with the given time window.Returns the first node among the candidate and the upper time of its time window compatible with the given time window.Returns the first node among the candidate and the middle time of its time window compatible with the given time window.Returns the maximum possible execution time,l
, with all nodes that have as last possible execution time, i.e.,u' == l
.Returns the middle possible execution time,m
, with all nodes that can be executed at that time, i.e.,l' ≤ m
.
It is assumed thatcandidates.timeInterval = [l, u], m = (l+u)/2
and each node has a time interval[l',u']
such thatl ≤ l'
andu ≤ u'
.Returns a random execution time,r
, in the allowed interval[l, u]
with all nodes that can be executed at that time. -
Method Summary
Modifier and TypeMethodDescriptionget()
static STNURTE.StrategyEnum
Returns the enum constant of this class with the specified name.static STNURTE.StrategyEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EARLY_EXECUTION_STRATEGY
Returns the minimum possible execution time,l
, with all nodes that can be executed at that time, i.e.,l' ≤ l
.
It is assumed thatcandidates.timeInterval = [l, u]
and each node has a time interval[l',u']
such thatl ≤ l'
andu ≤ u'
. -
FIRST_NODE_EARLY_EXECUTION_STRATEGY
Returns the first node among the candidate and the lower bound of its time window compatible with the given time window. -
FIRST_NODE_LATE_EXECUTION_STRATEGY
Returns the first node among the candidate and the upper time of its time window compatible with the given time window. -
FIRST_NODE_MIDDLE_EXECUTION_STRATEGY
Returns the first node among the candidate and the middle time of its time window compatible with the given time window. -
LATE_EXECUTION_STRATEGY
Returns the maximum possible execution time,l
, with all nodes that have as last possible execution time, i.e.,u' == l
.
* It is assumed thatcandidates.timeInterval = [l, u]
and each node has a time interval *[l',u']
such thatl ≤ l'
andu ≤ u'
. -
MIDDLE_EXECUTION_STRATEGY
Returns the middle possible execution time,m
, with all nodes that can be executed at that time, i.e.,l' ≤ m
.
It is assumed thatcandidates.timeInterval = [l, u], m = (l+u)/2
and each node has a time interval[l',u']
such thatl ≤ l'
andu ≤ u'
. -
RANDOM_EXECUTION_STRATEGY
Returns a random execution time,r
, in the allowed interval[l, u]
with all nodes that can be executed at that time.
* It is assumed thatcandidates.timeInterval = [l, u]
and each node has a time interval *[l',u']
such thatl ≤ l'
andu ≤ u'
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
- Specified by:
get
in interfaceSTNURTE.Strategy
- Returns:
- a NodeAndExecutionTimeChoice function
-