Class ConstrainingPlaceCollection
- java.lang.Object
-
- org.processmining.specpp.componenting.system.link.AbstractBaseClass
-
- org.processmining.specpp.composition.ConstrainingPlaceCollection
-
- All Implemented Interfaces:
java.lang.Iterable<Place>,java.util.function.Consumer<Place>,AdvancedComposition<Place>,Composition<Place>,Constrainer<CandidateConstraint<Place>>,Evaluable,IntermediateResult,MutableCappedComposition<Place>,Result,FullComponentSystemUser,CompositionComponent<Place>,HasComponentCollection,IsGlobalProvider,UsesGlobalComponentSystem,UsesLocalComponentSystem,MutableSequentialCollection<Place>,SequentialCollection<Place>,ExposesObservable<CandidateConstraint<Place>>,Initializable,IsSizeLimited
public class ConstrainingPlaceCollection extends AbstractBaseClass implements AdvancedComposition<Place>, Constrainer<CandidateConstraint<Place>>
-
-
Constructor Summary
Constructors Constructor Description ConstrainingPlaceCollection(AdvancedComposition<Place> composition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Place place)Observable<CandidateConstraint<Place>>getConstraintPublisher()java.lang.Class<CandidateConstraint<Place>>getPublishedConstraintClass()booleanhasCapacityLeft()protected voidinitSelf()Hook for subclasses to initialize themselves after the initial constructor call.java.util.Iterator<Place>iterator()intmaxSize()voidremove(Place candidate)PlaceremoveLast()intsize()java.util.List<Place>toList()java.util.Set<Place>toSet()-
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.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
-
-
-
-
Constructor Detail
-
ConstrainingPlaceCollection
public ConstrainingPlaceCollection(AdvancedComposition<Place> composition)
-
-
Method Detail
-
accept
public void accept(Place place)
- Specified by:
acceptin interfacejava.util.function.Consumer<Place>
-
remove
public void remove(Place candidate)
- Specified by:
removein interfaceMutableSequentialCollection<Place>
-
removeLast
public Place removeLast()
- Specified by:
removeLastin interfaceMutableSequentialCollection<Place>
-
getConstraintPublisher
public Observable<CandidateConstraint<Place>> getConstraintPublisher()
- Specified by:
getConstraintPublisherin interfaceConstrainer<CandidateConstraint<Place>>
-
getPublishedConstraintClass
public java.lang.Class<CandidateConstraint<Place>> getPublishedConstraintClass()
- Specified by:
getPublishedConstraintClassin interfaceConstrainer<CandidateConstraint<Place>>
-
iterator
public java.util.Iterator<Place> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Place>
-
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
-
size
public int size()
- Specified by:
sizein interfaceIsSizeLimited- Specified by:
sizein interfaceSequentialCollection<Place>
-
maxSize
public int maxSize()
- Specified by:
maxSizein interfaceIsSizeLimited
-
hasCapacityLeft
public boolean hasCapacityLeft()
- Specified by:
hasCapacityLeftin interfaceSequentialCollection<Place>
-
toSet
public java.util.Set<Place> toSet()
- Specified by:
toSetin interfaceSequentialCollection<Place>
-
toList
public java.util.List<Place> toList()
- Specified by:
toListin interfaceSequentialCollection<Place>
-
-