cz.cuni.amis.pogamut.multi.communication.worldview.property
Class PropertyId

java.lang.Object
  extended by cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId
All Implemented Interfaces:
java.io.Serializable

public class PropertyId
extends java.lang.Object
implements java.io.Serializable

Unique Id for each SharedProperty in the world. PropertyId is dependent on WorldObjectId.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object other)
           
static PropertyId get(WorldObjectId objectId, long id)
          Returns a new PropertyId object.
static PropertyId get(WorldObjectId objectId, java.lang.String name)
          Returns a new PropertyId object.
 Token getPropertyToken()
           
 java.lang.String getStringId()
           
 WorldObjectId getWorldObjectId()
          Returns id of the object, this property belongs to.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getWorldObjectId

public WorldObjectId getWorldObjectId()
Returns id of the object, this property belongs to.

Returns:

getPropertyToken

public Token getPropertyToken()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getStringId

public java.lang.String getStringId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

get

public static PropertyId get(WorldObjectId objectId,
                             java.lang.String name)
Returns a new PropertyId object. Method makes sure that there is only one instance for each (WorldObjectId,String) pair.

Parameters:
objectId -
name -
Returns:

get

public static PropertyId get(WorldObjectId objectId,
                             long id)
Returns a new PropertyId object. Method makes sure that there is only one instance for each (WorldObjectId,long) pair.

Parameters:
objectId -
id -
Returns: