Class SimCounter<T extends Number & Comparable<T>>

    • Field Detail

      • TIMED_OBSERVATION_ADDED_EVENT

        public static final EventType TIMED_OBSERVATION_ADDED_EVENT
        OBSERVATION_ADDED_EVENT is fired whenever an observation is processed.
      • TIMED_INITIALIZED_EVENT

        public static final EventType TIMED_INITIALIZED_EVENT
        INITIALIZED_EVENT is fired whenever a Tally is (re-)initialized.
    • Constructor Detail

      • SimCounter

        public SimCounter​(String description,
                          DsolModel<T,​? extends SimulatorInterface<T>> model)
        Construct a new SimCounter, and register the counter in the OutputStatistics of the model.
        Parameters:
        description - String; refers to the description of this counter
        model - DsolModel<T, SimulatorInterface<T>>; the model
      • SimCounter

        public SimCounter​(String description,
                          DsolModel<T,​? extends SimulatorInterface<T>> model,
                          EventProducer target,
                          EventType eventType)
        constructs a new SimCounter.
        Parameters:
        description - String; the description
        model - DsolModel<T, SimulatorInterface<T>>; the model
        target - EventProducer; the target on which to count
        eventType - EventType; the EventType for which counting takes place