public class CycleGenerator
extends java.lang.Object
| Constructor and Description |
|---|
CycleGenerator() |
| Modifier and Type | Method and Description |
|---|---|
PetriNet |
generateNet(int n)
Generate the Petri net with initial marking 1.
|
PetriNet |
generateNet(int n,
int init)
Generate the Petri net
|
public PetriNet generateNet(int n)
n - size of the cycle.public PetriNet generateNet(int n, int init)
n - size of the cycle.init - number of token initially on some place.