Class LevelResponse

    • Field Detail

      • myInitTime

        protected double myInitTime
    • Constructor Detail

      • LevelResponse

        public LevelResponse​(Variable variable,
                             double level,
                             java.lang.String name)
        Parameters:
        variable - the variable to observe
        level - the level to associate with the variable
        name - the name of the response
      • LevelResponse

        public LevelResponse​(Variable variable,
                             double level)
        Parameters:
        variable - the variable to observe
        level - the level to associate with the variable
      • LevelResponse

        public LevelResponse​(Variable variable,
                             boolean stats,
                             double level)
        Parameters:
        variable - the variable to observe
        level - the level to associate with the variable
        stats - whether or not detailed state change statistics are collected
      • LevelResponse

        public LevelResponse​(Variable variable,
                             double level,
                             boolean stats,
                             java.lang.String name)
        Parameters:
        variable - the variable to observe
        level - the level to associate with the variable
        stats - whether or not detailed state change statistics are collected
        name - the name of the response
    • Method Detail

      • scheduleObservationInterval

        public void scheduleObservationInterval​(double startTime,
                                                double duration)
        Causes an observation interval to be specified. An observation interval is an interval of time over which the response statistics will be collected. This method will cause events to be scheduled (at the start of the simulation) that represent the interval.
        Parameters:
        startTime - the time to start the interval, must be greater than or equal to 0.0
        duration - the duration of the observation interval, must be greater than 0.0
      • hasObservationInterval

        public boolean hasObservationInterval()
        Returns:
        true if scheduleObservationInterval() has been previously called
      • cancelObservationInterval

        public void cancelObservationInterval()
        Causes the cancellation of the observation interval events
      • getStatisticsOption

        public final boolean getStatisticsOption()
        Returns:
        true if detailed state change statistics are collected
      • variableUpdated

        protected void variableUpdated()
      • stateUpdate

        protected void stateUpdate()
      • initialize

        protected void initialize()
        This method should be overridden by subclasses that need actions performed to initialize prior to a replication. It is called once before each replication occurs if the model element wants initialization. It is called after beforeReplication() is called
        Overrides:
        initialize in class ModelElement
      • warmUp

        protected void warmUp()
        This method should be overridden by subclasses that need actions performed at the warm up event during each replication. It is called once during each replication if the model element reacts to warm up actions.
        Overrides:
        warmUp in class ModelElement
      • variableInitialized

        protected void variableInitialized()
      • variableWarmedUp

        protected void variableWarmedUp()
      • variableReplicationEnded

        protected void variableReplicationEnded()