|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.comp.common.AbstractComponent
AbstractComponent is the abstract ancestor of all the application's components. The default AbstractComponent has no run method and hence is purely reactive. Components that need a run() method must implement ActiveComponentIF to be executed by the ComponentRunner.
| Field Summary | |
protected ComponentClientFacade |
clients
The ClientFacade. |
protected ConfigurationReaderIF |
config
Interface for reading configuration data. |
protected ConsoleServiceProvider |
consoleService
The ConsoleServiceProvider. |
protected ExceptionProcessor |
exproc
The exception processor. |
protected Logger |
logger
The logger. |
protected java.lang.String |
prefixKey
The component's configuration prefix. |
protected ComponentRunner |
runner
The ComponenRunner that started the component |
protected ComponentServerFacade |
servers
The ServerFacade. |
| Constructor Summary | |
AbstractComponent()
|
|
| Method Summary | |
ComponentDescriptor |
getComponentDescriptor()
|
java.lang.String |
getComponentID()
Return the component's id. |
ComponentRunner |
getComponentRunner()
|
ConsoleServiceProvider |
getConsoleService()
|
ExceptionProcessor |
getExproc()
|
protected abstract int |
getInnerType()
|
Logger |
getLogger()
|
protected Logger |
getRealLogger()
|
void |
initialize(ConfigurationReaderIF config,
java.lang.String prefixKey,
java.lang.String id,
ComponentRunner runner)
Initializes the component. |
void |
overrideComponentID(java.lang.String newID,
boolean notifyComponentRunner)
|
protected abstract void |
performInitialisation()
Does the implementation-dependent initialisation. |
abstract void |
shutdown()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ConfigurationReaderIF config
protected java.lang.String prefixKey
protected ExceptionProcessor exproc
protected ComponentServerFacade servers
protected ComponentClientFacade clients
protected ConsoleServiceProvider consoleService
protected ComponentRunner runner
protected Logger logger
| Constructor Detail |
public AbstractComponent()
| Method Detail |
public void initialize(ConfigurationReaderIF config,
java.lang.String prefixKey,
java.lang.String id,
ComponentRunner runner)
throws MicropsiException
MicropsiException
protected abstract void performInitialisation()
throws MicropsiException
MicropsiExceptionpublic java.lang.String getComponentID()
public void overrideComponentID(java.lang.String newID,
boolean notifyComponentRunner)
public ConsoleServiceProvider getConsoleService()
public ExceptionProcessor getExproc()
public Logger getLogger()
protected Logger getRealLogger()
public ComponentDescriptor getComponentDescriptor()
public ComponentRunner getComponentRunner()
protected abstract int getInnerType()
public abstract void shutdown()
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||