org.commonreality.object.manager.impl
Class BasicObject

java.lang.Object
  extended by org.commonreality.object.manager.impl.BasicObject
All Implemented Interfaces:
java.io.Serializable, IIdentifiable, IMutableObject, ISimulationObject
Direct Known Subclasses:
AbstractEfferentCommand, AfferentObject, AgentObject, EfferentObject, RealObject, SensorObject

public class BasicObject
extends java.lang.Object
implements IMutableObject, java.io.Serializable

Author:
developer
See Also:
Serialized Form

Constructor Summary
BasicObject(BasicObject origin)
           
BasicObject(IIdentifier identifier)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 IIdentifier getIdentifier()
           
 java.util.Collection<java.lang.String> getProperties()
           
 java.lang.Object getProperty(java.lang.String keyName)
           
 java.util.Map<java.lang.String,java.lang.Object> getPropertyMap()
           
 int hashCode()
           
 boolean hasProperty(java.lang.String keyName)
           
 boolean setProperty(java.lang.String keyName, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicObject

public BasicObject(IIdentifier identifier)

BasicObject

public BasicObject(BasicObject origin)
Method Detail

setProperty

public boolean setProperty(java.lang.String keyName,
                           java.lang.Object value)
Specified by:
setProperty in interface IMutableObject

getProperty

public final java.lang.Object getProperty(java.lang.String keyName)
                                   throws UnknownPropertyNameException
Specified by:
getProperty in interface ISimulationObject
Throws:
UnknownPropertyNameException
See Also:
ISimulationObject.getProperty(java.lang.String)

hasProperty

public final boolean hasProperty(java.lang.String keyName)
Specified by:
hasProperty in interface ISimulationObject
See Also:
ISimulationObject.hasProperty(java.lang.String)

getIdentifier

public IIdentifier getIdentifier()
Specified by:
getIdentifier in interface IIdentifiable
Returns:
identifier
See Also:
IIdentifiable.getIdentifier()

getProperties

public final java.util.Collection<java.lang.String> getProperties()
Specified by:
getProperties in interface ISimulationObject
See Also:
ISimulationObject.getProperties()

hashCode

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

equals

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

getPropertyMap

public java.util.Map<java.lang.String,java.lang.Object> getPropertyMap()
Specified by:
getPropertyMap in interface ISimulationObject
See Also:
ISimulationObject.getPropertyMap()

toString

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