quoggles.stdboxes.connectors
Class TwoSplitConnector_Box

java.lang.Object
  |
  +--quoggles.boxes.Box
        |
        +--quoggles.stdboxes.connectors.TwoSplitConnector_Box
All Implemented Interfaces:
IBox

public class TwoSplitConnector_Box
extends Box

Input: anything

Output: two times the input (unchanged)


Field Summary
 
Fields inherited from class quoggles.boxes.Box
boxExecuted, iBoxGRep, inputs, outputs, parameters
 
Constructor Summary
TwoSplitConnector_Box()
           
 
Method Summary
 void execute()
          "Duplicates" the input.
 IBoxRepresentation getGraphicalRepresentation()
          This implementation returns a new instance of DefaultBoxRepresentation.
 int getNumberOfOutputs()
          Returns 2.
 int[] getOutputTypes()
          "Duplicates" the input type.
 
Methods inherited from class quoggles.boxes.Box
areAllInputsNull, getClassName, getId, getInputTypes, getNode, getNumberOfInputs, getOutputAt, getOutputs, getParameters, hasBeenExecuted, ignoreBox, isGraphicalRepNull, isInputSet, isInputSetAt, needsQueryRunner, removeNullValues, reset, reset, setBoxNumber, setCurrentNodesTodo, setCurrentResult, setDefaultParameters, setIgnoreBox, setInputAt, setInputs, setNode, setParameters, setQueryRunner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoSplitConnector_Box

public TwoSplitConnector_Box()
Method Detail

getGraphicalRepresentation

public IBoxRepresentation getGraphicalRepresentation()
Description copied from class: Box
This implementation returns a new instance of DefaultBoxRepresentation. If your subclass has any parameters, you will probably have to design your own representation and override this method for example as follows: if (iBoxGRep == null || !(iBoxGRep instanceof MYOWNBOX_Rep)) { iBoxGRep = new MYOWNBOX_Rep(this); } return iBoxGRep;

Specified by:
getGraphicalRepresentation in interface IBox
Overrides:
getGraphicalRepresentation in class Box
See Also:
IBox.getGraphicalRepresentation()

execute

public void execute()
             throws QueryExecutionException
"Duplicates" the input.

Specified by:
execute in interface IBox
Overrides:
execute in class Box
QueryExecutionException
See Also:
IBox.execute()

getOutputTypes

public int[] getOutputTypes()
"Duplicates" the input type.

Specified by:
getOutputTypes in interface IBox
Overrides:
getOutputTypes in class Box
See Also:
IBox.getOutputTypes()

getNumberOfOutputs

public int getNumberOfOutputs()
Returns 2.

Specified by:
getNumberOfOutputs in interface IBox
Overrides:
getNumberOfOutputs in class Box
See Also:
quoggles.boxes.IBox#hasSeveralOutputs()