Class WeibullTime

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

    
    public class WeibullTime<T>
    extends AbstractDistribution<T>
                        

    Weibull distributed events.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final void updateStatus(Time currentTime, boolean executed, double param, Environment<T, out Object> environment) Implement this method to update the distribution's internal status.
      double getMean()
      double getDeviation()
      final double getRate()
      WeibullTime<T> cloneOnNewNode(@Nonnull() Node<T> destination, @Nonnull() Time currentTime)
      • 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

      • WeibullTime

        WeibullTime(double mean, double deviation, RandomGenerator random)
        Parameters:
        mean - mean for this distribution
        deviation - standard deviation for this distribution
        random - RandomGenerator used internally
      • WeibullTime

        WeibullTime(double mean, double deviation, Time start, RandomGenerator random)
        Parameters:
        mean - mean for this distribution
        deviation - standard deviation for this distribution
        start - initial time
        random - RandomGenerator used internally
      • WeibullTime

        WeibullTime(double shapeParameter, double scaleParameter, double offsetParameter, Time start, RandomGenerator random)
        Parameters:
        shapeParameter - shape parameter for this distribution
        scaleParameter - shape parameter for this distribution
        offsetParameter - minimum possible time interval for this distribution
        start - initial time
        random - RandomGenerator used internally
    • Method Detail

      • updateStatus

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

        Implement this method to update the distribution's internal status.

        Parameters:
        currentTime - current time
        executed - true if the reaction whose this distribution has been associated has just been executed
        param - optional parameter passed by the reaction
        environment - the current environment
      • getMean

         double getMean()
        Returns:

        the mean for this distribution.

      • getDeviation

         double getDeviation()
        Returns:

        the standard deviation for this distribution.