public class SynthesizePN
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SynthesizePN.Builder
Builder class for creating instances of SynthesizePN.
|
static class |
SynthesizePN.EventStateSeparationProblems
Iterable for iterating over all event/state separation problems of a transition system.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<State> |
calculateUnseparatedStates(java.util.Set<State> states,
java.util.Set<Region> regions)
Calculate the set of states which aren't separated by the given regions.
|
java.util.Map<java.lang.String,java.util.Set<State>> |
getFailedEventStateSeparationProblems()
Get all the event/state separation problems which could not be solved.
|
java.util.Collection<java.util.Set<State>> |
getFailedStateSeparationProblems()
Get all the state separation problems which could not be solved.
|
PNProperties |
getProperties()
Get the properties that were requested from synthesis.
|
java.util.Set<Region> |
getSeparatingRegions()
Get all separating regions which were calculated
|
RegionUtility |
getUtility()
Get the RegionUtility instance used for synthesis.
|
static boolean |
isDistributedImplementation(RegionUtility utility,
PNProperties properties,
PetriNet pn)
Check if the PetriNet is a distributed implementation
|
static boolean |
isGeneralizedMarkedGraph(PetriNet pn)
Check if the PetriNet is a generalized marked graph.
|
static boolean |
isGeneralizedTNet(PetriNet pn)
Check if the PetriNet is a generalized T-Net.
|
static void |
minimizeRegions(TransitionSystem ts,
java.util.Set<Region> requiredRegions,
boolean onlyEventSeparation)
Try to eliminate redundant regions.
|
boolean |
onlyEventSeparation()
Was only event/state separation solved or also state separation?
|
PetriNet |
synthesizePetriNet()
Synthesize a Petri Net from the separating regions that were calculated.
|
static PetriNet |
synthesizePetriNet(RegionUtility utility,
java.util.Set<Region> regions)
Synthesize a Petri Net from the given regions.
|
PetriNet |
synthesizePetriNet(java.util.Set<Region> regions)
Synthesize a Petri net from the given regions, checking that it is indeed a valid solution.
|
boolean |
wasSuccessfullySeparated()
Check if the transition system was successfully separated.
|
public static java.util.Set<State> calculateUnseparatedStates(java.util.Set<State> states, java.util.Set<Region> regions)
states - The states to separateregions - The regions that are used for separationpublic static void minimizeRegions(TransitionSystem ts, java.util.Set<Region> requiredRegions, boolean onlyEventSeparation)
ts - The transition system that is being solved.requiredRegions - Set of regions to minimize. Redundant regions will be removed.onlyEventSeparation - Should state separation be ignored?public java.util.Set<Region> getSeparatingRegions()
public boolean wasSuccessfullySeparated()
public java.util.Collection<java.util.Set<State>> getFailedStateSeparationProblems()
public java.util.Map<java.lang.String,java.util.Set<State>> getFailedEventStateSeparationProblems()
public RegionUtility getUtility()
public PNProperties getProperties()
public boolean onlyEventSeparation()
public static boolean isDistributedImplementation(RegionUtility utility, PNProperties properties, PetriNet pn)
utility - The region utility that defines the required distributionproperties - The properties instance to use; this is needed to handle ON correctly.pn - The PetriNet to checkpublic static boolean isGeneralizedTNet(PetriNet pn)
pn - The Petri net to checkpublic static boolean isGeneralizedMarkedGraph(PetriNet pn)
pn - The Petri net to checkpublic PetriNet synthesizePetriNet()
public PetriNet synthesizePetriNet(java.util.Set<Region> regions)
regions - The regions that should be used for synthesis.public static PetriNet synthesizePetriNet(RegionUtility utility, java.util.Set<Region> regions)
utility - An instance of RegionUtility for the requested transition system.regions - The regions that should be used for synthesis.