Enum Class STNURTE.StrategyEnum

java.lang.Object
java.lang.Enum<STNURTE.StrategyEnum>
it.univr.di.cstnu.algorithms.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
  • Enum Constant Details

    • EARLY_EXECUTION_STRATEGY

      public static final STNURTE.StrategyEnum 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 that candidates.timeInterval = [l, u] and each node has a time interval [l',u'] such that l ≤ l' and u ≤ u'.
    • FIRST_NODE_EARLY_EXECUTION_STRATEGY

      public static final STNURTE.StrategyEnum 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

      public static final STNURTE.StrategyEnum 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

      public static final STNURTE.StrategyEnum 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

      public static final STNURTE.StrategyEnum 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 that candidates.timeInterval = [l, u] and each node has a time interval * [l',u'] such that l ≤ l' and u ≤ u'.
    • MIDDLE_EXECUTION_STRATEGY

      public static final STNURTE.StrategyEnum 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 that candidates.timeInterval = [l, u], m = (l+u)/2 and each node has a time interval [l',u'] such that l ≤ l' and u ≤ u'.
    • RANDOM_EXECUTION_STRATEGY

      public static final STNURTE.StrategyEnum 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 that candidates.timeInterval = [l, u] and each node has a time interval * [l',u'] such that l ≤ l' and u ≤ u'.
  • Method Details

    • values

      public static STNURTE.StrategyEnum[] 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

      public static STNURTE.StrategyEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • get

      Specified by:
      get in interface STNURTE.Strategy
      Returns:
      a NodeAndExecutionTimeChoice function