Changeset 90 in tmcsimulator for trunk/src/atmsdriver/NetworkLoader.java


Ignore:
Timestamp:
10/10/2017 04:35:30 PM (9 years ago)
Author:
jdalbey
Message:

Station.java - DIRECTION enum shortened by using existing enum methods "values()" and "toString()".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/atmsdriver/NetworkLoader.java

    r84 r90  
    228228        sc.nextInt(); // skip count 
    229229        sc.nextInt(); // fwy 
    230         DIRECTION dir = DIRECTION.getEnum(sc.next()); // direction 
     230        DIRECTION dir = DIRECTION.toDirection(sc.next()); // direction 
    231231        sc.nextDouble(); 
    232232         
     
    261261                scLine.nextInt(); // skip count 
    262262                int fwy = scLine.nextInt(); // fwy 
    263                 DIRECTION dir = DIRECTION.getEnum(scLine.next()); // direction 
     263                DIRECTION dir = DIRECTION.toDirection(scLine.next()); // direction 
    264264                double postmile = scLine.nextDouble(); 
    265265                String ldsName = getLocation(strLine); /************* DOESNT GRAB WHOLE???? *///// 
Note: See TracChangeset for help on using the changeset viewer.