Class AbstractQueueingComposer<C extends Candidate,I extends CompositionComponent<C>,R extends Result,L extends CandidateConstraint<C>>
- 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<C,I,R,L>
-
- org.processmining.specpp.base.impls.AbstractQueueingComposer<C,I,R,L>
-
- All Implemented Interfaces:
java.util.function.Consumer<C>,Composer<C,I,R>,Constrainer<L>,ConstrainingComposer<C,I,R,L>,FullComponentSystemUser,ComposerComponent<C,I,R>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,ExposesObservable<L>,Initializable,Triggerable
- Direct Known Subclasses:
DeltaComposer
public abstract class AbstractQueueingComposer<C extends Candidate,I extends CompositionComponent<C>,R extends Result,L extends CandidateConstraint<C>> extends AbstractPostponingComposer<C,I,R,L>
-
-
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.List<C>postponedCandidates-
Fields inherited from class org.processmining.specpp.base.impls.RecursiveComposer
childComposer
-
-
Constructor Summary
Constructors Constructor Description AbstractQueueingComposer(ComposerComponent<C,I,R> childComposer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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(C candidate)protected abstract AbstractPostponingComposer.CandidateDecisionreDeliberateCandidate(C candidate)-
Methods inherited from class org.processmining.specpp.base.impls.AbstractPostponingComposer
accept, acceptCandidate, candidatesAreExhausted, deliberateCandidate, discardCandidate, getConstraintPublisher, iteratePostponedCandidatesUntilNoChange, publishConstraint, rejectCandidate, 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, getPublishedConstraintClass
-
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
-
-
-
-
Constructor Detail
-
AbstractQueueingComposer
public AbstractQueueingComposer(ComposerComponent<C,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
-
postponeDecision
protected void postponeDecision(C candidate)
- Specified by:
postponeDecisionin classAbstractPostponingComposer<C extends Candidate,I extends CompositionComponent<C>,R extends Result,L extends CandidateConstraint<C>>
-
reDeliberateCandidate
protected abstract AbstractPostponingComposer.CandidateDecision reDeliberateCandidate(C candidate)
-
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<C extends Candidate,I extends CompositionComponent<C>,R extends Result,L extends CandidateConstraint<C>>- Returns:
- true if the set of postponed candidates changed
-
-