- java.lang.Object
-
- fr.inria.mochy.core.abstractClass.TransitionAbstract
-
- Direct Known Subclasses:
EquTransition
,TrajTransition
,Transition
public abstract class TransitionAbstract extends Object
it defines the abstraction of the transitions of the petri nets models defined by PhysicalModel
-
-
Field Summary
Fields Modifier and Type Field Description protected Float
clock
the remaning time for a transition to be at the end (when its value is 0)Float
lowerBound
the lowerbound of the interval in which the clock will startString
max
the upperbound of the interval in which the clock will start as a stringString
name
the name of the transitionInteger
number
the id number of the transitionFloat
upperBound
the upperbound of the interval in which the clock will start
-
Constructor Summary
Constructors Constructor Description TransitionAbstract()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addLinkedEvent(TableEvent te)
add an event to the list of the linked events to this transitionFloat
getClock()
the remaning time for a transition to be at the end (when its value is 0)abstract ArrayList<? extends PlaceAbstract>
getControlPre()
return the list of the previous control places immediately linked to this 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
getName()
the name of the transitionint
getNumber()
the id number of the transitionabstract ArrayList<? extends PlaceAbstract>
getPost()
return the list of the next places immediately linked to this transitionabstract ArrayList<? extends PlaceAbstract>
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 startvoid
setClock(float value)
set the remaning time for a transition to be at the end (when its value is 0)void
setClock(Float value)
set the remaning time for a transition to be at the end (when its value is 0)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 startArrayList<Float>
tokensTimeToFire()
return the list of the values to get to the end of the place for each token of the place
-
-
-
Field Detail
-
name
public String name
the name of the transition
-
number
public Integer number
the id number of the transition
-
clock
protected Float clock
the remaning time for a transition to be at the end (when its value is 0)
-
lowerBound
public Float lowerBound
the lowerbound of the interval in which the clock will start
-
upperBound
public Float upperBound
the upperbound of the interval in which the clock will start
-
max
public String max
the upperbound of the interval in which the clock will start as a string
-
-
Method Detail
-
getLinkedEvents
public ArrayList<TableEvent> getLinkedEvents()
the list of the events linked to this transition
-
addLinkedEvent
public void addLinkedEvent(TableEvent te)
add an event to the list of the linked events to this transition
-
getNumber
public int getNumber()
the id number of the transition
-
getName
public String getName()
the name of the transition
-
getClock
public Float getClock()
the remaning time for a transition to be at the end (when its value is 0)
-
setClock
public void setClock(Float value)
set the remaning time for a transition to be at the end (when its value is 0)
-
setClock
public void setClock(float value)
set the remaning time for a transition to be at the end (when its value is 0)
-
getLowerBound
public Float getLowerBound()
the lower bound of the interval in which the clock will start
-
setLowerBound
public void setLowerBound(Float lowerbound)
set the lower bound of the interval in which the clock will start
-
getUpperBound
public Float getUpperBound()
the upper bound of the interval in which the clock will start
-
setUpperBound
public void setUpperBound(Float upperbound)
set the upper bound of the interval in which the clock will start
-
getMax
public String getMax()
the upper bound of the interval in which the clock will start as a string
-
getPre
public abstract ArrayList<? extends PlaceAbstract> getPre()
return the list of the previous places immediately linked to this transition
-
getPost
public abstract ArrayList<? extends PlaceAbstract> getPost()
return the list of the next places immediately linked to this transition
-
getControlPre
public abstract ArrayList<? extends PlaceAbstract> getControlPre()
return the list of the previous control places immediately linked to this transition
-
-