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

    • UNDEFINED

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

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

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

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

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

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

      public static final Data STATISTICS_STATIONARY
      Stationary distribution.
  • Field Details

    • id

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

    • Data

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

    • values

      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

      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

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

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