- java.lang.Object
-
- fr.inria.mochy.core.abstractClass.TransitionAbstract
-
- fr.inria.mochy.core.trajectory.TrajTransition
-
public class TrajTransition extends TransitionAbstract
-
-
Constructor Summary
Constructors Constructor Description TrajTransition(String name, int number, Float min, Float max)
-
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
busyPostSet(Marking m)
boolean
controlAllowsFiring()
Float
getClock()
the remaning time for a transition to be at the end (when its value is 0)ArrayList<BooleanPlace>
getControlPre()
return the list of the previous control places immediately linked to this transitionString
getDistribution()
ArrayList<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<TrajPlace>
getPost()
return the list of the next places immediately linked to this transitionArrayList<TrajPlace>
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()
void
sample(Sampler s)
void
setClock(Float clock)
set the remaning time for a transition to be at the end (when its value is 0)void
setGaussian(boolean b)
void
setLowerBound(Float lowerBound)
set the lower bound of the interval in which the clock will startvoid
setPost(TrajPlace post)
void
setPre(TrajPlace pre)
void
setUpperBound(Float upperBound)
set the upper bound of the interval in which the clock will startvoid
setWeibull(boolean b)
void
setWeibullCoef(int value)
String
toString()
-
Methods inherited from class fr.inria.mochy.core.abstractClass.TransitionAbstract
setClock, tokensTimeToFire
-
-
-
-
Method Detail
-
busyPostSet
public boolean busyPostSet(Marking m)
-
busyPostSet
public boolean busyPostSet()
-
isBlocked
public boolean isBlocked(Marking m)
-
isFireable
public boolean isFireable()
-
sample
public void sample(Sampler s)
-
getName
public String getName()
Description copied from class:TransitionAbstract
the name of the transition- Overrides:
getName
in classTransitionAbstract
-
getNumber
public int getNumber()
Description copied from class:TransitionAbstract
the id number of the transition- Overrides:
getNumber
in classTransitionAbstract
-
getPre
public ArrayList<TrajPlace> getPre()
Description copied from class:TransitionAbstract
return the list of the previous places immediately linked to this transition- Specified by:
getPre
in classTransitionAbstract
-
setPre
public void setPre(TrajPlace pre)
-
getPost
public ArrayList<TrajPlace> getPost()
Description copied from class:TransitionAbstract
return the list of the next places immediately linked to this transition- Specified by:
getPost
in classTransitionAbstract
-
setPost
public void setPost(TrajPlace post)
-
getControlPre
public ArrayList<BooleanPlace> getControlPre()
Description copied from class:TransitionAbstract
return the list of the previous control places immediately linked to this transition- Specified by:
getControlPre
in classTransitionAbstract
-
getClock
public Float getClock()
Description copied from class:TransitionAbstract
the remaning time for a transition to be at the end (when its value is 0)- Overrides:
getClock
in classTransitionAbstract
-
getDistribution
public String getDistribution()
-
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
-
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
-
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
-
setClock
public void setClock(Float clock)
Description copied from class:TransitionAbstract
set the remaning time for a transition to be at the end (when its value is 0)- Overrides:
setClock
in classTransitionAbstract
-
controlAllowsFiring
public boolean controlAllowsFiring()
-
setGaussian
public void setGaussian(boolean b)
-
setWeibull
public void setWeibull(boolean b)
-
setWeibullCoef
public void setWeibullCoef(int value)
-
-