Warning: Can't use blame annotator:
svn blame failed on trunk/src/atmsdriver/trafficeventseditor/TrafficLaneEvent.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/src/atmsdriver/trafficeventseditor/TrafficLaneEvent.java @ 422

Revision 422, 1.1 KB checked in by jdalbey, 7 years ago (diff)

Remove ATMS functionality. Reworked and simplified the Highway model to use only VDS data from PeMS. Updated all unit tests.

RevLine 
1package atmsdriver.trafficeventseditor;
2
3import tmcsim.highwaymodel.LoopDetector;
4import tmcsim.highwaymodel.LoopDetector.DOTCOLOR;
5import tmcsim.highwaymodel.Station;
6
7/**
8 *
9 * @author jtorres
10 */
11final public class TrafficLaneEvent implements Comparable
12{
13    final public Integer routeNum;
14    final public Station station;
15    final public LoopDetector loopDetector;
16    final public DOTCOLOR color;
17   
18    public TrafficLaneEvent(Integer routeNum, Station stn, LoopDetector loopDetector,
19            DOTCOLOR color)
20    {
21        this.routeNum = routeNum;
22        this.station = stn;
23        this.loopDetector = loopDetector;
24        this.color = color;
25    }
26
27    @Override
28    public int compareTo(Object o)
29    {
30        if(!(o instanceof TrafficLaneEvent))
31        {
32            return -1;
33        }
34        TrafficLaneEvent other = (TrafficLaneEvent) o;
35        if(other.station == this.station && other.routeNum == this.routeNum
36                && other.loopDetector == this.loopDetector)
37        {
38            return 0;
39        }
40        else
41        {
42            return -1;
43        }
44    }
45}
Note: See TracBrowser for help on using the repository browser.