|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--cad.simcad.worldsimulator.objects.SimulatedObject
Super Class for all objects we want to simulate in the world
| Field Summary | |
protected AbstractMap |
_am
|
protected java.lang.String |
_className
|
protected int |
_height
|
protected int |
_id
|
protected java.lang.String |
_name
|
protected ObjectMediator |
_om
|
protected Owner |
_owner
|
protected long |
_serial
|
protected SimEnvironment |
_sime
|
protected int |
_stateId
|
protected int |
_width
|
| Constructor Summary | |
SimulatedObject(SimEnvironment sime,
ObjectMediator om,
Owner owner,
java.lang.String className)
Creates new SimulatedObject |
|
| Method Summary | |
java.lang.String |
getClassName()
This method returns the object internal name. |
abstract PathPlace |
getCurrentPathPlace()
Return the PathPlace for this object Could be null |
int |
getHeight()
Returns the Height the SimObject |
int |
getId()
Returns the Identifying number of the SimObject |
java.lang.String |
getName()
This method returns the object name. |
long |
getSerialNumber()
Every Object has a unique serial number |
int |
getStateId()
Returns the state id of the SimObject Method that will be used by the simulation to recognize auxilliary state |
int |
getWidth()
Returns the Width of the SimObject |
void |
setStateId(int i)
|
abstract void |
stopObject()
Stop the object activity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cad.simcad.objectserver.spec.sim.SimObject |
getBoundingCircleRadius, getObjectType, takeTurn |
| Field Detail |
protected AbstractMap _am
protected SimEnvironment _sime
protected Owner _owner
protected ObjectMediator _om
protected int _width
protected int _height
protected int _stateId
protected int _id
protected java.lang.String _name
protected java.lang.String _className
protected long _serial
| Constructor Detail |
public SimulatedObject(SimEnvironment sime,
ObjectMediator om,
Owner owner,
java.lang.String className)
| Method Detail |
public int getWidth()
SimObject
getWidth in interface SimObjectpublic int getHeight()
SimObject
getHeight in interface SimObjectpublic java.lang.String getClassName()
SimObject
getClassName in interface SimObjectpublic java.lang.String getName()
SimObject
getName in interface SimObjectpublic int getId()
SimObject
getId in interface SimObjectpublic int getStateId()
SimObject
getStateId in interface SimObjectpublic void setStateId(int i)
setStateId in interface SimObjectpublic abstract void stopObject()
SimObject
stopObject in interface SimObjectpublic long getSerialNumber()
getSerialNumber in interface SimObjectpublic abstract PathPlace getCurrentPathPlace()
getCurrentPathPlace in interface SimObject
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||