kaos.core.service.ontology.request
Interface InformationRequest


public interface InformationRequest

Defines the operations to request information.


Method Summary
 java.lang.Object requestInformation(java.lang.String requestInfo, InfoStatusCallback callBack)
          Request information described by the given description.
 void requestInformation(java.lang.String requestInfo, RemoteInfoStatusCallback callBack, ResultCallback resultCallback)
          Request information described by the given description.
 

Method Detail

requestInformation

java.lang.Object requestInformation(java.lang.String requestInfo,
                                    InfoStatusCallback callBack)
Request information described by the given description. The request for information maybe accepted, or refused. This is a synchronous version of the 'requestInformation' method.

Parameters:
requestInfo - String describing the kind of information being requested.
callBack - InfoStatusCallback to be called to pass back to the requestor status indicating whether the request for information is accepted or refused.
Returns:
Object containing the requested information.

requestInformation

void requestInformation(java.lang.String requestInfo,
                        RemoteInfoStatusCallback callBack,
                        ResultCallback resultCallback)
Request information described by the given description. The request for information maybe accepted, or refused. This is an asynchronous version of the 'requestInformation' method.

Parameters:
requestInfo - String describing the kind of information being requested.
callBack - RemoteInfoStatusCallback to be called to pass back to the requestor info about whether the request for information is accepted or refused.
resultCallback - ResultCallback to be called to send back to the requestor the requested information.