org.commonreality.message.request.object
Class ObjectDataRequest

java.lang.Object
  extended by org.commonreality.message.impl.BaseMessage
      extended by org.commonreality.message.request.object.ObjectDataRequest
All Implemented Interfaces:
java.io.Serializable, IMessage, IRequest, IObjectDataRequest

public class ObjectDataRequest
extends BaseMessage
implements IObjectDataRequest

Author:
developer
See Also:
Serialized Form

Constructor Summary
ObjectDataRequest(IIdentifier source, IIdentifier destination, java.util.Collection<? extends IObjectDelta> data)
           
 
Method Summary
 boolean acknowledgementRequired()
          if the sender of this request requires acknowledgment
 IMessage copy()
           
 java.util.Collection<IObjectDelta> getData()
           
 IIdentifier getDestination()
          the destination for this data request (if a sensor is sending data it should be addressed to a specific agent only, or in the case on IRealObject's to IIdentifier.ALL
 
Methods inherited from class org.commonreality.message.impl.BaseMessage
getMessageId, getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.commonreality.message.IMessage
getMessageId, getSource
 

Constructor Detail

ObjectDataRequest

public ObjectDataRequest(IIdentifier source,
                         IIdentifier destination,
                         java.util.Collection<? extends IObjectDelta> data)
Parameters:
source -
Method Detail

copy

public IMessage copy()
Specified by:
copy in interface IMessage

getDestination

public IIdentifier getDestination()
Description copied from interface: IObjectDataRequest
the destination for this data request (if a sensor is sending data it should be addressed to a specific agent only, or in the case on IRealObject's to IIdentifier.ALL

Specified by:
getDestination in interface IObjectDataRequest
Returns:
See Also:
IObjectDataRequest.getDestination()

getData

public java.util.Collection<IObjectDelta> getData()
Specified by:
getData in interface IObjectDataRequest
See Also:
IObjectDataRequest.getData()

acknowledgementRequired

public boolean acknowledgementRequired()
Description copied from interface: IRequest
if the sender of this request requires acknowledgment

Specified by:
acknowledgementRequired in interface IRequest
Returns:
See Also:
IRequest.acknowledgementRequired()