jjil.core
Class Ladder

java.lang.Object
  extended by jjil.core.PipelineStage
      extended by jjil.core.Ladder

public class Ladder
extends PipelineStage

Ladder manages two pipelines. An image is passed to both. The output of each pipeline is passed to a merge function.

Author:
webb

Nested Class Summary
static interface Ladder.Join
          The Join interface defines a function which combines two images into one.
 
Constructor Summary
Ladder(PipelineStage pipeFirst, PipelineStage pipeSecond, Ladder.Join join)
          Creates a new instance of Ladder
 
Method Summary
 void push(Image image)
          Pass the input image to both pipeines, then combine the two outputs into one using the join operation
 
Methods inherited from class jjil.core.PipelineStage
getFront, isEmpty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ladder

public Ladder(PipelineStage pipeFirst,
              PipelineStage pipeSecond,
              Ladder.Join join)
Creates a new instance of Ladder

Parameters:
pipeFirst - First pipeline
pipeSecond - Second pipeline
join - Join class, which combines the two output images into one.
Method Detail

push

public void push(Image image)
          throws Error
Pass the input image to both pipeines, then combine the two outputs into one using the join operation

Specified by:
push in class PipelineStage
Parameters:
image - Input image
Throws:
Error - if either pipeline does not produce an output after being supplied with the input.