| java.lang.Object org.cougaar.core.adaptivity.OMCBase org.cougaar.core.adaptivity.OperatingModeImpl org.cougaar.core.adaptivity.InterAgentOperatingMode
InterAgentOperatingMode | public class InterAgentOperatingMode extends OperatingModeImpl implements Relay.Source,UniqueObject,java.io.Serializable(Code) | | A remotely-controlled Condition. Allows an adaptivity engine in one
agent to control a Condition of the adaptivity engine in another
agent. It is instantiated in the controlling agent and transferred
to the controlled agent using the Relay logic providers. A copy
of the instance is published in the controlled agent's blackboard
and used like any other Condition.
|
getContent | public Object getContent()(Code) | | Get an object representing the value of this Relay suitable
for transmission. This implementation uses itself to represent
its Content.
|
getTargets | public Set getTargets()(Code) | | Get all the addresses of the target agents to which this Relay
should be sent. For this implementation this is always a
singleton set contain just one target.
|
setTarget | public void setTarget(MessageAddress target)(Code) | | Set the message address of the target. This implementation
presumes that there is but one target.
Parameters: target - the address of the target agent. |
setUID | public void setUID(UID uid)(Code) | | Set the UID (unique identifier) of this UniqueObject. Used only
during initialization.
Parameters: uid - the UID to be given to this |
updateResponse | public int updateResponse(MessageAddress target, Object response)(Code) | | Set the response that was sent from a target. For LP use only.
This implemenation does nothing because responses are not needed
or used.
|
|
|