Class NHPPTimeBtwEventRV

    • Field Detail

      • myCycleStartTime

        protected double myCycleStartTime
        Holds the time that the cycle started, where a cycle is the time period over which the rate function is defined.
      • myCycleLength

        protected double myCycleLength
        The length of a cycle if it repeats
      • myNumCycles

        protected int myNumCycles
        The number of cycles completed if cycles
      • myPPTime

        protected double myPPTime
        Holds the time of the last event from the underlying Poisson process
      • myLastRate

        protected double myLastRate
        If supplied and the repeat flag is false then this rate will be used after the range of the rate function has been passed
      • myRepeatFlag

        protected boolean myRepeatFlag
        Indicates whether or not the rate function should repeat when its range has been covered
      • myUseLastRateFlag

        protected boolean myUseLastRateFlag
        Turned on if the time goes past the rate function's range and a last rate was supplied
      • myRate1Expo

        protected final ExponentialRV myRate1Expo
        Used to schedule the end of cycles if they repeat
    • Method Detail

      • setRateFunction

        protected final void setRateFunction​(InvertibleCumulativeRateFunctionIfc rateFunction)
        Sets the rate function for the random variable. Must not be null
        Parameters:
        rateFunction - the rate function
      • initialize

        protected void initialize()
        Description copied from class: ModelElement
        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