public class SeparationLogic
extends java.lang.Object
| Constructor and Description |
|---|
SeparationLogic(PetriNet petriNet,
boolean stronglyCheck,
long initK,
java.util.ArrayList<java.lang.String> chosenFiringSequence,
int maxLength,
boolean fullOutput)
Main idea is to compute reachability graph for net with marking k*M0
(rg_kM0) and reachability graph with marking M0 (rg_M0).
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeSeparation(java.util.ArrayList<java.lang.String> chosenFiringSequence,
boolean stronglyCheck,
boolean fullOutput)
This method compute the separation.
|
SeparationSingleResult |
getResult()
This returns result.
|
public SeparationLogic(PetriNet petriNet, boolean stronglyCheck, long initK, java.util.ArrayList<java.lang.String> chosenFiringSequence, int maxLength, boolean fullOutput) throws UnboundedException
Note: We check every possible firable sequence -- using Coverabily Class, so unbounded nets will be sorted out.
Strongly separation: Try to realize every sequence of rg_kM0 with sequences from rg_M0. Sequences from rg_M0 can be used k times. It is allowed to switch between sequences of rg_M0 but the order in a sequence must not be changed.
Weakly separation: Same as strongly but here the order in a sequence can be changed.
petriNet - Net which will be checkedstronglyCheck - check strong or weaklyinitK - Value for k, k == 0 -> compute the maximum k and
use it. k must be "ok" - see separation classchosenFiringSequence - check this given firing sequence - null for unusedmaxLength - check all sequences up this length - must be greater
than 0 - unused if chosenFiringSequence was setfullOutput - outputs every firing sequenceUnboundedException - Unbounded exceptionpublic final void computeSeparation(java.util.ArrayList<java.lang.String> chosenFiringSequence,
boolean stronglyCheck,
boolean fullOutput)
throws UnboundedException
chosenFiringSequence - chosenFiringSequence check this given firing sequence - null for unusedstronglyCheck - true: checks strongly, false: check weaklyfullOutput - fullOutput outputs every firing sequenceUnboundedException - Unbounded exceptionpublic SeparationSingleResult getResult()