|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.data.EntityData
public class EntityData
Class holding the minimum data to represent an entity
Constructor Summary | |
---|---|
EntityData()
|
|
EntityData(int id,
java.lang.String type)
|
|
EntityData(int id,
java.lang.String type,
float x,
float y,
float z)
Constructs an entity with the given id, type and location |
|
EntityData(int id,
java.lang.String type,
float x,
float y,
float z,
java.util.Map<java.lang.String,java.lang.String> properties)
|
|
EntityData(java.lang.String type)
|
Method Summary | |
---|---|
int |
getId()
Returns the unique id for the entity |
Point3 |
getLocation()
Returns the location for the entity |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
|
java.lang.String |
getPropertyValue(java.lang.String key)
Returns the value for the given key |
java.lang.String |
getType()
Returns entity's type |
void |
setId(int id)
|
void |
setLocation(float x,
float y,
float z)
Sets the location for this entity |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties for this entity |
void |
setPropertyValue(java.lang.String key,
java.lang.String value)
Sets a the property value for the given key |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityData()
public EntityData(int id, java.lang.String type)
public EntityData(int id, java.lang.String type, float x, float y, float z)
id
- the idtype
- the typex
- the x coordinatey
- the y coordinatez
- the z coordinatepublic EntityData(int id, java.lang.String type, float x, float y, float z, java.util.Map<java.lang.String,java.lang.String> properties)
public EntityData(java.lang.String type)
Method Detail |
---|
public int getId()
public Point3 getLocation()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public java.lang.String getPropertyValue(java.lang.String key)
key
- the key
public java.lang.String getType()
public void setId(int id)
public void setLocation(float x, float y, float z)
x
- x coordinatey
- y coordinatez
- z coordinatepublic void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- the propertiespublic void setPropertyValue(java.lang.String key, java.lang.String value)
key
- the keyvalue
- the value for the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |