- java.lang.Object
-
- fr.inria.mochy.core.abstractClass.TransitionAbstract
-
- fr.inria.mochy.core.mochysim.Transition
-
public class Transition extends TransitionAbstract
A transition is set with its name, its content, its previous/next places, its clock and its state none/enabled/firable.
-
-
Field Summary
Fields Modifier and Type Field Description Integer
number
-
Fields inherited from class fr.inria.mochy.core.abstractClass.TransitionAbstract
clock
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLinkedEvent(TableEvent te)
add an event to the list of the linked events to this transitionboolean
busyPostSet()
boolean
controlAllowsFiring()
Checks if the control places used as input to the current transition allow firing of tint
getCoefWeibull()
ArrayList<Place>
getControlPre()
return the list of the previous control places immediately linked to this transitionString
getDistribution()
ArrayList<Place>
getInControlPlaces()
returns the list of control places used as input of the current transitionArrayList<TableEvent>
getLinkedEvents()
the list of the events linked to this transitionFloat
getLowerBound()
the lower bound of the interval in which the clock will startString
getMax()
the upper bound of the interval in which the clock will start as a stringString
getMin()
String
getName()
the name of the transitionint
getNumber()
the id number of the transitionArrayList<Place>
getPost()
return the list of the next places immediately linked to this transitionArrayList<Place>
getPre()
return the list of the previous places immediately linked to this transitionFloat
getUpperBound()
the upper bound of the interval in which the clock will startboolean
isBlocked(Marking m)
boolean
isFireable()
boolean
isGaussian()
boolean
isWeibull()
void
sample(Sampler s)
void
setCoefWeibull(int coefWeibull)
void
setGaussian(boolean gaussian)
void
setLowerBound(Float lowerBound)
set the lower bound of the interval in which the clock will startvoid
setUpperBound(Float upperBound)
set the upper bound of the interval in which the clock will startvoid
setWeibull(boolean weibull)
String
toString()
-
Methods inherited from class fr.inria.mochy.core.abstractClass.TransitionAbstract
getClock, setClock, setClock, tokensTimeToFire
-
-
-
-
Field Detail
-
number
public Integer number
-
-
Method Detail
-
busyPostSet
public boolean busyPostSet()
-
isBlocked
public boolean isBlocked(Marking m)
-
isFireable
public boolean isFireable()
-
controlAllowsFiring
public boolean controlAllowsFiring()
Checks if the control places used as input to the current transition allow firing of t- Parameters:
t
-- Returns:
-
sample
public void sample(Sampler s)
-
getName
public String getName()
Description copied from class:TransitionAbstract
the name of the transition- Overrides:
getName
in classTransitionAbstract
-
getDistribution
public String getDistribution()
-
getInControlPlaces
public ArrayList<Place> getInControlPlaces()
returns the list of control places used as input of the current transition- Returns:
- the list of in places that are also control places
-
getNumber
public int getNumber()
Description copied from class:TransitionAbstract
the id number of the transition- Overrides:
getNumber
in classTransitionAbstract
- Returns:
- the indentifier of the transition
-
getMin
public String getMin()
-
getMax
public String getMax()
Description copied from class:TransitionAbstract
the upper bound of the interval in which the clock will start as a string- Overrides:
getMax
in classTransitionAbstract
-
isGaussian
public boolean isGaussian()
-
setGaussian
public void setGaussian(boolean gaussian)
-
isWeibull
public boolean isWeibull()
-
setWeibull
public void setWeibull(boolean weibull)
-
setCoefWeibull
public void setCoefWeibull(int coefWeibull)
-
getCoefWeibull
public int getCoefWeibull()
-
getLinkedEvents
public ArrayList<TableEvent> getLinkedEvents()
Description copied from class:TransitionAbstract
the list of the events linked to this transition- Overrides:
getLinkedEvents
in classTransitionAbstract
-
addLinkedEvent
public void addLinkedEvent(TableEvent te)
Description copied from class:TransitionAbstract
add an event to the list of the linked events to this transition- Overrides:
addLinkedEvent
in classTransitionAbstract
-
getPre
public ArrayList<Place> getPre()
Description copied from class:TransitionAbstract
return the list of the previous places immediately linked to this transition- Specified by:
getPre
in classTransitionAbstract
-
getPost
public ArrayList<Place> getPost()
Description copied from class:TransitionAbstract
return the list of the next places immediately linked to this transition- Specified by:
getPost
in classTransitionAbstract
-
getControlPre
public ArrayList<Place> getControlPre()
Description copied from class:TransitionAbstract
return the list of the previous control places immediately linked to this transition- Specified by:
getControlPre
in classTransitionAbstract
-
getLowerBound
public Float getLowerBound()
Description copied from class:TransitionAbstract
the lower bound of the interval in which the clock will start- Overrides:
getLowerBound
in classTransitionAbstract
-
setLowerBound
public void setLowerBound(Float lowerBound)
Description copied from class:TransitionAbstract
set the lower bound of the interval in which the clock will start- Overrides:
setLowerBound
in classTransitionAbstract
-
getUpperBound
public Float getUpperBound()
Description copied from class:TransitionAbstract
the upper bound of the interval in which the clock will start- Overrides:
getUpperBound
in classTransitionAbstract
-
setUpperBound
public void setUpperBound(Float upperBound)
Description copied from class:TransitionAbstract
set the upper bound of the interval in which the clock will start- Overrides:
setUpperBound
in classTransitionAbstract
-
-