quoggles.deprecated
Class RecursiveGetGraphElements_Box

java.lang.Object
  |
  +--quoggles.boxes.Box
        |
        +--quoggles.deprecated.RecursiveGetGraphElements_Box
All Implemented Interfaces:
IBox

Deprecated. use a combination of Flatten_Box and GetGraphElements_Box

public class RecursiveGetGraphElements_Box
extends Box

From the input this box filters all graph elements, only nodes or only edges according to the parameter. The box searches all collections at any position in the input.


Field Summary
private  java.util.Collection inputCol
          Deprecated.  
 
Fields inherited from class quoggles.boxes.Box
boxExecuted, iBoxGRep, inputs, outputs, parameters
 
Constructor Summary
RecursiveGetGraphElements_Box()
          Deprecated. Construct box.
 
Method Summary
private  void digForEdges(java.util.Collection digInCol, java.util.Collection resCol)
          Deprecated.  
private  void digForGraphElements(java.util.Collection digInCol, java.util.Collection resCol)
          Deprecated.  
private  void digForNodes(java.util.Collection digInCol, java.util.Collection resCol)
          Deprecated.  
 void execute()
          Deprecated. Searches in the input for graph elements (according to the value of the parameter).
 IBoxRepresentation getGraphicalRepresentation()
          Deprecated. This implementation returns a new instance of DefaultBoxRepresentation.
 int[] getInputTypes()
          Deprecated. This implementation returns ONE element, the most general type.
 int[] getOutputTypes()
          Deprecated. According to parameter.
 void setInputs(java.lang.Object[] inputs)
          Deprecated. Checks if the number of inputs is correct and sets the inputs.
 
Methods inherited from class quoggles.boxes.Box
areAllInputsNull, getClassName, getId, getNode, getNumberOfInputs, getNumberOfOutputs, getOutputAt, getOutputs, getParameters, hasBeenExecuted, ignoreBox, isGraphicalRepNull, isInputSet, isInputSetAt, needsQueryRunner, removeNullValues, reset, reset, setBoxNumber, setCurrentNodesTodo, setCurrentResult, setDefaultParameters, setIgnoreBox, setInputAt, setNode, setParameters, setQueryRunner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputCol

private java.util.Collection inputCol
Deprecated. 
Constructor Detail

RecursiveGetGraphElements_Box

public RecursiveGetGraphElements_Box()
Deprecated. 
Construct box.

Method Detail

getInputTypes

public int[] getInputTypes()
Deprecated. 
Description copied from class: Box
This implementation returns ONE element, the most general type. Override this method to specify more restricted types for the input(s) of the box. The size of the returned array must be consistent with the return value of getNumberOfInputs.

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

getOutputTypes

public int[] getOutputTypes()
Deprecated. 
According to parameter.

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

setInputs

public void setInputs(java.lang.Object[] inputs)
               throws InvalidInputException
Deprecated. 
Description copied from class: Box
Checks if the number of inputs is correct and sets the inputs. Subclasses probably will want to override this method to avoid many casts necessary when working with the input array. They should however first call this method (via super.setInputs(inputs)) so that consistency checks are done and some flags are correctly set.

Specified by:
setInputs in interface IBox
Overrides:
setInputs in class Box
InvalidInputException
See Also:
IBox.setInputs(java.lang.Object[])

getGraphicalRepresentation

public IBoxRepresentation getGraphicalRepresentation()
Deprecated. 
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:
quoggles.boxes.IGraphicalBox#getGraphicalRepresentation()

digForGraphElements

private void digForGraphElements(java.util.Collection digInCol,
                                 java.util.Collection resCol)
Deprecated. 

digForNodes

private void digForNodes(java.util.Collection digInCol,
                         java.util.Collection resCol)
Deprecated. 

digForEdges

private void digForEdges(java.util.Collection digInCol,
                         java.util.Collection resCol)
Deprecated. 

execute

public void execute()
             throws QueryExecutionException
Deprecated. 
Searches in the input for graph elements (according to the value of the parameter). The search is "recursive" in that collections within collections are searched, too.

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