public class GenerateStepNet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TRANSITIONS_KEY |
static java.lang.String |
TS_EDGE_TEMPLATE |
static java.lang.String |
TS_INIT_TEMPLATE |
static java.lang.String |
TS_NODE_TEMPLATE |
| Constructor and Description |
|---|
GenerateStepNet(PetriNet pn)
Create a new instance for the given Petri net
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<Marking> |
getMaximalReachableMarkings(PetriNet pn)
Get all pairwise uncomparable reachable markings of a Petri net.
|
static java.lang.String |
getStepLabel(java.util.Collection<Transition> transitions)
Get the label of a step
|
PetriNet |
getStepNet()
Get the calculated step net.
|
static boolean |
isMarkingLessOrEqual(Marking mark1,
Marking mark2)
Test if a marking is smaller or equal to some other marking.
|
boolean |
isStepReasonable(java.util.Collection<Transition> transitions)
Check if a step is reasonable which means that it can be enabled in some reachable marking.
|
java.lang.String |
renderCoverabilityGraphAsDot()
Render the coverability graph of the generated step net in the DOT file format.
|
public static final java.lang.String TRANSITIONS_KEY
public static final java.lang.String TS_NODE_TEMPLATE
public static final java.lang.String TS_INIT_TEMPLATE
public static final java.lang.String TS_EDGE_TEMPLATE
public GenerateStepNet(PetriNet pn)
pn - The Petri net whose step net should be created and examined.public PetriNet getStepNet()
public static java.lang.String getStepLabel(java.util.Collection<Transition> transitions)
transitions - The transitions that are part of this steppublic static boolean isMarkingLessOrEqual(Marking mark1, Marking mark2)
mark1 - The first marking to comparemark2 - The second marking to comparepublic static java.util.Collection<Marking> getMaximalReachableMarkings(PetriNet pn)
pn - The Petri net whose markings should be computedisMarkingLessOrEqual returns true.public boolean isStepReasonable(java.util.Collection<Transition> transitions)
transitions - The transitions that should be part of the step.public java.lang.String renderCoverabilityGraphAsDot()