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

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

public class PropertyId
extends Object
implements Serializable

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

Author:
srlok
See Also:
Serialized Form

Method Summary
 boolean equals(Object other)
           
static PropertyId get(WorldObjectId objectId, long id)
          Returns a new PropertyId object.
static PropertyId get(WorldObjectId objectId, String name)
          Returns a new PropertyId object.
 cz.cuni.amis.utils.token.Token getPropertyToken()
           
 String getStringId()
           
 WorldObjectId getWorldObjectId()
          Returns id of the object, this property belongs to.
 int hashCode()
           
 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 cz.cuni.amis.utils.token.Token getPropertyToken()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getStringId

public String getStringId()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

get

public static PropertyId get(WorldObjectId objectId,
                             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:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.