Package 

Interface TimeDistribution

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable

    
    public interface TimeDistribution<T>
     implements Cloneable, Serializable
                        

    This interface represents a temporal distribution for any event.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void update(Time currentTime, boolean executed, double param, Environment<T, out Object> environment) Updates the internal status.
      abstract Time getNextOccurence()
      abstract double getRate()
      abstract TimeDistribution<T> cloneOnNewNode(Node<T> destination, Time currentTime)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • update

         abstract void update(Time currentTime, boolean executed, double param, Environment<T, out Object> environment)

        Updates the internal status.

        Parameters:
        currentTime - current time
        executed - true if the reaction has just been executed
        param - a parameter passed by the reaction
        environment - the current environment
      • getRate

         abstract double getRate()
      • cloneOnNewNode

         abstract TimeDistribution<T> cloneOnNewNode(Node<T> destination, Time currentTime)
        Parameters:
        destination - the node where the newly created time distribution will be placed
        currentTime - the time at which the cloning operation happened