public class InvariantCalculator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InvariantCalculator.InvariantAlgorithm
Enumeration for choosing which algorithm should be used.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.util.List<java.lang.Integer>> |
calcSInvariants(PetriNet pn)
Calculates the s-invariants of the the given petri net with the pipe
algorithm.
|
static java.util.Set<java.util.List<java.lang.Integer>> |
calcSInvariants(PetriNet pn,
InvariantCalculator.InvariantAlgorithm algo)
Calculates the s-invariants of the the given petri net with the given
algorithm.
|
static java.util.Set<java.util.List<java.lang.Integer>> |
calcTInvariants(PetriNet pn)
Calculates the t-invariants of the the given petri net with the pipe
algorithm.
|
static java.util.Set<java.util.List<java.lang.Integer>> |
calcTInvariants(PetriNet pn,
InvariantCalculator.InvariantAlgorithm algo)
Calculates the t-invariants of the the given petri net with the given
algorithm.
|
static Vector |
coveredBySInvariants(PetriNet pn)
Checks whether the the given petri net is covered by s-invariants with
the pipe algorithm.
|
static Vector |
coveredBySInvariants(PetriNet pn,
InvariantCalculator.InvariantAlgorithm algo)
Checks whether the the given petri net is covered by s-invariants with
the given algorithm.
|
static Vector |
coveredBySInvariants(PetriNet pn,
java.util.Set<java.util.List<java.lang.Integer>> invariants)
Checks whether the the given petri net is covered by the given s-invariants.
|
static Vector |
coveredByTInvariants(PetriNet pn)
Checks whether the the given petri net is covered by t-invariants with
the pipe algorithm.
|
static Vector |
coveredByTInvariants(PetriNet pn,
InvariantCalculator.InvariantAlgorithm algo)
Checks whether the the given petri net is covered by t-invariants with
the given algorithm.
|
static Vector |
coveredByTInvariants(PetriNet pn,
java.util.Set<java.util.List<java.lang.Integer>> invariants)
Checks whether the the given petri net is covered by the given t-invariants.
|
static <T extends Node> |
getMapping(java.util.Set<T> nodes,
java.util.Set<java.util.List<java.lang.Integer>> invariants)
Generates for every given invariant a mapping to the given nodes.
|
public static java.util.Set<java.util.List<java.lang.Integer>> calcSInvariants(PetriNet pn)
pn - - the petri net to calculate the s-invariants from.public static java.util.Set<java.util.List<java.lang.Integer>> calcSInvariants(PetriNet pn, InvariantCalculator.InvariantAlgorithm algo)
pn - - the petri net to calculate the s-invariants from.algo - - the algorithm with which the invariants should be
calculated.public static java.util.Set<java.util.List<java.lang.Integer>> calcTInvariants(PetriNet pn)
pn - - the petri net to calculate the t-invariants from.public static java.util.Set<java.util.List<java.lang.Integer>> calcTInvariants(PetriNet pn, InvariantCalculator.InvariantAlgorithm algo)
pn - - the petri net to calculate the t-invariants from.algo - - the algorithm with which the invariants should be
calculated.public static Vector coveredBySInvariants(PetriNet pn)
pn - - the petri net to check covered.public static Vector coveredBySInvariants(PetriNet pn, InvariantCalculator.InvariantAlgorithm algo)
pn - - the petri net to check covered.algo - - the algorithm with which it should be checked.public static Vector coveredBySInvariants(PetriNet pn, java.util.Set<java.util.List<java.lang.Integer>> invariants)
pn - - the petri net to check covered.invariants - - the invariants which should be tested if they cover.public static Vector coveredByTInvariants(PetriNet pn)
pn - - the petri net to check covered.public static Vector coveredByTInvariants(PetriNet pn, InvariantCalculator.InvariantAlgorithm algo)
pn - - the petri net to check covered.algo - - the algorithm with which it should be checked.public static Vector coveredByTInvariants(PetriNet pn, java.util.Set<java.util.List<java.lang.Integer>> invariants)
pn - - the petri net to check covered.invariants - - the invariants which should be tested if they cover.public static <T extends Node> java.util.Set<java.util.Map<T,java.lang.Integer>> getMapping(java.util.Set<T> nodes, java.util.Set<java.util.List<java.lang.Integer>> invariants)
T - - Place or Transition (extends Node) depending on t- or
s-invariants are given.nodes - - the nodes for the mapping.invariants - - the invariants which should be mapped.