cad.simcad.worldsimulator.objects.others
Class SimAccident

java.lang.Object
  |
  +--cad.simcad.worldsimulator.objects.SimulatedObject
        |
        +--cad.simcad.worldsimulator.objects.others.SimAccident
All Implemented Interfaces:
Drawable2DObject, java.io.Serializable, SimObject

public class SimAccident
extends SimulatedObject
implements Drawable2DObject

Author:
Administrator
See Also:
Serialized Form

Field Summary
protected  PathPlace _pp
           
 
Fields inherited from class cad.simcad.worldsimulator.objects.SimulatedObject
_am, _className, _height, _id, _name, _om, _owner, _serial, _sime, _stateId, _width
 
Constructor Summary
SimAccident(SimEnvironment sime, PathPlace mp, ObjectMediator om, Owner owner)
          Creates a new instance of SimAccident
 
Method Summary
 double getBoundingCircleRadius()
          This allows to ask the radius of the object bounding circle.
 PathPlace getCurrentPathPlace()
          Return the PathPlace for this object Could be null
 java.awt.Color getMiniMapColor()
          Return the Color for a totally zoomed out view
 java.lang.String getObjectType()
          Return the Type of the SimObject
 int getX()
          Return the X coordinate where the object should be drawn
 int getY()
          Return the Y coordinate where the object should be drawn
 void stopObject()
          Stop the object activity
 void takeTurn()
          This method returns the object name.
 
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
 

Field Detail

_pp

protected PathPlace _pp
Constructor Detail

SimAccident

public SimAccident(SimEnvironment sime,
                   PathPlace mp,
                   ObjectMediator om,
                   Owner owner)
Creates a new instance of SimAccident

Method Detail

getCurrentPathPlace

public PathPlace getCurrentPathPlace()
Return the PathPlace for this object Could be null

Specified by:
getCurrentPathPlace in interface SimObject
Specified by:
getCurrentPathPlace in class SimulatedObject

getBoundingCircleRadius

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

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

getObjectType

public java.lang.String getObjectType()
Return the Type of the SimObject

Specified by:
getObjectType in interface SimObject
Pre:
-
Returns:
A String describing the type of the SimObject (unit, structure)
Post:
-

takeTurn

public void takeTurn()
This method returns the object name. Name used to be shown

Specified by:
takeTurn in interface SimObject
Pre:
-
Returns:
a String object
Post:
-

getMiniMapColor

public java.awt.Color getMiniMapColor()
Return the Color for a totally zoomed out view

Specified by:
getMiniMapColor in interface Drawable2DObject

getX

public int getX()
Return the X coordinate where the object should be drawn

Specified by:
getX in interface Drawable2DObject

getY

public int getY()
Return the Y coordinate where the object should be drawn

Specified by:
getY in interface Drawable2DObject

stopObject

public void stopObject()
Description copied from interface: SimObject
Stop the object activity

Specified by:
stopObject in interface SimObject
Specified by:
stopObject in class SimulatedObject

Logo

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