public static class SynthesizePN.Builder
extends java.lang.Object
createForIsomorphicBehaviour or createForLanguageEquivalence, give it all the state that you want
and then use one of the build() method to create a SynthesizePN instance.| Modifier and Type | Method and Description |
|---|---|
SynthesizePN.Builder |
addRegion(Region r)
Add an already-known region to this builder.
|
SynthesizePN |
build()
Create a SynthesizePN instance for the current configuration of this builder.
|
static SynthesizePN.Builder |
createForIsomorphicBehaviour(RegionUtility utility)
Create a builder that targets the given RegionUtility and will synthesize up to isomorphic behaviour.
|
static SynthesizePN.Builder |
createForIsomorphicBehaviour(TransitionSystem ts)
Create a builder that targets the given TransitionSystem and will synthesize up to isomorphic
behaviour.
|
static SynthesizePN.Builder |
createForLanguageEquivalence(RegionUtility utility)
Create a builder that targets the given RegionUtility and will synthesize up to language equivalence.
|
static SynthesizePN.Builder |
createForLanguageEquivalence(TransitionSystem ts)
Create a builder that targets the given TransitionSystem and will synthesize up to language
equivalence.
|
PNProperties |
getProperties()
Get the required properties for the synthesized Petri net.
|
RegionUtility |
getRegionUtility()
Get the region utility that will be used for Petri net synthesis.
|
SynthesizePN.Builder |
setProperties(PNProperties props)
Set required properties for the synthesized Petri net.
|
SynthesizePN.Builder |
setQuickFail(boolean qf)
Set the quick fail mode for the SynthesizePN instance.
|
public static SynthesizePN.Builder createForIsomorphicBehaviour(RegionUtility utility)
utility - The region utility whose transition system should be synthesized.public static SynthesizePN.Builder createForIsomorphicBehaviour(TransitionSystem ts)
ts - The transition system that should be synthesized.public static SynthesizePN.Builder createForLanguageEquivalence(RegionUtility utility)
utility - The region utility whose transition system should be synthesized.public static SynthesizePN.Builder createForLanguageEquivalence(TransitionSystem ts) throws NonDeterministicException
ts - The transition system that should be synthesized.NonDeterministicException - if the transition system is non-deterministicLimitedUnfolding.calculateLimitedUnfolding(uniol.apt.adt.ts.TransitionSystem)public SynthesizePN.Builder setProperties(PNProperties props)
props - the properties to satisfy.public PNProperties getProperties()
public RegionUtility getRegionUtility()
public SynthesizePN.Builder setQuickFail(boolean qf)
SynthesizePN.wasSuccessfullySeparated() is interesting for you. In this case, SynthesizePN
will stop after the first failure instead of going through all separation problems and trying to
solve them.
The quick fail mode default to false.qf - the new value for the quick fail mode.public SynthesizePN.Builder addRegion(Region r) throws InvalidRegionException
r - The region that should be added.java.lang.IllegalArgumentException - If the given region belongs to a different RegionUtilityInvalidRegionException - If the given region is not validpublic SynthesizePN build() throws MissingLocationException
MissingLocationException - if the transition system for the utility has locations for only some
events