|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jiac.micro.core.feature.AbstractSchedulable
de.jiac.micro.core.feature.AbstractPeriodicRunnable
de.jiac.micro.agent.AbstractActiveBehaviour
public abstract class AbstractActiveBehaviour
Describes an abstract active behaviour of an agent. It is scheduled and executed periodically, according to the specified period.
| Constructor Summary | |
|---|---|
protected |
AbstractActiveBehaviour()
|
| Method Summary | |
|---|---|
void |
cleanup()
This method is invoked once immediately before the current instance is disposed. |
void |
initialise()
This method is invoked after the current instance is fully configured. |
protected abstract void |
runShort()
|
void |
start()
Default implementation just enables the current behaviour. |
void |
stop()
Default implementation just disables the current behaviour. |
| Methods inherited from class de.jiac.micro.core.feature.AbstractPeriodicRunnable |
|---|
getPeriod, getStart, setPeriod, setStart |
| Methods inherited from class de.jiac.micro.core.feature.AbstractSchedulable |
|---|
disable, enable, getCost, getCostOverrunHandler, getDeadline, getDeadlineMissHandler, getPriority, isEnabled, setCost, setCostOverrunHandler, setDeadline, setDeadlineMissHandler, setPriority |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractActiveBehaviour()
| Method Detail |
|---|
public void cleanup()
ILifecycleAwareILifecycleAware.initialise() is released!
cleanup in interface ILifecycleAwarepublic void initialise()
ILifecycleAwareIf the current instance is also a handle provider, the handle must be available after this method completes!
initialise in interface ILifecycleAwarepublic void start()
enables the current behaviour.
start in interface ILifecycleAwarepublic void stop()
disables the current behaviour.
stop in interface ILifecycleAwareprotected abstract void runShort()
runShort in class AbstractPeriodicRunnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||