Enum Class Data

All Implemented Interfaces:
Serializable, Comparable<Data>, Constable

public enum Data extends Enum<Data>
Data types that are handled by the model. Currently the following data types are supported:
Strategy
the data represents strategies.
Fitness
the data represents payoffs/scores/fitness.
Degree
the data represents degrees of the network structure.
Fixation probability
the data represents fixation probabilities.
Fixation time
the data represents fixation times.
Stationary distribution
the data represents the stationary strategy distribution.
undefined
the data type is not defined/unknown.
  • Enum Constant Details Link icon

    • UNDEFINED Link icon

      public static final Data UNDEFINED
      Undefined: the data type is not defined/unknown.
    • STRATEGY Link icon

      public static final Data STRATEGY
      Strategy: the data represents strategies.
    • FITNESS Link icon

      public static final Data FITNESS
      Fitness: the data represents payoffs/scores/fitness.
    • DEGREE Link icon

      public static final Data DEGREE
      Degree: the data represents degrees of the network structure.
    • STATISTICS_FIXATION_PROBABILITY Link icon

      public static final Data STATISTICS_FIXATION_PROBABILITY
      Fixation probability: the data represents fixation probabilities.
    • STATISTICS_FIXATION_TIME Link icon

      public static final Data STATISTICS_FIXATION_TIME
      Fixation time: the data represents fixation times.
    • STATISTICS_STATIONARY Link icon

      public static final Data STATISTICS_STATIONARY
      Stationary distribution.
  • Field Details Link icon

    • id Link icon

      String id
      Identifying id of the type of data.
  • Constructor Details Link icon

    • Data Link icon

      private Data(String id)
      Construct an enum for the type of data.
      Parameters:
      id - the identifier of the data type
  • Method Details Link icon

    • values Link icon

      public static Data[] 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 Link icon

      public static Data 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
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Enum<Data>
    • isStatistics Link icon

      public boolean isStatistics()
      Checks if the data type is a statistics type.
      Returns:
      true for statistics data types