- java.lang.Object
-
- fr.inria.mochy.core.abstractClass.PlaceAbstract
-
- fr.inria.mochy.core.trajectory.BooleanPlace
-
public class BooleanPlace extends PlaceAbstract
used as control place. They block a transition if set to false. Events can enable a boolean place
-
-
Constructor Summary
Constructors Constructor Description BooleanPlace(int number, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToken()
add a token in the placeString
getName()
get the name of the placeInteger
getNumber()
get the number of the placeboolean
isValue()
void
setValue(boolean value)
-
-
-
Constructor Detail
-
BooleanPlace
public BooleanPlace(int number, String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from class:PlaceAbstract
get the name of the place- Specified by:
getName
in classPlaceAbstract
-
getNumber
public Integer getNumber()
Description copied from class:PlaceAbstract
get the number of the place- Specified by:
getNumber
in classPlaceAbstract
-
isValue
public boolean isValue()
-
setValue
public void setValue(boolean value)
-
addToken
public void addToken()
Description copied from class:PlaceAbstract
add a token in the place- Specified by:
addToken
in classPlaceAbstract
-
-