|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModule
this is the interface which every module (may it be global or local composite) MUST fulfill!!
IMediator
,
Mediators
,
Modules
,
ModuleRunError
,
ModuleClearError
,
ModuleInitError
Method Summary | |
---|---|
void |
clear()
|
java.lang.Object |
getInput()
returns the input of the module |
java.lang.Object |
getOutput()
returns the output of the module which has been computed through the use of run() |
void |
init(java.lang.String[] initArgs)
init() initializes the module, specifying an array of init arguments which the module has to interpret |
java.lang.Object |
run(java.lang.Object input)
run(_) MUST realize the computation of the module; this unary method must be distinguished from the nullary method run() in the Runnable interface; note that run(_) is NOT forced to set its input nor its output field and should usually avoid this!! |
java.lang.Object |
setInput(java.lang.Object input)
sets the input of the module to parameter input and returns input |
java.lang.Object |
setOutput(java.lang.Object output)
sets the output of the module to parameter output and returns output |
Method Detail |
---|
void clear() throws ModuleClearError
ModuleClearError
void init(java.lang.String[] initArgs) throws ModuleInitError
ModuleInitError
java.lang.Object run(java.lang.Object input) throws ModuleRunError
ModuleRunError
java.lang.Object setInput(java.lang.Object input)
java.lang.Object getInput()
java.lang.Object setOutput(java.lang.Object output)
java.lang.Object getOutput()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |