public class BoundedResult
extends java.lang.Object
Bounded check.| Modifier and Type | Field and Description |
|---|---|
java.util.List<Transition> |
cycle |
java.lang.Long |
k |
PetriNet |
pn |
java.util.List<Transition> |
sequence |
Place |
unboundedPlace |
| Constructor and Description |
|---|
BoundedResult(PetriNet pn,
Place place,
java.lang.Long k,
java.util.List<Transition> sequenceToCovered,
java.util.List<Transition> cycle)
Construct a new BoundedResult instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Transition> |
getSequenceExceeding(int n)
Return a sequence which is a counter-example to n-boundedness, if such a sequence exists.
|
boolean |
isBounded()
Was the checked Petri net bounded?
|
boolean |
isKBounded(int checkK)
Was the checked Petri net k-bounded?
|
boolean |
isSafe()
Was the checked Petri net safe?
|
public final PetriNet pn
public final Place unboundedPlace
public final java.lang.Long k
public final java.util.List<Transition> sequence
public final java.util.List<Transition> cycle
public BoundedResult(PetriNet pn, Place place, java.lang.Long k, java.util.List<Transition> sequenceToCovered, java.util.List<Transition> cycle)
pn - The Petri net that was examinedplace - Place which serves as a counter-examplek - The smallest k for which the Petri net is k-boundedsequenceToCovered - Firing sequence reaching a special markingcycle - Firing sequence producing arbitrarily many tokens after sequenceToCoveredpublic boolean isBounded()
public boolean isSafe()
public boolean isKBounded(int checkK)
checkK - The k which should be checked.public java.util.List<Transition> getSequenceExceeding(int n)
n - The bound to disprove. Must be a non-negative integer.