|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operation
Interface for DES operations.
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Description of the operation. |
java.lang.String[] |
getDescriptionOfInputs()
User-readable and understandable description for each input argument. |
java.lang.String[] |
getDescriptionOfOutputs()
User-readable and understandable description for each output argument. |
java.lang.String |
getName()
Name of the operation. |
int |
getNumberOfInputs()
Number of inputs for the operation. |
int |
getNumberOfOutputs()
Number of outputs from the operation. |
java.lang.Class<?>[] |
getTypeOfInputs()
Class types of the inputs. |
java.lang.Class<?>[] |
getTypeOfOutputs()
Class types of the outputs. |
java.util.List<java.lang.String> |
getWarnings()
When an operation is performed, it may generate warnings. |
java.lang.Object[] |
perform(java.lang.Object[] inputs)
Perform the operation. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getDescription()
int getNumberOfInputs()
java.lang.Class<?>[] getTypeOfInputs()
Boolean,FSAModel are supplied, the first input
will be Boolean and all remaining inputs are assumed to be
of type FSAModel. This type extension is applied only when
the number of inputs is unbounded (i.e., when
getNumberOfInputs() returns -1).
Whenever possible, please use the general interfaces from the package
model.* (such as FSAModel) instead of specific
implementations.
getNumberOfInputs(),
getDescriptionOfInputs()java.lang.String[] getDescriptionOfInputs()
"String 1",
"String 2" are supplied, the first input will be described
to the user as "String 1" and all remaining inputs will be
described as "String 2". This type extension is applied only
when the number of inputs is unbounded (i.e., when
getNumberOfInputs() returns -1).
getNumberOfInputs()int getNumberOfOutputs()
"Macro" operations, which do not have a defined number of outputs should return -1.
java.lang.Class<?>[] getTypeOfOutputs()
Whenever possible, please use the general interfaces from the package
model.* (such as FSAModel) instead of specific
implementations.
"Macro" operations (where getNumberOfOutputs() returns -1) need
not specify the type of outputs.
getNumberOfOutputs(),
getDescriptionOfOutputs()java.lang.String[] getDescriptionOfOutputs()
"Macro" operations (where getNumberOfOutputs() returns -1) have
to provide descriptions for all outputs after the number of outputs is
known (e.g., after performing the operation).
getNumberOfOutputs()java.lang.Object[] perform(java.lang.Object[] inputs)
inputs - inputs to the operation (must conform to the types described
in getTypeOfInputs())
getTypeOfOutputs())java.util.List<java.lang.String> getWarnings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||