|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--quoggles.boxes.Box
|
+--quoggles.stdboxes.output.BoolPredicateEnd_Box
Input: anything
( Output: see quoggles.auxiliary.Util.interpretAsBoolean(Object) )
| Field Summary | |
private java.util.Set |
complexFilterBoxes
A set of ComplexFilter_Boxes that are notified when this
box calculates a true value. |
private org.graffiti.plugin.parameter.IntegerParameter |
outPosParam
|
| Fields inherited from class quoggles.boxes.Box |
boxExecuted, iBoxGRep, inputs, outputs, parameters |
| Constructor Summary | |
BoolPredicateEnd_Box()
Constructs the box. |
|
| Method Summary | |
void |
clearRegistered()
Clears the list of registered ComplexFilter_Boxes. |
void |
execute()
Evaluates the input to a boolean value. |
IBoxRepresentation |
getGraphicalRepresentation()
This implementation returns a new instance of DefaultBoxRepresentation.
|
int |
getNumberOfOutputs()
Returns 0. |
java.lang.Object |
getOutputAt(int index)
Needed to be overwritten since the default implementation would fail since this box has no (publicly visible) outputs. |
int[] |
getOutputTypes()
Returns empty array. |
void |
registerComplexFilter(ComplexFilter_Box box)
Registers a ComplexFilter_Box that will be informed when this box
calculates a true value. |
void |
removeRegistered(ComplexFilter_Box cfb)
Removes the given box from the set of registered ComplexFilter_Boxes. |
void |
setParameters(org.graffiti.plugin.parameter.Parameter[] pars,
boolean fromRep)
Sets the parameters and - if needed - sets them in the graphical representation. |
| Methods inherited from class quoggles.boxes.Box |
areAllInputsNull, getClassName, getId, getInputTypes, getNode, getNumberOfInputs, getOutputs, 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 |
| Field Detail |
private org.graffiti.plugin.parameter.IntegerParameter outPosParam
private java.util.Set complexFilterBoxes
ComplexFilter_Boxes that are notified when this
box calculates a true value.
| Constructor Detail |
public BoolPredicateEnd_Box()
| Method Detail |
public void registerComplexFilter(ComplexFilter_Box box)
ComplexFilter_Box that will be informed when this box
calculates a true value.
box - the box to be registered
public void execute()
throws QueryExecutionException
execute in interface IBoxexecute in class BoxQueryExecutionExceptionUtil.interpretAsBoolean(Object),
IBox.execute()public IBoxRepresentation getGraphicalRepresentation()
BoxDefaultBoxRepresentation.
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;
getGraphicalRepresentation in interface IBoxgetGraphicalRepresentation in class BoxIBox.getGraphicalRepresentation()
public void setParameters(org.graffiti.plugin.parameter.Parameter[] pars,
boolean fromRep)
Boxparameters.
setParameters in interface IBoxsetParameters in class BoxIBox.setParameters(org.graffiti.plugin.parameter.Parameter[], boolean)public int getNumberOfOutputs()
getNumberOfOutputs in interface IBoxgetNumberOfOutputs in class BoxIBox.getNumberOfOutputs()public int[] getOutputTypes()
getOutputTypes in interface IBoxgetOutputTypes in class BoxIBox.getOutputTypes()
public java.lang.Object getOutputAt(int index)
throws BoxNotExecutedException
getOutputAt in interface IBoxgetOutputAt in class Boxindex - the index of the required output (must be zero)
BoxNotExecutedExceptionIBox.getOutputAt(int)public void removeRegistered(ComplexFilter_Box cfb)
ComplexFilter_Boxes.
cfb - the box that will be removedpublic void clearRegistered()
ComplexFilter_Boxes.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||