Class AcceptingComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result>
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.base.impls.AbstractComposer<C,I,R>
-
- org.processmining.specpp.base.impls.AcceptingComposer<C,I,R>
-
- All Implemented Interfaces:
java.util.function.Consumer<C>,Composer<C,I,R>,FullComponentSystemUser,ComposerComponent<C,I,R>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,Initializable
- Direct Known Subclasses:
PlaceAccepter
public class AcceptingComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result> extends AbstractComposer<C,I,R>
-
-
Field Summary
-
Fields inherited from class org.processmining.specpp.base.impls.AbstractComposer
assembleResult, composition
-
-
Constructor Summary
Constructors Constructor Description AcceptingComposer(I composition, java.util.function.Function<? super I,R> assembleResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacceptanceRevoked(C candidate)Hook for actions to perform on initially accepted candidates which are now removed.protected voidcandidateAccepted(C candidate)Hook for actions to perform on accepted candidates.protected voidcandidateRejected(C candidate)Hook for actions to perform on rejected candidates.voidcandidatesAreExhausted()Hook method which is called when this composer will not receive any more candidates in the future as the connected proposer has been exhausted.protected booleandeliberateAcceptance(C candidate)Hook method where the acceptance decision is made.protected voidinitSelf()Hook for subclasses to initialize themselves after the initial constructor call.-
Methods inherited from class org.processmining.specpp.base.impls.AbstractComposer
accept, acceptCandidate, composition, generateResult, getIntermediateResult, isFinished, rejectCandidate, revokeAcceptance, revokeLastAcceptance
-
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.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
-
-
-
-
Method Detail
-
deliberateAcceptance
protected boolean deliberateAcceptance(C candidate)
Description copied from class:AbstractComposerHook method where the acceptance decision is made.- Specified by:
deliberateAcceptancein classAbstractComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result>- Parameters:
candidate- the candidate to decide acceptance for- Returns:
- whether to accept this candidate
-
acceptanceRevoked
protected void acceptanceRevoked(C candidate)
Description copied from class:AbstractComposerHook for actions to perform on initially accepted candidates which are now removed.- Specified by:
acceptanceRevokedin classAbstractComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result>- Parameters:
candidate- the revoked candidate
-
candidateAccepted
protected void candidateAccepted(C candidate)
Description copied from class:AbstractComposerHook for actions to perform on accepted candidates.- Specified by:
candidateAcceptedin classAbstractComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result>- Parameters:
candidate- the accepted candidate
-
candidateRejected
protected void candidateRejected(C candidate)
Description copied from class:AbstractComposerHook for actions to perform on rejected candidates.- Specified by:
candidateRejectedin classAbstractComposer<C extends Candidate,I extends AdvancedComposition<C>,R extends Result>- Parameters:
candidate- the rejected candidate
-
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
-
candidatesAreExhausted
public void candidatesAreExhausted()
Description copied from interface:ComposerHook method which is called when this composer will not receive any more candidates in the future as the connected proposer has been exhausted.
-
-