Class AbstractComposition<C extends Candidate,K extends java.util.Collection<C>>
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.base.impls.AbstractComposition<C,K>
-
- Type Parameters:
C- candidate typeK- type of the internally managed collection
- All Implemented Interfaces:
java.lang.Iterable<C>,java.util.function.Consumer<C>,Composition<C>,Evaluable,IntermediateResult,Result,FullComponentSystemUser,CompositionComponent<C>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,SequentialCollection<C>,Initializable,ProperlyPrintable
- Direct Known Subclasses:
ArrayListComposition
public abstract class AbstractComposition<C extends Candidate,K extends java.util.Collection<C>> extends AbstractBaseClass implements CompositionComponent<C>, ProperlyPrintable
The abstract base class for compositions.
-
-
Field Summary
Fields Modifier and Type Field Description protected Kcandidates
-
Constructor Summary
Constructors Constructor Description AbstractComposition(java.util.function.Supplier<K> candidateCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(C candidate)CgetLastAcceptedCandidate()java.util.Iterator<C>iterator()protected voidsetLastAcceptedCandidate(C candidate)intsize()java.util.List<C>toList()java.util.Set<C>toSet()java.lang.StringtoString()-
Methods inherited from class org.processmining.specpp.componenting.system.link.AbstractBaseClass
collectTransitiveSubcomponents, getComponentCollection, getSubComponents, globalComponentSystem, init, initSelf, localComponentSystem, postSubComponentInit, preSubComponentInit, registerSubComponent, unregisterSubComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.datastructures.util.SequentialCollection
hasCapacityLeft
-
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
-
AbstractComposition
public AbstractComposition(java.util.function.Supplier<K> candidateCollection)
-
-
Method Detail
-
getLastAcceptedCandidate
public C getLastAcceptedCandidate()
-
size
public int size()
- Specified by:
sizein interfaceSequentialCollection<C extends Candidate>
-
toSet
public java.util.Set<C> toSet()
- Specified by:
toSetin interfaceSequentialCollection<C extends Candidate>
-
toList
public java.util.List<C> toList()
- Specified by:
toListin interfaceSequentialCollection<C extends Candidate>
-
iterator
public java.util.Iterator<C> iterator()
-
accept
public void accept(C candidate)
-
setLastAcceptedCandidate
protected void setLastAcceptedCandidate(C candidate)
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceProperlyPrintable- Overrides:
toStringin classjava.lang.Object
-
-