Changeset 114 in tmcsimulator
- Timestamp:
- 10/14/2017 10:11:04 AM (9 years ago)
- Files:
-
- 1 deleted
- 8 edited
-
branches/FEPSimulator/DataPacker.cpp (modified) (1 diff)
-
branches/FEPSimulator/FEPSim.cpp (modified) (1 diff)
-
branches/FEPSimulator/nbproject/private/private.xml (modified) (1 diff)
-
branches/WorkingFEPSimulator (deleted)
-
trunk/src/atmsdriver/ConsoleDriver.java (modified) (1 diff)
-
trunk/src/atmsdriver/model/Highways.java (modified) (1 diff)
-
trunk/src/atmsdriver/model/LoopDetector.java (modified) (2 diffs)
-
trunk/src/atmsdriver/model/Station.java (modified) (2 diffs)
-
trunk/src/tmcsim/application.properties (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/FEPSimulator/DataPacker.cpp
r113 r114 37 37 38 38 return msg; 39 return msg; 39 40 } 40 41 -
branches/FEPSimulator/FEPSim.cpp
r113 r114 72 72 fsa.msg.message[2 + aa] = 0x0d; 73 73 fsa.msg.message[3 + aa] = 0xff; 74 // info 74 75 for(int l = 0; l < fsa.msg.message_len + 2; l++) 76 { 77 printf("%02X", (unsigned char) fsa.msg.message[l]); 78 } 79 printf("\n"); 80 81 // info 75 82 fsa.info.poll_error_count = 0; 76 83 fsa.info.poll_user_info1 = ldsMap.at(index)->drop; // drop number -
branches/FEPSimulator/nbproject/private/private.xml
r107 r114 8 8 <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> 9 9 <group> 10 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/network.h</file> 11 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/NetworkReader.cpp</file> 12 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/DataPacker.cpp</file> 10 13 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/FEPSim.cpp</file> 11 14 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/Main.cpp</file> 12 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/NetworkReader.cpp</file> 15 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/fep.h</file> 16 <file>file:/Users/jtorres/tmcsimulator/branches/FEPSimulator/FEPSim.h</file> 13 17 </group> 14 18 </open-files> -
trunk/src/atmsdriver/ConsoleDriver.java
r110 r114 150 150 } 151 151 System.out.println(""); 152 highways.writeToFEP(); 152 153 } 153 154 -
trunk/src/atmsdriver/model/Highways.java
r103 r114 211 211 public void writeToFEP() { 212 212 try { 213 Socket sock = new Socket(FEPHostName , FEPPortNum);213 Socket sock = new Socket(FEPHostName /*"192.168.251.130"*/, 8080); 214 214 PrintWriter out = new PrintWriter(sock.getOutputStream(), true); 215 215 out.println(this.toXML()); -
trunk/src/atmsdriver/model/LoopDetector.java
r103 r114 22 22 23 23 /* dynamic data */ 24 p rivateint vol;25 p rivateint occ;24 public int vol; 25 public int occ; 26 26 private int spd; 27 27 … … 34 34 35 35 /* Init dynamic data */ 36 this.vol = 0;36 this.vol = 100; 37 37 this.spd = 0; 38 this.occ = 0;38 this.occ = 100; 39 39 } 40 40 -
trunk/src/atmsdriver/model/Station.java
r109 r114 50 50 this.routeNumber = hwy; 51 51 52 this.MLTotVol = 0; 53 this.OppTotVol = 0; 52 this.MLTotVol = getMLTotVol(); 53 this.OppTotVol = getOPPTotVol(); 54 } 55 56 private int getMLTotVol() 57 { 58 int mlTotVol = 0; 59 for(LoopDetector loop : loops) 60 { 61 if(loop.loopLocation.startsWith("ML")) 62 { 63 mlTotVol += loop.vol; 64 } 65 } 66 return mlTotVol; 67 } 68 69 private int getOPPTotVol() 70 { 71 int oppTotVol = 0; 72 for(LoopDetector loop : loops) 73 { 74 if(loop.loopLocation.startsWith("OP")) 75 { 76 oppTotVol += loop.vol; 77 } 78 } 79 return oppTotVol; 54 80 } 55 81 … … 143 169 // vol and occ along with each color. Then the updateLoop call 144 170 // below could be update(dotColor.volume, dotColor.occ, speed) 145 int volume = 0;146 int occ = 0;171 int volume = 10; 172 int occ = 10; 147 173 int speed = 0; 148 174 loop.updateLoop(volume, occ, speed); -
trunk/src/tmcsim/application.properties
r103 r114 1 # Thu, 12 Oct 2017 01:19:36-07001 #Sat, 14 Oct 2017 11:10:53 -0700 2 2 3 Application.revision=1 013 Application.revision=110 4 4 5 Application.buildnumber=5 15 Application.buildnumber=52
Note: See TracChangeset
for help on using the changeset viewer.
