Class UniwiredComposer<I extends AdvancedComposition<Place>,R extends Result>
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.base.impls.RecursiveComposer<C,I,R>
-
- org.processmining.specpp.base.impls.AbstractPostponingComposer<Place,I,R,CandidateConstraint<Place>>
-
- org.processmining.specpp.composition.composers.UniwiredComposer<I,R>
-
- All Implemented Interfaces:
java.util.function.Consumer<Place>,Composer<Place,I,R>,Constrainer<CandidateConstraint<Place>>,ConstrainingComposer<Place,I,R,CandidateConstraint<Place>>,FullComponentSystemUser,ComposerComponent<Place,I,R>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,ExposesObservable<CandidateConstraint<Place>>,Initializable,Triggerable
public class UniwiredComposer<I extends AdvancedComposition<Place>,R extends Result> extends AbstractPostponingComposer<Place,I,R,CandidateConstraint<Place>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.processmining.specpp.base.impls.AbstractPostponingComposer
AbstractPostponingComposer.CandidateDecision
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<Place>collectedPlacesprotected intcurrentTreeLevelprotected DelegatingDataSource<HeuristicStrategy<Place,CandidateScore>>orderingHeuristicprotected DelegatingObserver<ProposerSignal>proposerSignalsInprotected DelegatingDataSource<IntEncodings<Transition>>transitionEncodingsprotected DelegatingDataSource<java.lang.Integer>treeLevelSourceprotected WiringTesterwiringMatrix-
Fields inherited from class org.processmining.specpp.base.impls.RecursiveComposer
childComposer
-
-
Constructor Summary
Constructors Constructor Description UniwiredComposer(ComposerComponent<Place,I,R> childComposer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractPostponingComposer.CandidateDecisiondeliberateCandidate(Place candidate)protected voiddiscardCandidate(Place candidate)java.lang.Class<CandidateConstraint<Place>>getPublishedConstraintClass()protected voidinitSelf()Hook for subclasses to initialize themselves after the initial constructor call.protected booleaniteratePostponedCandidates()Hook method to define one iteration of postponed candidates traversal.protected voidpostponeDecision(Place candidate)protected voidrejectCandidate(Place candidate)-
Methods inherited from class org.processmining.specpp.base.impls.AbstractPostponingComposer
accept, acceptCandidate, candidatesAreExhausted, getConstraintPublisher, iteratePostponedCandidatesUntilNoChange, publishConstraint, trigger
-
Methods inherited from class org.processmining.specpp.base.impls.RecursiveComposer
forward, generateResult, getIntermediateResult, isFinished
-
Methods inherited from class org.processmining.specpp.componenting.system.link.AbstractBaseClass
collectTransitiveSubcomponents, getComponentCollection, getSubComponents, globalComponentSystem, init, localComponentSystem, postSubComponentInit, preSubComponentInit, registerSubComponent, unregisterSubComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.base.Composer
generateResult, getIntermediateResult, isFinished
-
Methods inherited from interface org.processmining.specpp.base.Constrainer
getObservable
-
Methods inherited from interface org.processmining.specpp.componenting.system.FullComponentSystemUser
collectTransitiveSubcomponents, connectLocalComponentSystem, getComponentCollection, registerSubComponent, unregisterSubComponent
-
Methods inherited from interface org.processmining.specpp.traits.Initializable
init
-
Methods inherited from interface org.processmining.specpp.componenting.traits.UsesGlobalComponentSystem
globalComponentSystem
-
Methods inherited from interface org.processmining.specpp.componenting.traits.UsesLocalComponentSystem
bridgeToChildren, localComponentSystem
-
-
-
-
Field Detail
-
collectedPlaces
protected final java.util.ArrayList<Place> collectedPlaces
-
proposerSignalsIn
protected final DelegatingObserver<ProposerSignal> proposerSignalsIn
-
transitionEncodings
protected final DelegatingDataSource<IntEncodings<Transition>> transitionEncodings
-
orderingHeuristic
protected final DelegatingDataSource<HeuristicStrategy<Place,CandidateScore>> orderingHeuristic
-
wiringMatrix
protected WiringTester wiringMatrix
-
currentTreeLevel
protected int currentTreeLevel
-
treeLevelSource
protected final DelegatingDataSource<java.lang.Integer> treeLevelSource
-
-
Constructor Detail
-
UniwiredComposer
public UniwiredComposer(ComposerComponent<Place,I,R> childComposer)
-
-
Method Detail
-
initSelf
protected void initSelf()
Description copied from class:AbstractBaseClassHook for subclasses to initialize themselves after the initial constructor call. At the time this is called, all fulfillable local & global component system requests will be fulfilled. Unless advanced interaction with the underlying systems is required, this is the only relevant hook for user-defined subclasses.- Specified by:
initSelfin classAbstractBaseClass
-
deliberateCandidate
protected AbstractPostponingComposer.CandidateDecision deliberateCandidate(Place candidate)
- Specified by:
deliberateCandidatein classAbstractPostponingComposer<Place,I extends AdvancedComposition<Place>,R extends Result,CandidateConstraint<Place>>
-
iteratePostponedCandidates
protected boolean iteratePostponedCandidates()
Description copied from class:AbstractPostponingComposerHook method to define one iteration of postponed candidates traversal. It will be called repeatedly until there are no more changes.- Specified by:
iteratePostponedCandidatesin classAbstractPostponingComposer<Place,I extends AdvancedComposition<Place>,R extends Result,CandidateConstraint<Place>>- Returns:
- true if the set of postponed candidates changed
-
postponeDecision
protected void postponeDecision(Place candidate)
- Specified by:
postponeDecisionin classAbstractPostponingComposer<Place,I extends AdvancedComposition<Place>,R extends Result,CandidateConstraint<Place>>
-
rejectCandidate
protected void rejectCandidate(Place candidate)
- Specified by:
rejectCandidatein classAbstractPostponingComposer<Place,I extends AdvancedComposition<Place>,R extends Result,CandidateConstraint<Place>>
-
discardCandidate
protected void discardCandidate(Place candidate)
- Specified by:
discardCandidatein classAbstractPostponingComposer<Place,I extends AdvancedComposition<Place>,R extends Result,CandidateConstraint<Place>>
-
getPublishedConstraintClass
public java.lang.Class<CandidateConstraint<Place>> getPublishedConstraintClass()
-
-