quoggles.stdboxes.output
Class NormalOutput_Box

java.lang.Object
  |
  +--quoggles.boxes.Box
        |
        +--quoggles.stdboxes.output.NormalOutput_Box
All Implemented Interfaces:
IBox, IOutputBox

public class NormalOutput_Box
extends Box
implements IOutputBox

Input: anything ( Output: same as input )


Field Summary
private  int lastRowNr
          Save last row assignment before a change in the parameter
 
Fields inherited from class quoggles.boxes.Box
boxExecuted, iBoxGRep, inputs, outputs, parameters
 
Constructor Summary
NormalOutput_Box()
          Constructs the box.
 
Method Summary
 void execute()
          Executes the box, i.e. calculates the output from the input.
protected  java.lang.String getClassName()
          Used by getId() to retrieve the class name of the box.
 IBoxRepresentation getGraphicalRepresentation()
          If your subclass has any parameters, you will probably have to design your own representation and implement this method for example as follows: if (iBoxGRep == null || !
protected  int getLastRowNumber()
          Returns the last row number that this box was assigned to.
 void setLastRowNumber(int lr)
          Sets the last row number that this box was assigned to.
 void setParameters(org.graffiti.plugin.parameter.Parameter[] pars, boolean fromRep)
          Sets the parameters of this box.
 
Methods inherited from class quoggles.boxes.Box
areAllInputsNull, getId, getInputTypes, getNode, getNumberOfInputs, getNumberOfOutputs, getOutputAt, getOutputs, getOutputTypes, getParameters, hasBeenExecuted, ignoreBox, isGraphicalRepNull, isInputSet, isInputSetAt, needsQueryRunner, removeNullValues, reset, reset, setBoxNumber, setCurrentNodesTodo, setCurrentResult, setDefaultParameters, setIgnoreBox, setInputAt, setInputs, setNode, setQueryRunner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface quoggles.boxes.IBox
getId, getInputTypes, getNode, getNumberOfInputs, getNumberOfOutputs, getOutputAt, getOutputs, getOutputTypes, getParameters, hasBeenExecuted, ignoreBox, isInputSet, isInputSetAt, needsQueryRunner, reset, reset, setBoxNumber, setCurrentNodesTodo, setCurrentResult, setDefaultParameters, setIgnoreBox, setInputAt, setInputs, setNode, setQueryRunner
 

Field Detail

lastRowNr

private int lastRowNr
Save last row assignment before a change in the parameter

Constructor Detail

NormalOutput_Box

public NormalOutput_Box()
Constructs the box.

Method Detail

setLastRowNumber

public void setLastRowNumber(int lr)
Sets the last row number that this box was assigned to.


setParameters

public void setParameters(org.graffiti.plugin.parameter.Parameter[] pars,
                          boolean fromRep)
Description copied from interface: IBox
Sets the parameters of this box. This method should (the implementation of Box does it) call setParameters on the representation of this box. To avoid updating several times, this is not done when the given flag fromRep is true since then the call has originated from the representation.

Specified by:
setParameters in interface IBox
Overrides:
setParameters in class Box
Parameters:
pars - the parameters to be set
fromRep - true if called from the box's representation
See Also:
IBox.setParameters(org.graffiti.plugin.parameter.Parameter[], boolean)

getLastRowNumber

protected int getLastRowNumber()
Returns the last row number that this box was assigned to.

Returns:
the last row number that this box was assigned to

getGraphicalRepresentation

public IBoxRepresentation getGraphicalRepresentation()
Description copied from interface: IBox
If your subclass has any parameters, you will probably have to design your own representation and implement 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
Returns:
the graphical representation of this box
See Also:
IBox.getGraphicalRepresentation()

getClassName

protected java.lang.String getClassName()
Description copied from class: Box
Used by getId() to retrieve the class name of the box.

Overrides:
getClassName in class Box
Returns:
a string that is used as class name of the box
See Also:
Box.getClassName()

execute

public void execute()
             throws QueryExecutionException
Description copied from interface: IBox
Executes the box, i.e. calculates the output from the input. Should be overridden and called first by subclasses.

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