| |
|
| java.lang.Object org.cougaar.servicediscovery.transaction.RelayAdapter org.cougaar.servicediscovery.transaction.ServiceContractRelayImpl
ServiceContractRelayImpl | public ServiceContractRelayImpl()(Code) | | |
addTarget | public void addTarget(MessageAddress target)(Code) | | Add a target message address.
Parameters: target - the address of the target agent. |
getClient | public Asset getClient()(Code) | | Returns the client asset from the ServiceRequest
Asset client asset as specified by the ServiceRequestagent. |
getProvider | public Asset getProvider()(Code) | | Returns the provider asset from the ServiceContract
Asset provider asset as specified by the ServiceContractagent. |
getProviderName | public String getProviderName()(Code) | | Gets the name of the Agent from whom the service is requested
String Name of the agent |
getServiceContract | public ServiceContract getServiceContract()(Code) | | Returns the service contract provided by the provider agent
ServiceContract service contract as specified by the provideragent. |
getServiceRequest | public ServiceRequest getServiceRequest()(Code) | | Returns the service request from the client
ServiceRequest service request as specified by the clientagent. |
setServiceContract | public void setServiceContract(ServiceContract serviceContract)(Code) | | Sets the service contract as specified by the provider and
return true. Caller responsible for verifying compatibility.
Parameters: serviceContract - ServiceContract as specified by the provider |
setServiceRequest | public void setServiceRequest(ServiceRequest serviceRequest)(Code) | | Sets the service request (request should be only be set by the client)
Parameters: serviceRequest - ServiceRequest as specified by the client |
updateResponse | public int updateResponse(MessageAddress target, Object response)(Code) | | Set the response that was sent from a target. For LP use only.
This implementation assumes that response is always different.
or used.
|
|
|
|