com.vwp.vuapi.event
Interface VUObjectListener

All Superinterfaces:
EventListener

public interface VUObjectListener
extends EventListener

This class can be used to create a object that watches which changes appear related to objects.

Beside the possibility to retrieve objects that are available within a defined area this class can be used to notice if an object was built completely new too.
Please note: there is no constant for a changed object. If an object was modified somehow, it is noticed as new. Within the appropriate VUObjectInfo object the ID of the old object can befound to identify this one as changed. Please also refer to VUObjectInfoTool


Field Summary
static int VU_OBJECT_CHANGE_ADD
          change action flag: A new object was added to the world or an existing one was modified
static int VU_OBJECT_CHANGE_REMOVE
          change action flag: A object was removed from the world
 
Method Summary
 void objectChanged(VUObjectInfo oi, int changeFlag)
          An object within the world the robot is currently logged in has changed
 void objectError(int errorCode)
          This method mainly is called when building of an object failed
 

Field Detail

VU_OBJECT_CHANGE_ADD

static final int VU_OBJECT_CHANGE_ADD
change action flag: A new object was added to the world or an existing one was modified

See Also:
Constant Field Values

VU_OBJECT_CHANGE_REMOVE

static final int VU_OBJECT_CHANGE_REMOVE
change action flag: A object was removed from the world

See Also:
Constant Field Values
Method Detail

objectChanged

void objectChanged(VUObjectInfo oi,
                   int changeFlag)
An object within the world the robot is currently logged in has changed

Parameters:
oi - gives all available information about the object that changed
changeFlag - informs what kind of change happened using the VU_OBJECT_CHANGE_-constants ToDo: decouple this method call so that a blocking user handling doesn't blocks the complete data flow of the API

objectError

void objectError(int errorCode)
This method mainly is called when building of an object failed

Parameters:
errorCode - the error code as defined in VUConnections ToDo: decouple this method call so that a blocking user handling doesn't blocks the complete data flow of the API