cad.simcad.worldsimulator.objects.buildings
Class PassiveStructure

java.lang.Object
  |
  +--cad.simcad.worldsimulator.objects.SimulatedObject
        |
        +--cad.simcad.worldsimulator.objects.buildings.Structure
              |
              +--cad.simcad.worldsimulator.objects.buildings.PassiveStructure
All Implemented Interfaces:
Drawable2DObject, java.io.Serializable, SimObject
Direct Known Subclasses:
AmbulanceStation, Hospital

public abstract class PassiveStructure
extends Structure

Version:
1.0
Author:
Charles-Philip Bentley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cad.simcad.worldsimulator.objects.SimulatedObject
_am, _className, _height, _id, _name, _om, _owner, _serial, _sime, _stateId, _width
 
Constructor Summary
PassiveStructure(SimEnvironment sime, PathPlace current, StructureMediator um, Owner owner, java.lang.String className)
          Creates new PassiveStructure
 
Method Summary
abstract  double getBoundingCircleRadius()
          This allows to ask the radius of the objects bounding circle.
 int getVelocity()
          Here the velocity of an object can be asked.
 boolean isStatic()
          Can the structure move in someway ?
 void move()
           
 void setVelocity(int value)
          To change the velocity of an object.
 
Methods inherited from class cad.simcad.worldsimulator.objects.buildings.Structure
getCurrentPathPlace, getMiniMapColor, getObjectType, getX, getY, stopObject, takeTurn
 
Methods inherited from class cad.simcad.worldsimulator.objects.SimulatedObject
getClassName, getHeight, getId, getName, getSerialNumber, getStateId, getWidth, setStateId
 
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.Drawable2DObject
getHeight, getWidth
 

Constructor Detail

PassiveStructure

public PassiveStructure(SimEnvironment sime,
                        PathPlace current,
                        StructureMediator um,
                        Owner owner,
                        java.lang.String className)
Creates new PassiveStructure

Method Detail

getBoundingCircleRadius

public abstract double getBoundingCircleRadius()
This allows to ask the radius of the objects bounding circle.

Specified by:
getBoundingCircleRadius in interface SimObject
Specified by:
getBoundingCircleRadius in class Structure
Returns:
a double value, the radius of the Bounding circle for this object

isStatic

public boolean isStatic()
Can the structure move in someway ?

Specified by:
isStatic in class Structure

getVelocity

public int getVelocity()
Here the velocity of an object can be asked.

Specified by:
getVelocity in class Structure

move

public void move()
Specified by:
move in class Structure

setVelocity

public void setVelocity(int value)
To change the velocity of an object.

Specified by:
setVelocity in class Structure

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be