Class EquTransition

  • Direct Known Subclasses:
    EquTransitionStopsLoic

    public class EquTransition
    extends TransitionAbstract
    an EquTransition is a point of control which will define the evolution of a token in the next place, it manages the time a token will stay at the previous place
    • Constructor Detail

      • EquTransition

        public EquTransition​(int number,
                             String name,
                             float lowerbound,
                             Float upperbound)
        instantiate the EquTransition
    • Method Detail

      • addPre

        public void addPre​(EquPlace pre)
        add a previous place to this transition
      • addControlPre

        public void addControlPre​(EquPlace pre)
        add a previous control place to this transition
      • addPost

        public void addPost​(EquPlace post)
        add a next place to this transition
      • isGaussian

        public boolean isGaussian()
        return true if the clock of this transition follow a gaussian probability law
      • setGaussian

        public void setGaussian​(boolean b)
        sets the Gaussian probability law of the transition
        Parameters:
        b -
      • isWeibull

        public boolean isWeibull()
        check if this transition follows a weibull probability law
      • getWeibullCoef

        public int getWeibullCoef()
        get the weibull coefficient of the weibull probability law
      • setWeibullCoef

        public void setWeibullCoef​(int coef)
        set the weibull coefficient of the weibull probability law
      • setWeibull

        public void setWeibull​(boolean b)
        sets the weibul characterisitcs of distribution to true/false
        Parameters:
        b -
      • sample

        public float sample​(Sampler s)
        samples a value for current transition depending of the probability law (uniform, gaussian, weibull...)
      • controlAllowsFiring

        public boolean controlAllowsFiring()
        true if all places in the list of control places contain at least one token
        Returns:
      • getNormalTime

        public float getNormalTime()
        get the normal time of the transition, the average between the lowerbound and the upperbound