|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jiac.micro.internal.core.AbstractContainer
de.jiac.micro.internal.core.AbstractAgent
public abstract class AbstractAgent
| Nested Class Summary | |
|---|---|
protected static class |
AbstractAgent.ElementContext
|
| Field Summary | |
|---|---|
protected List |
installedElements
|
protected Hashtable |
properties
|
| Fields inherited from class de.jiac.micro.internal.core.AbstractContainer |
|---|
handles |
| Constructor Summary | |
|---|---|
AbstractAgent()
|
|
| Method Summary | |
|---|---|
void |
addAgentElement(IAgentElement agentElement)
|
void |
cleanup()
This method is invoked once immediately before the current instance is disposed. |
protected void |
cleanupElement(AbstractAgent.ElementContext context)
|
Object |
getProperty(String key)
Obtains an agent property associated with the specified key. |
protected abstract IShortTermMemory |
getShortTermMemory()
|
void |
initialise()
This method is invoked after the current instance is fully configured. |
protected void |
initialiseElement(AbstractAgent.ElementContext context)
|
void |
setProperty(String key,
Object value)
Associates a property key with the specified value. |
void |
start()
Start routines like thread or schedulable activation should be done in this method. |
protected void |
startElement(AbstractAgent.ElementContext context)
|
void |
stop()
Implementations should ensure that all threads and schedulables of the current instance are stopped when this method returns. |
protected void |
stopElement(AbstractAgent.ElementContext context)
|
| Methods inherited from class de.jiac.micro.internal.core.AbstractContainer |
|---|
addHandle, getClassLoader, getDisplayName, getHandle, getLogger, getLogger, removeHandle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.jiac.micro.core.IContainer |
|---|
addHandle, getClassLoader, getHandle, getLogger, getLogger, removeHandle |
| Field Detail |
|---|
protected List installedElements
protected Hashtable properties
| Constructor Detail |
|---|
public AbstractAgent()
| Method Detail |
|---|
public final Object getProperty(String key)
IAgent
getProperty in interface IAgentkey - the key for the property (= property name)
null if not set
public final void setProperty(String key,
Object value)
IAgent
If value is null then this method just removes the property.
setProperty in interface IAgentkey - the key for the property (= property name)value - the value for the property or null if the property
should be removedpublic void initialise()
ILifecycleAwareIf the current instance is also a handle provider, the handle must be available after this method completes!
initialise in interface ILifecycleAwareinitialise in class AbstractContainerpublic void start()
ILifecycleAware
start in interface ILifecycleAwarestart in class AbstractContainerpublic void stop()
ILifecycleAware
stop in interface ILifecycleAwarestop in class AbstractContainerpublic void cleanup()
ILifecycleAwareILifecycleAware.initialise() is released!
cleanup in interface ILifecycleAwarecleanup in class AbstractContainerpublic void addAgentElement(IAgentElement agentElement)
protected void initialiseElement(AbstractAgent.ElementContext context)
protected void startElement(AbstractAgent.ElementContext context)
protected void stopElement(AbstractAgent.ElementContext context)
protected void cleanupElement(AbstractAgent.ElementContext context)
protected abstract IShortTermMemory getShortTermMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||