|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.IODescription
public class IODescription
This class is a description of the (expected) input and (guaranteed) output
classes of operators. It provides easy default implementations.
| Field Summary | |
|---|---|
static int |
DELETE_UNUSED_INPUT
|
private java.lang.Class<?>[] |
inputClasses
|
private int |
outputBehaviour
|
private java.lang.Class<?>[] |
outputClasses
|
static int |
PASS_UNUSED_INPUT_TO_OUTPUT
|
| Constructor Summary | |
|---|---|
IODescription(java.lang.Class[] input,
java.lang.Class[] output)
Assumes PASS_UNUSED_INPUT_TO_OUTPUT. |
|
IODescription(java.lang.Class[] input,
java.lang.Class[] output,
int outputBehaviour)
Constructs a new IODescription where all input and output classes are expected exactly once. |
|
| Method Summary | |
|---|---|
static boolean |
containsClass(java.lang.Class<?> c,
java.lang.Class<?>[] oc)
Returns true if oc contains a class which is a superclass of c. |
java.lang.Class[] |
getInputClasses()
Returns the classes that are expected as input. |
java.lang.Class[] |
getOutputClasses(java.lang.Class<?>[] input,
Operator operator)
Returns the output classes dependent on the outputBehaviour PASS_UNUSED_INPUT_TO_OUTPUT:output classes are the classes used in the constructor plus those classes in input[] that were not consumed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PASS_UNUSED_INPUT_TO_OUTPUT
public static final int DELETE_UNUSED_INPUT
private java.lang.Class<?>[] inputClasses
private java.lang.Class<?>[] outputClasses
private int outputBehaviour
| Constructor Detail |
|---|
public IODescription(java.lang.Class[] input,
java.lang.Class[] output,
int outputBehaviour)
public IODescription(java.lang.Class[] input,
java.lang.Class[] output)
| Method Detail |
|---|
public java.lang.Class[] getInputClasses()
public java.lang.Class[] getOutputClasses(java.lang.Class<?>[] input,
Operator operator)
throws IllegalInputException
IllegalInputException
public static boolean containsClass(java.lang.Class<?> c,
java.lang.Class<?>[] oc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||