public final class SeparationUtility
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Separation |
createSeparationInstance(RegionUtility utility,
PNProperties properties)
Construct a new Separation instance.
|
static Synthesizer |
createSynthesizerInstance(RegionUtility utility,
PNProperties properties,
boolean onlyEventSeparation,
boolean quickFail,
java.util.Collection<Region> regions)
Construct a new Synthesizer instance.
|
static Synthesizer |
createSynthesizerInstance(RegionUtility utility,
PNProperties properties,
boolean onlyEventSeparation,
boolean quickFail,
java.util.Collection<Region> regions,
boolean tryToFactorize)
Construct a new Synthesizer instance.
|
static java.lang.String[] |
getLocationMap(RegionUtility utility,
PNProperties properties)
Calculate a mapping from events to their location.
|
static boolean |
isEventEnabled(State state,
java.lang.String event)
Test if there exists an outgoing arc labelled with the given event.
|
static boolean |
isSeparatingRegion(Region region,
State state,
State otherState)
Check if the given region separates the two given states.
|
static boolean |
isSeparatingRegion(Region region,
State state,
java.lang.String event)
Check if the given region separates the state from the event.
|
public static boolean isEventEnabled(State state, java.lang.String event)
state - The state to examine.event - The event that should fire.public static boolean isSeparatingRegion(Region region, State state, State otherState)
region - The region to examine.state - The first state of the separation problemotherState - The second state of the separation problempublic static boolean isSeparatingRegion(Region region, State state, java.lang.String event)
region - The region to examine.state - The state of the separation problemevent - The event of the separation problempublic static java.lang.String[] getLocationMap(RegionUtility utility, PNProperties properties) throws MissingLocationException
utility - The region utility that describes the events.properties - Properties that may influence the location map.MissingLocationException - if the transition system for the utility has locations for only some eventspublic static Separation createSeparationInstance(RegionUtility utility, PNProperties properties) throws MissingLocationException
utility - The region utility to use.properties - Properties that the calculated region should satisfy.MissingLocationException - if the transition system for the utility has locations for only some eventspublic static Synthesizer createSynthesizerInstance(RegionUtility utility, PNProperties properties, boolean onlyEventSeparation, boolean quickFail, java.util.Collection<Region> regions) throws MissingLocationException
utility - The region utility to use.properties - Properties that the calculated region should satisfy.onlyEventSeparation - A flag indicating that state separation should be ignored.quickFail - If true, stop the calculation as soon as it is known that it won't be successful. If false,
try to solve all separation problems. Only if true will the list of failed problems be fully filled.regions - Already known regions that can be used to speed up calculation.MissingLocationException - if the transition system for the utility has locations for only some eventspublic static Synthesizer createSynthesizerInstance(RegionUtility utility, PNProperties properties, boolean onlyEventSeparation, boolean quickFail, java.util.Collection<Region> regions, boolean tryToFactorize) throws MissingLocationException
utility - The region utility to use.properties - Properties that the calculated region should satisfy.onlyEventSeparation - A flag indicating that state separation should be ignored.quickFail - If true, stop the calculation as soon as it is known that it won't be successful. If false,
try to solve all separation problems. Only if true will the list of failed problems be fully filled.regions - Already known regions that can be used to speed up calculation.tryToFactorize - Try to factorize the input before actual synthesis begins.MissingLocationException - if the transition system for the utility has locations for only some events