kaos.core.service.ontology.request
Interface InfoStatusCallback

All Known Subinterfaces:
ActionStatusCallback, RemoteActionStatusCallback, RemoteInfoStatusCallback
All Known Implementing Classes:
ActionStatusCallbackImpl, RemoteActionCallbackImpl, RemoteActionStatusCallbackImpl

public interface InfoStatusCallback

Defines the operations on the callback object associated with a request for information/action. The callback may send a status indicating whether the request for information/action has been accepted, refused, or completed.


Method Summary
 void onAccepted(java.util.Calendar time, java.lang.Object acceptInfo)
          This method is invoked when the request is accepted by the receiver.
 void onCompleted(java.util.Calendar time, java.lang.Object result)
          This method is invoked upon completion of the request.
 void onRefused(java.util.Calendar time, java.lang.Object reason)
          This method is invoked when the request is refused by the receiver.
 void reset()
          Reset callback settings.
 

Method Detail

onAccepted

void onAccepted(java.util.Calendar time,
                java.lang.Object acceptInfo)
This method is invoked when the request is accepted by the receiver.

Parameters:
time - Calendar time of acceptance.
acceptInfo - Object containing additional (optional) info about the acceptance.

onRefused

void onRefused(java.util.Calendar time,
               java.lang.Object reason)
This method is invoked when the request is refused by the receiver.

Parameters:
time - Calendar time of refusal.
reason - Object containing the reason for refusing the request.

onCompleted

void onCompleted(java.util.Calendar time,
                 java.lang.Object result)
This method is invoked upon completion of the request.

Parameters:
time - Calendar time of information/action completion.
result - Object containing the result of the requested action.

reset

void reset()
Reset callback settings.