org.iperg.part.core
Class IpObjectSearchEvent

java.lang.Object
  extended by org.iperg.part.core.IpEvent
      extended by org.iperg.part.core.IpObjectSearchEvent

public class IpObjectSearchEvent
extends IpEvent

IpObjectSearchEvent is generated when the result of a broadcast object search is received from a remote process.

Version:
1.0.0 Initial version
Author:
Olov Stahl - olovs@sics.se

Field Summary
static java.lang.String EVENT_TYPE
          The event "type"
 
Constructor Summary
IpObjectSearchEvent(IpIdentifier procId, IpObject[] objs, java.lang.String searchTag)
          Constructs a search event.
 
Method Summary
 IpObject[] getObjects()
          Get the objects that were found
 IpIdentifier getProcessId()
          Get the identifier of the process where the objects were found
 java.lang.String getTag()
          Get the search tag
 
Methods inherited from class org.iperg.part.core.IpEvent
getDestination, getType, read, setDestination, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_TYPE

public static final java.lang.String EVENT_TYPE
The event "type"

See Also:
Constant Field Values
Constructor Detail

IpObjectSearchEvent

public IpObjectSearchEvent(IpIdentifier procId,
                           IpObject[] objs,
                           java.lang.String searchTag)
Constructs a search event.

Parameters:
procId - The identifier of the process where the objects were found
objs - An array of objects that was found
searchTag - The tag that was given when the search was initiated
Method Detail

getProcessId

public IpIdentifier getProcessId()
Get the identifier of the process where the objects were found

Returns:
An identifier representing a PART process

getObjects

public IpObject[] getObjects()
Get the objects that were found

Returns:
An array of object

getTag

public java.lang.String getTag()
Get the search tag

Returns:
The search tag