|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.input.dispatch_result
This class is used by the dispatch agents to record what happened when they dispatched their event. Whenever an agent successfully dispatches an event it creates a dispatch_result object and this is returned to the agents containing policy. In most cases, the policy simply hands the dispatch_result back to the manager as the return value of dispatching an event.
Field Summary | |
protected dispatch_agent |
_agent
This is the agent which dispatched the event. |
protected java.lang.Object |
_agent_data
This is the agent defined data associated with this dispatch. |
protected event |
_dispatched_event
This is the event that was dispatched. |
protected java.lang.reflect.Method |
_protocol_used
This is the protocol method by which dispatched to the interactor. |
protected java.lang.Object |
_recipient
This is the interactor to whom the input was sent. |
Constructor Summary | |
dispatch_result(event e,
dispatch_agent a,
java.lang.Object i,
java.lang.reflect.Method m)
Create a new dispatch_result with null agent data. |
|
dispatch_result(event e,
dispatch_agent a,
java.lang.Object i,
java.lang.reflect.Method m,
java.lang.Object ad)
Create a new dispatch_result. |
Method Summary | |
java.lang.Object |
agent_data()
Return the agent specific data for this dispatch. |
dispatch_agent |
agent()
Return the agent who handled the event. |
event |
dispatched_event()
Return the event which was dispatched by the agent. |
java.lang.reflect.Method |
protocol_used()
Return the input protocol method by which this input was handled. |
java.lang.Object |
recipient()
Return the interactor which received the event. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected event _dispatched_event
protected dispatch_agent _agent
protected java.lang.reflect.Method _protocol_used
protected java.lang.Object _recipient
protected java.lang.Object _agent_data
Constructor Detail |
public dispatch_result(event e, dispatch_agent a, java.lang.Object i, java.lang.reflect.Method m)
event
- e the event which was dispatcheddispatch_agent
- a the agent which dispatched the inputObject
- i the interactor which received the event (pass an
array of interactors if multiple interactors received
the event)Method
- m the method that was called to handle the inputpublic dispatch_result(event e, dispatch_agent a, java.lang.Object i, java.lang.reflect.Method m, java.lang.Object ad)
event
- e the event which was dispatcheddispatch_agent
- a the agent which dispatched the inputObject
- i the interactor which received the event (pass an
array of interactors if multiple interactors received
the event)Method
- m the method that was called to handle the inputObject
- ad the agent specific data from this dispatchMethod Detail |
public event dispatched_event()
public dispatch_agent agent()
public java.lang.reflect.Method protocol_used()
public java.lang.Object recipient()
public java.lang.Object agent_data()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |