|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--quoggles.boxes.Box
|
+--quoggles.stdboxes.input.Input_Box
( Input: set by the system; depends on the name of the box )
Output: same as input
Input box without incoming edges. Those boxes are displayed to the left and they get their input by the system.
| Nested Class Summary | |
class |
Input_Box.InputBox_Rep
Graphical representation of an input box. |
class |
Input_Box.InputBoxRepresentation
Representation of an input box |
| Field Summary | |
private java.lang.String |
boxName
Name of the box; indicates the type of its input |
| Fields inherited from class quoggles.boxes.Box |
boxExecuted, iBoxGRep, inputs, outputs, parameters |
| Constructor Summary | |
Input_Box(java.lang.String text)
Construct the input box. |
|
| Method Summary | |
void |
execute()
Overridden to prevent InputNotSetException. |
java.lang.String |
getBoxName()
Returns the text string given to the constructor. |
IBoxRepresentation |
getGraphicalRepresentation()
This implementation returns a new instance of DefaultBoxRepresentation.
|
int[] |
getInputTypes()
This implementation returns ONE element, the most general type. |
int |
getNumberOfInputs()
Returns zero. |
java.lang.Object[] |
getOutputs()
Overridden to prevent InputNotSetException. |
void |
setInputBoxInput(java.lang.Object input)
Special set input method for InputBox. |
| Methods inherited from class quoggles.boxes.Box |
areAllInputsNull, getClassName, getId, getNode, getNumberOfOutputs, getOutputAt, getOutputTypes, 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 |
| Field Detail |
private java.lang.String boxName
| Constructor Detail |
public Input_Box(java.lang.String text)
text - name of the box specifying the type of the input| Method Detail |
public java.lang.String getBoxName()
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 int getNumberOfInputs()
getNumberOfInputs in interface IBoxgetNumberOfInputs in class BoxIBox.getNumberOfInputs()public void setInputBoxInput(java.lang.Object input)
InputBox. Using the standard
one would make the system throw an InvalidInputException
since an InputBox's getNumberOfInputs method returns 0.
input -
public void execute()
throws QueryExecutionException
InputNotSetException.
execute in interface IBoxexecute in class BoxQueryExecutionExceptionIBox.execute()
public java.lang.Object[] getOutputs()
throws BoxNotExecutedException
InputNotSetException.
getOutputs in interface IBoxgetOutputs in class BoxBoxNotExecutedExceptionIBox.getOutputs()public int[] getInputTypes()
BoxgetNumberOfInputs.
getInputTypes in interface IBoxgetInputTypes in class BoxIBox.getInputTypes()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||