org.jscience.architecture.traffic.infrastructure
Class Automobile

java.lang.Object
  extended by org.jscience.architecture.traffic.infrastructure.Roaduser
      extended by org.jscience.architecture.traffic.infrastructure.Automobile
All Implemented Interfaces:
java.lang.Cloneable, Selectable, SelectionStarter, TwoStageLoader, XMLSerializable
Direct Known Subclasses:
Bus, Car

public abstract class Automobile
extends Roaduser

An Automobile can say toot(), that is what distuingishes it from other Roadusers.


Field Summary
protected static int passengers
          DOCUMENT ME!
protected static java.lang.String soundFileName
          DOCUMENT ME!
protected static int speed
          DOCUMENT ME!
protected static int type
          DOCUMENT ME!
 
Fields inherited from class org.jscience.architecture.traffic.infrastructure.Roaduser
color, cycleAsked, cycleMoved, delay, destNode, drivelaneStartTime, inQueueForSign, loadData, parentName, position, prevSign, prevWaitPos, prevWaitTl, prevWaitTlColor, startNode, voted, waitPos, waitTl, waitTlColor
 
Constructor Summary
Automobile()
          Creates a new Automobile object.
Automobile(Node new_startNode, Node new_destNode, int pos)
          Creates a new Automobile object.
 
Method Summary
 java.lang.String getXMLName()
          DOCUMENT ME!
 void paint(java.awt.Graphics g, int x, int y, float zf)
          DOCUMENT ME!
 void paint(java.awt.Graphics g, int x, int y, float zf, double angle)
          DOCUMENT ME!
 void toot()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.architecture.traffic.infrastructure.Roaduser
addDelay, clone, didMove, didVote, getBounds, getCenterPoint, getChildren, getColor, getComplexBounds, getCurrentWaitPos, getCurrentWaitTl, getCurrentWaitTlColor, getCycleAsked, getCycleMoved, getDelay, getDescription, getDestNode, getDistance, getDrivelaneStartTime, getDriverName, getInQueueForSign, getLength, getName, getNumPassengers, getPicture, getPosition, getPrevSign, getPrevWaitPos, getPrevWaitTl, getPrevWaitTlColor, getSelectionPoint, getSelectionPoints, getSound, getSpeed, getStartNode, getType, getVehicleName, hasChildren, isSelectable, load, loadSecondStage, paint, paint, resetStats, saveChilds, saveSelf, setColor, setCycleAsked, setCycleMoved, setDelay, setDestNode, setDrivelaneStartTime, setInQueueForSign, setParentName, setPosition, setPrevSign, setStartNode, setVoted, setWaitPos
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected static final int type
DOCUMENT ME!


speed

protected static final int speed
DOCUMENT ME!

See Also:
Constant Field Values

passengers

protected static final int passengers
DOCUMENT ME!

See Also:
Constant Field Values

soundFileName

protected static final java.lang.String soundFileName
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Automobile

public Automobile(Node new_startNode,
                  Node new_destNode,
                  int pos)
Creates a new Automobile object.

Parameters:
new_startNode - DOCUMENT ME!
new_destNode - DOCUMENT ME!
pos - DOCUMENT ME!

Automobile

public Automobile()
Creates a new Automobile object.

Method Detail

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  float zf)
DOCUMENT ME!

Specified by:
paint in class Roaduser
Parameters:
g - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!
zf - DOCUMENT ME!

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  float zf,
                  double angle)
DOCUMENT ME!

Specified by:
paint in class Roaduser
Parameters:
g - DOCUMENT ME!
x - DOCUMENT ME!
y - DOCUMENT ME!
zf - DOCUMENT ME!
angle - DOCUMENT ME!

toot

public void toot()
DOCUMENT ME!


getXMLName

public java.lang.String getXMLName()
DOCUMENT ME!

Returns:
DOCUMENT ME!