com.veromodo.tempo.filters
Class BasicStage

java.lang.Object
  extended by com.veromodo.tempo.filters.BasicStage
All Implemented Interfaces:
Connectable, Stage, java.lang.Comparable<Stage>
Direct Known Subclasses:
OutputStage

public abstract class BasicStage
extends java.lang.Object
implements Stage

Basic (abstract) implementation of a Stage. Provides basic implementation for setInput, setOutput, getSemanticChecks.

Author:
L. Michel, Panayotis

Constructor Summary
BasicStage()
           
 
Method Summary
 int compareTo(Stage s)
          Stages are ordered according to the total ordering on their ranks.
 SemanticRules getSemanticChecks()
          By default, a stage has an empty set of semantic rules (no extra restrictions)
 java.util.Collection<java.lang.String> getUsage()
          By default, a stage has no extra usage information (no extra arguments).
 void send(StageData sd)
          Transfers control to the next stage
 void setInput(Connectable input)
          Modifier
 void setOutput(Connectable output)
          Modifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.veromodo.tempo.filters.Stage
getRank
 
Methods inherited from interface com.veromodo.tempo.filters.Connectable
transfer
 

Constructor Detail

BasicStage

public BasicStage()
Method Detail

setInput

public void setInput(Connectable input)
Modifier

Specified by:
setInput in interface Connectable
Parameters:
input - the stage that feeds this one.

setOutput

public void setOutput(Connectable output)
Modifier

Specified by:
setOutput in interface Connectable
Parameters:
output - the stage that will follow this one.

send

public void send(StageData sd)
Transfers control to the next stage

Parameters:
sd - the stage data to pass to thee next stage.

compareTo

public int compareTo(Stage s)
Stages are ordered according to the total ordering on their ranks.

Specified by:
compareTo in interface java.lang.Comparable<Stage>

getSemanticChecks

public SemanticRules getSemanticChecks()
By default, a stage has an empty set of semantic rules (no extra restrictions)

Specified by:
getSemanticChecks in interface Stage
Returns:
a set of semantic rules

getUsage

public java.util.Collection<java.lang.String> getUsage()
By default, a stage has no extra usage information (no extra arguments).

Specified by:
getUsage in interface Stage