|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.core.PipelineStage
jjil.core.Sequence
public class Sequence
Sequence is used to construct a sequence of image processing pipeline stages. Each Sequence object contains a PipelineStage, which can be null, and a Sequence object, which can also be null. The PipelineStage is the head of the list of PipelineStage's starting here, and the Sequence object is the rest of the list. The Sequence object can be non-null only if the PipelineStage object is non-null.
Hungarian prefix is 'seq'.
Constructor Summary | |
---|---|
Sequence()
Creates a new instance of Sequence with no pipeline. |
|
Sequence(PipelineStage p)
Creates a new instance of Sequence with a single PipelineStage. |
Method Summary | |
---|---|
void |
add(PipelineStage p)
add an additional PipelineStage at the end of the current Sequence. |
Image |
getFront()
Returns the Image produced by the last stage in the pipeline. |
boolean |
isEmpty()
Returns true iff the pipeline has no image available |
void |
push(Image i)
Process an image by the pipeline. |
java.lang.String |
toString()
Return a string describing the pipeline in fully parenthesized list notation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sequence()
public Sequence(PipelineStage p)
p
- the PipelineStage.Method Detail |
---|
public void add(PipelineStage p)
p
- the PipelineStage to be added.public boolean isEmpty()
isEmpty
in class PipelineStage
public Image getFront() throws Error
getFront
in class PipelineStage
Error
- if no image is available.public void push(Image i) throws Error
push
in class PipelineStage
i
- the image to be pushed.
Error
- if the pipeline is empty.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |