Class ArrayListComposition<C extends Candidate>
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.base.impls.AbstractComposition<C,java.util.ArrayList<C>>
-
- org.processmining.specpp.base.impls.ArrayListComposition<C>
-
- All Implemented Interfaces:
java.lang.Iterable<C>,java.util.function.Consumer<C>,AdvancedComposition<C>,Composition<C>,Evaluable,IntermediateResult,MutableCappedComposition<C>,Result,FullComponentSystemUser,CompositionComponent<C>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,MutableSequentialCollection<C>,SequentialCollection<C>,Initializable,IsSizeLimited,ProperlyPrintable
- Direct Known Subclasses:
BasePlaceComposition
public class ArrayListComposition<C extends Candidate> extends AbstractComposition<C,java.util.ArrayList<C>> implements AdvancedComposition<C>
-
-
Field Summary
Fields Modifier and Type Field Description static intABSOLUTE_SIZE_LIMIT-
Fields inherited from class org.processmining.specpp.base.impls.AbstractComposition
candidates
-
-
Constructor Summary
Constructors Constructor Description ArrayListComposition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasCapacityLeft()protected voidinitSelf()Hook for subclasses to initialize themselves after the initial constructor call.intmaxSize()voidremove(C item)CremoveLast()-
Methods inherited from class org.processmining.specpp.base.impls.AbstractComposition
accept, getLastAcceptedCandidate, iterator, setLastAcceptedCandidate, size, toList, toSet, toString
-
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, 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.traits.IsSizeLimited
size
-
Methods inherited from interface org.processmining.specpp.datastructures.util.SequentialCollection
size, toList, toSet
-
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
-
ABSOLUTE_SIZE_LIMIT
public static final int ABSOLUTE_SIZE_LIMIT
- See Also:
- Constant Field Values
-
-
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
-
maxSize
public int maxSize()
- Specified by:
maxSizein interfaceIsSizeLimited
-
hasCapacityLeft
public boolean hasCapacityLeft()
- Specified by:
hasCapacityLeftin interfaceSequentialCollection<C extends Candidate>
-
remove
public void remove(C item)
- Specified by:
removein interfaceMutableSequentialCollection<C extends Candidate>
-
removeLast
public C removeLast()
- Specified by:
removeLastin interfaceMutableSequentialCollection<C extends Candidate>
-
-