Class DiracComb

  • All Implemented Interfaces:
    it.unibo.alchemist.model.TimeDistribution , java.io.Serializable , java.lang.Cloneable

    
    public class DiracComb<T>
    extends AbstractDistribution<T>
                        

    A DiracComb is a sequence of events that happen every fixed time interval.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DiracComb(Time start, double rate)
      DiracComb(double rate)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final double getRate()
      final DiracComb<T> cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
      String toString()
      • Methods inherited from class it.unibo.alchemist.model.timedistributions.AbstractDistribution

        getNextOccurence, update
      • Methods inherited from class it.unibo.alchemist.model.TimeDistribution

        cloneOnNewNode, getNextOccurence, update
      • Methods inherited from class java.lang.Object

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

      • DiracComb

        DiracComb(Time start, double rate)
        Parameters:
        start - initial time
        rate - how many events should happen per time unit
      • DiracComb

        DiracComb(double rate)
        Parameters:
        rate - how many events should happen per time unit