Class DelegatingObservationPipe<O extends Observation,C extends Observation>
- java.lang.Object
-
- org.processmining.specpp.componenting.delegators.AbstractDelegator<ObservationPipe<O,C>>
-
- org.processmining.specpp.componenting.delegators.DelegatingObservationPipe<O,C>
-
- All Implemented Interfaces:
java.util.function.Consumer<O>,Container<ObservationPipe<O,C>>,Delegator<ObservationPipe<O,C>>,Observable<C>,ObservationPipe<O,C>,Observer<O>
public class DelegatingObservationPipe<O extends Observation,C extends Observation> extends AbstractDelegator<ObservationPipe<O,C>> implements ObservationPipe<O,C>
-
-
Field Summary
-
Fields inherited from class org.processmining.specpp.componenting.delegators.AbstractDelegator
delegate
-
-
Constructor Summary
Constructors Constructor Description DelegatingObservationPipe()DelegatingObservationPipe(ObservationPipe<O,C> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddObserver(Observer<C> observer)voidclearObservers()java.util.Collection<Observer<C>>getObservers()voidobserve(O observation)voidpublish(C observation)voidremoveObserver(Observer<C> observer)-
Methods inherited from class org.processmining.specpp.componenting.delegators.AbstractDelegator
equals, getDelegate, hashCode, isSet, setDelegate, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.componenting.delegators.Container
isNonEmpty
-
Methods inherited from interface org.processmining.specpp.componenting.delegators.Delegator
addContent, isEmpty, isFull
-
Methods inherited from interface org.processmining.specpp.supervision.piping.Observable
beObservedBy
-
-
-
-
Constructor Detail
-
DelegatingObservationPipe
public DelegatingObservationPipe()
-
DelegatingObservationPipe
public DelegatingObservationPipe(ObservationPipe<O,C> delegate)
-
-
Method Detail
-
addObserver
public void addObserver(Observer<C> observer)
- Specified by:
addObserverin interfaceObservable<O extends Observation>
-
getObservers
public java.util.Collection<Observer<C>> getObservers()
- Specified by:
getObserversin interfaceObservable<O extends Observation>
-
removeObserver
public void removeObserver(Observer<C> observer)
- Specified by:
removeObserverin interfaceObservable<O extends Observation>
-
clearObservers
public void clearObservers()
- Specified by:
clearObserversin interfaceObservable<O extends Observation>
-
publish
public void publish(C observation)
- Specified by:
publishin interfaceObservable<O extends Observation>
-
observe
public void observe(O observation)
- Specified by:
observein interfaceObserver<O extends Observation>
-
-