|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Driver
fr.dyade.aaa.agent.AgentDriver
Field Summary | |
protected Queue |
mq
queue of Notification objects to be sent |
protected AgentId |
proxy
id of associated proxy agent |
Fields inherited from class fr.dyade.aaa.agent.Driver |
canStop, drivers, id, isRunning, logmon, name, thread |
Constructor Summary | |
protected |
AgentDriver(int id,
Agent proxy,
Queue mq)
Constructor. |
Method Summary | |
void |
close()
|
protected void |
end()
Finalizes the driver. |
protected abstract void |
react(Notification m)
Reacts to notifications from proxy. |
void |
run()
Actually executes the driver code. |
java.lang.String |
toString()
Provides a string image for this object. |
Methods inherited from class fr.dyade.aaa.agent.Driver |
getName, sendTo, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AgentId proxy
protected Queue mq
Notification
objects to be sent
Constructor Detail |
protected AgentDriver(int id, Agent proxy, Queue mq)
proxy
- id of associated proxy agentmq
- queue of Notification
objects to be sentMethod Detail |
public java.lang.String toString()
toString
in class Driver
public void run()
Driver
Beware: this code is executed in a separate thread, outside from any
transaction. Notifications may be sent using function sendTo
,
and they will actually be sent as soon as the function is called; there is
no atomic treatment as there is in an agent reaction.
run
in class Driver
public void close()
close
in class Driver
protected abstract void react(Notification m) throws java.lang.Exception
java.lang.Exception
- unspecialized exceptionprotected void end()
DriverDone
notification.
end
in class Driver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |