source: tmcsimulator/trunk/src/atmsdriver/ConsoleDriver.java @ 97

Revision 97, 727 bytes checked in by jdalbey, 9 years ago (diff)

ConsoleDriver?.java - pseudocode added.

Line 
1package atmsdriver;
2
3/**
4 *  A console application to drive the ATMS Server.
5 * @author jdalbey
6 */
7public class ConsoleDriver
8{
9//
10//Given
11// <Highway Number> <Dir> <Postmile> <Range> <DotColor>
12//
13//IF default direction of Highway Number = Dir THEN
14//    Set StartPost = Postmile
15//    Set EndPost = Postmile + Range
16//ELSE
17//    Set StartPost = Postmile - Range
18//    Set EndPost = Postmile
19//END IF
20//
21//FOR each Station in Highway Number LOOP
22//
23//    IF Station.Postmile within range of StartPost:EndPost THEN
24//        IF default direction of Highway Number = Dir THEN
25//            Set ML color to DotColor
26//        ELSE
27//            Set OPP color to DotColor
28//        END IF
29//    END IF
30//
31//END LOOP
32//
33//   
34}
Note: See TracBrowser for help on using the repository browser.