Package net.simplace.pipe.control
Class FWPipeLine
java.lang.Object
java.lang.Thread
net.simplace.pipe.control.FWPipeLine
- All Implemented Interfaces:
Runnable
Represents a pipeline of processors.
- Author:
- Andreas Enders
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionFWPipeLine
(org.jdom2.Element aPipelineElement, FWPipeLinesContainer aContainer) Constructs a pipeline from a JDOM-Element. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the Pipelineint
Called after Thread has finished.void
prepare
(FWObservable aObservable, int aNumberOfSteps) called to prepare Pipeline Thread for running.void
run()
void
setAllreadyLoopedCount
(int allreadyLoopedCount) Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
FWPipeLine
public FWPipeLine(org.jdom2.Element aPipelineElement, FWPipeLinesContainer aContainer) throws PipeLineCreationException Constructs a pipeline from a JDOM-Element.- Parameters:
aPipelineElement
-aContainer
-- Throws:
PipeLineCreationException
-
-
Method Details
-
clone
Clones the Pipeline -
prepare
called to prepare Pipeline Thread for running.- Parameters:
aObservable
-aNumberOfSteps
-
-
getResult
Called after Thread has finished.- Returns:
- FWObservable
-
run
public void run() -
getProcessors
- Returns:
- the processors list
-
getAllreadyLoopedCount
public int getAllreadyLoopedCount()- Returns:
- the iAllreadyLoopedCount
-
setAllreadyLoopedCount
public void setAllreadyLoopedCount(int allreadyLoopedCount) - Parameters:
allreadyLoopedCount
- the iAllreadyLoopedCount to set
-