org.micropsi.comp.console.worldconsole.model
Class AbstractWorldObject

java.lang.Object
  extended byorg.micropsi.comp.console.worldconsole.model.AbstractWorldObject
Direct Known Subclasses:
WorldObject, WorldObjectPart

public abstract class AbstractWorldObject
extends java.lang.Object


Field Summary
protected  long id
           
protected  java.lang.String objectClass
           
protected  java.lang.String objectName
           
protected  LocalWorldModel worldModel
           
 
Constructor Summary
AbstractWorldObject()
           
 
Method Summary
protected  void appendAllParts(java.util.Collection coll)
           
protected  java.util.List buildSubObjects(MTreeNode node)
           
 boolean equals(java.lang.Object obj)
          AbstractWorldObjects are considered equal if and only if they have the same id.
 AbstractWorldObject findPartById(long id)
           
 java.util.Collection getAllParts()
           
 long getId()
           
abstract  java.lang.String getLabelText()
           
 java.lang.String getObjectClass()
           
 java.lang.String getObjectName()
           
abstract  AbstractWorldObject getParent()
           
abstract  WorldObject getRootObject()
           
 java.util.Collection getSubParts()
           
 int hashCode()
          AbstractWorldObjects are considered equal if and only if they have the same id.
abstract  boolean isHighLevelObject()
           
 void setSubParts(java.util.List subObjects)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

worldModel

protected LocalWorldModel worldModel

id

protected long id

objectName

protected java.lang.String objectName

objectClass

protected java.lang.String objectClass
Constructor Detail

AbstractWorldObject

public AbstractWorldObject()
Method Detail

getId

public long getId()

getObjectClass

public java.lang.String getObjectClass()

getSubParts

public java.util.Collection getSubParts()
Returns:
Returns the subParts.

appendAllParts

protected void appendAllParts(java.util.Collection coll)

getAllParts

public java.util.Collection getAllParts()

findPartById

public AbstractWorldObject findPartById(long id)

setSubParts

public void setSubParts(java.util.List subObjects)

getParent

public abstract AbstractWorldObject getParent()

getRootObject

public abstract WorldObject getRootObject()

isHighLevelObject

public abstract boolean isHighLevelObject()

buildSubObjects

protected java.util.List buildSubObjects(MTreeNode node)
Parameters:
node -
Returns:

getObjectName

public java.lang.String getObjectName()

getLabelText

public abstract java.lang.String getLabelText()

hashCode

public int hashCode()
AbstractWorldObjects are considered equal if and only if they have the same id.


equals

public boolean equals(java.lang.Object obj)
AbstractWorldObjects are considered equal if and only if they have the same id.


(c) by Micropsi Project: http://www.cognitive-agents.org

.