Enum Class EventType

All Implemented Interfaces:
IEventType, Serializable, Comparable<EventType>, Constable

public enum EventType extends Enum<EventType> implements IEventType
EventType määrittelee simulaation mahdolliset tapahtumatyypit. Tämä enum toteuttaa IEventType-rajapinnan, koska simulaation framework (Event ja EventList) ei saa riippua suoraan tästä konkreettisesta enumista. Framework käsittelee tapahtumia yleisesti IEventType-tyyppinä. Malli (eli tämä enum) määrittelee varsinaiset tapahtumat. Näin erotetaan simulaation moottori ja pörssin varsinainen malli toisistaan.
  • Enum Constant Details

    • ARRIVAL

      public static final EventType ARRIVAL
    • VALIDATION_COMPLETE

      public static final EventType VALIDATION_COMPLETE
    • MARKET_MATCHING_COMPLETE

      public static final EventType MARKET_MATCHING_COMPLETE
    • LIMIT_MATCHING_COMPLETE

      public static final EventType LIMIT_MATCHING_COMPLETE
    • EXECUTION_COMPLETE

      public static final EventType EXECUTION_COMPLETE
  • Method Details

    • values

      public static EventType[] 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 EventType 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