Class FWPipeLinesContainer
java.lang.Object
net.simplace.pipe.control.FWPipeLinesContainer
Holds the pipelines of a functionality (the
pipeline elements below pipelines), the
initial parameters and the listeners for progress task events.- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionFWPipeLinesContainer(org.jdom2.Element aFunctionalityElement, net.simplace.core.FWObservable aObservable, String aSystemID) Constructs a pipeline container and creates all pipelines. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfireTaskEvent(FWProgressTaskEvent aProcessTaskEvent) Notifies the registered listeners, last to first.getClonedContainer(net.simplace.core.FWObservable aObservable) Creates a container with other initial parameters that shares pipelines, log files and listeners with this one.net.simplace.core.FWObservablegetPipeLine(String aPipeLineID) voidregisterTaskListener(FWProgressTaskListener aFWProgressTaskListener) Adds a listener for progress task events.voidremoveTaskListener(FWProgressTaskListener aFWProgressTaskListener) Removes a listener for progress task events.
-
Constructor Details
-
FWPipeLinesContainer
public FWPipeLinesContainer(org.jdom2.Element aFunctionalityElement, net.simplace.core.FWObservable aObservable, String aSystemID) throws PipeLineCreationException Constructs a pipeline container and creates all pipelines.- Parameters:
aFunctionalityElement- element containing thepipelineselementaObservable- initial parametersaSystemID- not used (the system id is taken fromaObservable)- Throws:
PipeLineCreationException- if a pipeline cannot be created
-
-
Method Details
-
getClonedContainer
public FWPipeLinesContainer getClonedContainer(net.simplace.core.FWObservable aObservable) throws PipeLineCreationException Creates a container with other initial parameters that shares pipelines, log files and listeners with this one.- Parameters:
aObservable- initial parameters of the new container- Returns:
- the new container
- Throws:
PipeLineCreationException- declared, not thrown
-
registerTaskListener
Adds a listener for progress task events.- Parameters:
aFWProgressTaskListener- the listener
-
removeTaskListener
Removes a listener for progress task events.- Parameters:
aFWProgressTaskListener- the listener
-
fireTaskEvent
Notifies the registered listeners, last to first.- Parameters:
aProcessTaskEvent- the event
-
getPipeLine
- Parameters:
aPipeLineID- id of the pipeline- Returns:
- a clone of the pipeline (see
FWPipeLine.clone()), ornullif the id isnullor unknown (warning logged)
-
getObservable
public net.simplace.core.FWObservable getObservable()- Returns:
- the initial observable
-
getSystemID
- Returns:
- the system id of the initial parameters
-