Class Director

java.lang.Object
  |
  +--Director

public class Director
extends java.lang.Object

This class creates a graphics window, adds Props to the scene, and controls their actions.


Constructor Summary
Director()
          Create a new Director and all the required accessories.
 
Method Summary
 void action()
          Direct the action on stage and create new Cars as appropriate.
 Car getCarWithNumber(int number)
          Retrieve the Car object from the specified position in the roster or null if no such position exists.
static void main(java.lang.String[] arg)
          The main() method instantiates a new Director object, creates the Props, starts the action, and displays a notice when the Action is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Director

public Director()
Create a new Director and all the required accessories.

Method Detail

action

public void action()
Direct the action on stage and create new Cars as appropriate.


getCarWithNumber

public Car getCarWithNumber(int number)
Retrieve the Car object from the specified position in the roster or null if no such position exists.

Parameters:
number - the integer position for the Car being sought in the roster
Returns:
the Car object at this position in the roster, or null if no such position exists

main

public static void main(java.lang.String[] arg)
The main() method instantiates a new Director object, creates the Props, starts the action, and displays a notice when the Action is complete.

Parameters:
arg - a String array, currently ignored