Enum TimeRepresentation

  • All Implemented Interfaces:
    Serializable, Comparable<TimeRepresentation>

    public enum TimeRepresentation
    extends Enum<TimeRepresentation>
    Different time representations.

    Both the elements (i.e nodes and edges) existence in time and the attributes' values in time can be represented in two different ways: using timestamps or using intervals. They can be mixed thought and therefore need to be configured by the user.

    Each representation has its advantages and disadvantages. For instance, timestamps are great when observations are made at fixed periods. On the other hand, intervals are great when the time is arbitrary and elements or attributes have long continuous existence.

    See Also:
    Configuration
    • Enum Constant Detail

      • TIMESTAMP

        public static final TimeRepresentation TIMESTAMP
        Timestamp representation (fixed).

        Time is represented using timestamps. Timestamps are single value and represent a single moment in time.

      • INTERVAL

        public static final TimeRepresentation INTERVAL
        Interval representation (continuous).

        Time is represented using intervals, with a beginning and an end. Intervals are always included on both bounds but allows an infinite bound.

    • Method Detail

      • values

        public static TimeRepresentation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TimeRepresentation c : TimeRepresentation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TimeRepresentation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null