|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.sdl.Modules
public abstract class Modules
the abstract superclass of all modules, implementing some default functionality which can be inherited by a concrete implementation; default implementation is given for o clear() o init() o getInput() o setInput() o getOutput() o setOutput() NO useful implementation is given for the unary method o run() only an UnsupportedOperationException is thrown
IMediator
,
Mediators
,
IModule
Constructor Summary | |
---|---|
protected |
Modules()
since Modules() is an abstract class, this constructor is only indirectly called from subclasses by using super(); effects (at the moment): the constructor clears input and output (null value) |
Method Summary | |
---|---|
void |
clear()
the default implementation of clear() assigns the null value to both input and output; the domain and range of this module is NOT changed; additional effects must be implemented by overriding clear() in subclasses of this class |
java.lang.Object |
getInput()
returns the input of this module |
java.lang.Object |
getOutput()
returns the result of the computation of this module |
void |
init(java.lang.String[] initArgs)
the default implementation of init() has no effect on the module; effects must be implemented by overriding init() in subclasses of this class (if this is needed) |
java.lang.Object |
run(java.lang.Object input)
this default method does NOT provide a useful implementation for run(); instead, an UnsupportedOperationException is thrown |
java.lang.Object |
setInput(java.lang.Object input)
sets the input of this module and returns the value |
java.lang.Object |
setOutput(java.lang.Object output)
sets the output of this module and returns the value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Modules()
Method Detail |
---|
public java.lang.Object run(java.lang.Object input) throws java.lang.UnsupportedOperationException
run
in interface IModule
java.lang.UnsupportedOperationException
public void clear()
clear
in interface IModule
public void init(java.lang.String[] initArgs)
init
in interface IModule
public java.lang.Object getInput()
getInput
in interface IModule
public java.lang.Object setInput(java.lang.Object input)
setInput
in interface IModule
public java.lang.Object getOutput()
getOutput
in interface IModule
public java.lang.Object setOutput(java.lang.Object output)
setOutput
in interface IModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |