| Home >> All |
traffic: Javadoc index of package traffic.
Package Samples:
traffic
Classes:
GKeys: GKeys is a tiny frame which stays on top (mostly) to capture keystrokes. Key strokes are passed in from GMain, DSignals and others. The KeyEvent (VK_?) codes used so far are: A - Add street(s) J - adJust signals S - Save file B - aBout K - Kill traffic T - add Traffic C - piCk signal L - turn vaLues U - actUate Signal D - Description M - view Map V - View signals E - (im/Ex)port N - New city W - Weasel Words F - Phase diagram O - Open file X - eXpunge traffic G - sample Grid P - add Phases Y - citY-wide values H - Hide map/signals Q - Quit Z - Zoom map I - add Intersection R - Run traffic / - panel ...
GValues: GValues maintains miscellaneous default values for various city wide functions. The data is stored in OCity. Some of these values are overriden by values entered on the GTurns panel. The data includes the following: Vehicle speed Vehicle length and separation Right turn % Right turn queue length (turnout) Left turn % Left turn queue length (turnout) pause in seconds sitting at leave a stop sign gap in seconds reqd to leave a stop sign # of meters between gridlines on map (not implemented) switch for metric or EE units
GTurns: GTurns maintains turn values for a given intersection. The data entered here overrides the data entered in the GValues panel. The data is stored in OIntersection. These include the following: Right turn % Right turn queue length (turnout) Left turn % Left turn queue length (turnout)
OFragment: a street Fragment is an unbroken piece of street that has a constant speed, number of lanes and direction. Fragments also begin and end at intersections or other entrances and exits. Fragments are created by the GStreet panel, held by OStreet and contain OVehicle s.
ULoadDriver: This stand alone application loads a grid with test data so that testing can be performed after the data objects have been changed. The data objects are: OCity , OStreet , OFragment and OIntersection . Sample OQuery s are also created.
UPrint: Prints information in a modal dialog. These methods are used for informational/error messages and for ad hoc debugging. The basic method is massively overriden so that it can be used to print any of the data types that miniTraff uses. UPrint is also used to print query data.
UXport: This program imports and exports data from text format traffic layouts. It is invoked through GXport. It manipulates data found in OCity , OStreet , OFragment , OIntersection and UQuery .
JavaDriver: JavaDriver Driver for traffic system. Also handles all other threads. It initially allocates the following major objects. GMain GControl GKeys OCity
UQuery: A generic ad-hoc query system. Queries are created using the GQuery panel. Queries are saved by OCity so that they will be written to a file with the rest of the miniTraff persistant data.
OIntersection: A named container for traffic Phases. Also handles logic for traffic lights. OIntersection is created by GIntersection , modified by GPhases and stored in OCity
HExplain: HExplain This program reads the help files and displays them. It can also display text from files that have been saved inside the jar file. It is controled by Help .
GMain: GMain - Parent window for Traffic simulator, contains main menu. Any menu items added here must also be added to GKeys. see GKeys for KeyEvent codes used so far.
OCity: Senior data object. Contains OStreet , OIntersection and UQuery objects. Also contains various citywide default values.
GControl: GControl GUI manager for traffic system. This panel creates a GraphicCards layout that displays all of the data entry panels when they are requested.
Display: Display creates the Graphics environment in which the other display work. It also controls which component will access that environment.
GDensity: GDensity Panel for maintenance of quantity of cars entering and leaving street Fragments. The data is stored in the OFragment objects
GQuery: GQuery a generic ad-hoc query system. The data is stored in UQuery. The Queries are performed by separate threads in JavaDriver.
Help: Help This program evaluates the type of help requested and either displays it or passes the request to HExplain .
GActuate: GActuate maintains actuation values for a given intersection. The values collected here are saved in OIntersection.
OVehicle: Cars and Trucks that travel from one OFragment to the next as they navigate through the OCity .
GIntersection: GIntersection displays Intersection data and controls entry of same. The data is saved in OIntersection.
GXport: GXport Import or export city data from/to various formats. The data is manipulated by UXport
GPhases: GPhases displays Phase data and controls entry of same. The data is stored in OIntersection.
DIntrs: DIntrs displays a dialog which accepts an Integer that is used to select an intersection.
GStreet: GStreet displays Street data and controls entry of same. The data is stored in OStreet
| Home | Contact Us | Privacy Policy | Terms of Service |