public abstract class Module extends java.lang.Object implements ModuleInterface
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
dataobject |
protected boolean |
isTerminated |
protected static java.util.logging.Logger |
Log |
protected SEHRDataObject |
sdo |
protected SEHRDataSource |
sehrds |
Constructor and Description |
---|
Module() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.lang.Object obj,
SEHRDataSource ds)
Abstract method to initialize a handler for a given object.
|
void |
run()
Abstract method to process/run the module To be overwritten by the
module handler to process data
|
void |
terminate()
Abstract method to terminate the module May be overwritten by the final
module handler
|
protected java.lang.Object dataobject
protected SEHRDataObject sdo
protected SEHRDataSource sehrds
protected static final java.util.logging.Logger Log
protected boolean isTerminated
public void initialize(java.lang.Object obj, SEHRDataSource ds)
May be overriden by final module object
initialize
in interface ModuleInterface
obj
- ds
- public void run() throws SEHRModuleException
To be overwritten by the module handler to process data
run
in interface ModuleInterface
SEHRModuleException
public void terminate()
May be overwritten by the final module handler
terminate
in interface ModuleInterface