es.ucm.look.data.interfaces
Interface DataSetter

All Known Subinterfaces:
DataHandler
All Known Implementing Classes:
BasicDataHandler, DBDataHandler, LookContentProvider, RemoteDBHandler

public interface DataSetter

General interface for classes adding or changing data to the application


Method Summary
 void addEntity(EntityData data)
          Adds an entity to the world
 void updatePosition(EntityData data, float x, float y, float z)
          Modifies the position for an entity
 void updateProperty(EntityData data, java.lang.String property, java.lang.String newValue)
          Updates the value from a entity data property
 

Method Detail

addEntity

void addEntity(EntityData data)
Adds an entity to the world

Parameters:
data -

updatePosition

void updatePosition(EntityData data,
                    float x,
                    float y,
                    float z)
Modifies the position for an entity

Parameters:
data - data representing the entity
x - x coordinate
y - y coordinate
z - z coordinate

updateProperty

void updateProperty(EntityData data,
                    java.lang.String property,
                    java.lang.String newValue)
Updates the value from a entity data property

Parameters:
data - entity data
property - the property name
newValue - the nuew value for the property