- Timestamp:
- 10/05/2017 03:04:40 PM (9 years ago)
- Location:
- branches/FEPSimulator
- Files:
-
- 2 edited
- 26 copied
- 1 moved
-
. (moved) (moved from branches/fep_rpc_client)
-
DataPacker.cpp (copied) (copied from branches/fep_rpc_client/DataPacker.cpp) (3 diffs)
-
DataPacker.h (copied) (copied from branches/fep_rpc_client/DataPacker.h) (1 diff)
-
FEPClient.cpp (copied) (copied from branches/fep_rpc_client/FEPClient.cpp) (1 diff)
-
FEPClient.h (copied) (copied from branches/fep_rpc_client/FEPClient.h)
-
NetworkReader.cpp (copied) (copied from branches/fep_rpc_client/NetworkReader.cpp) (3 diffs)
-
NetworkReader.h (copied) (copied from branches/fep_rpc_client/NetworkReader.h) (2 diffs)
-
build/Debug/GNU-Linux-x86/DataPacker.o.d (copied) (copied from branches/fep_rpc_client/build/Debug/GNU-Linux-x86/DataPacker.o.d)
-
build/Debug/GNU-Linux-x86/FEPClient.o.d (copied) (copied from branches/fep_rpc_client/build/Debug/GNU-Linux-x86/FEPClient.o.d)
-
build/Debug/GNU-Linux-x86/NetworkReader.o.d (copied) (copied from branches/fep_rpc_client/build/Debug/GNU-Linux-x86/NetworkReader.o.d)
-
dist/Debug/GNU-Linux-x86/fep_rpc_client (copied) (copied from branches/fep_rpc_client/dist/Debug/GNU-Linux-x86/fep_rpc_client)
-
nbproject/Makefile-Debug.mk (copied) (copied from branches/fep_rpc_client/nbproject/Makefile-Debug.mk)
-
nbproject/Makefile-Release.mk (copied) (copied from branches/fep_rpc_client/nbproject/Makefile-Release.mk)
-
nbproject/configurations.xml (copied) (copied from branches/fep_rpc_client/nbproject/configurations.xml)
-
nbproject/private/configurations.xml (modified) (1 diff)
-
nbproject/private/private.xml (copied) (copied from branches/fep_rpc_client/nbproject/private/private.xml)
-
nbproject/project.xml (modified) (1 diff)
-
network.h (copied) (copied from branches/fep_rpc_client/network.h) (1 diff)
-
tinyxml/tinystr.cpp (copied) (copied from branches/fep_rpc_client/tinyxml/tinystr.cpp)
-
tinyxml/tinystr.o (copied) (copied from branches/fep_rpc_client/tinyxml/tinystr.o)
-
tinyxml/tinyxml.a (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxml.a)
-
tinyxml/tinyxml.cpp (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxml.cpp)
-
tinyxml/tinyxml.o (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxml.o)
-
tinyxml/tinyxmlerror.cpp (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxmlerror.cpp)
-
tinyxml/tinyxmlerror.o (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxmlerror.o)
-
tinyxml/tinyxmlparser.cpp (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxmlparser.cpp)
-
tinyxml/tinyxmlparser.o (copied) (copied from branches/fep_rpc_client/tinyxml/tinyxmlparser.o)
-
tinyxml/xmltest.cpp (copied) (copied from branches/fep_rpc_client/tinyxml/xmltest.cpp)
-
tinyxml/xmltest.o (copied) (copied from branches/fep_rpc_client/tinyxml/xmltest.o)
Legend:
- Unmodified
- Added
- Removed
-
branches/FEPSimulator/DataPacker.cpp
r79 r80 3 3 unsigned char * DataPacker::msg; 4 4 5 unsigned char * DataPacker::packData( LDS_LOOP*station) {5 unsigned char * DataPacker::packData(STATION *station) { 6 6 int pos = 26; 7 7 DataPacker packer; … … 38 38 } 39 39 40 int DataPacker::dynamicDataPack( LDS_LOOP*station, int packNo, int pos) {40 int DataPacker::dynamicDataPack(STATION *station, int packNo, int pos) { 41 41 int i, j, vol, occ, haveData; 42 42 //used for data byte 23 and 24 … … 85 85 } 86 86 87 unsigned char * DataPacker::staticDataPack( LDS_LOOP*station) {87 unsigned char * DataPacker::staticDataPack(STATION *station) { 88 88 int j; 89 89 // Allocate memory for dataPack -
branches/FEPSimulator/DataPacker.h
r79 r80 27 27 * @return The packed data message 28 28 */ 29 static unsigned char * packData( LDS_LOOP*station);29 static unsigned char * packData(STATION *station); 30 30 31 31 private: 32 32 static unsigned char *msg; 33 33 // Packs the static data in message sent to ATMS 34 unsigned char * staticDataPack( LDS_LOOP*station);34 unsigned char * staticDataPack(STATION *station); 35 35 // Packs dynamic data in message sent to ATMS 36 int dynamicDataPack( LDS_LOOP*station, int packNo, int pos);36 int dynamicDataPack(STATION *station, int packNo, int pos); 37 37 // Sets last byte of message 38 38 char chksum(unsigned char *dataptr, int len); -
branches/FEPSimulator/FEPClient.cpp
r79 r80 43 43 44 44 vector<FEP_LINE*> lines = networkReader->getLines(); 45 vector< LDS_LOOP*> ldsMap = networkReader->getStations();45 vector<STATION*> ldsMap = networkReader->getStations(); 46 46 47 47 // Send one reply for every "line" in the FEP -
branches/FEPSimulator/NetworkReader.cpp
r79 r80 29 29 30 30 /** 31 * Parses a station xml element into an " LDS_LOOP"31 * Parses a station xml element into an "STATION" 32 32 * 33 33 * @param stationElem the station xml element … … 35 35 * @return the new station 36 36 */ 37 LDS_LOOP* NetworkReader::parseStation(TiXmlElement *stationElem, FEP_LINE *line) {38 LDS_LOOP *station = new LDS_LOOP;37 STATION * NetworkReader::parseStation(TiXmlElement *stationElem, FEP_LINE *line) { 38 STATION *station = new STATION; 39 39 40 40 TiXmlElement *stationSubElem = stationElem->FirstChildElement(); … … 140 140 /** 141 141 * Getter for stations 142 * @return List of LDS_LOOPs142 * @return List of STATIONs 143 143 */ 144 vector< LDS_LOOP*> NetworkReader::getStations() {144 vector<STATION*> NetworkReader::getStations() { 145 145 146 146 return stations; -
branches/FEPSimulator/NetworkReader.h
r79 r80 6 6 * 7 7 * A NetworkReader contains two public methods 'getLines' and 'getLoops', 8 * which are getters for the list of FEP_LINES, and LDS_LOOPS, respectively.8 * which are getters for the list of FEP_LINES, and STATIONS, respectively. 9 9 * 10 10 * Example XML file: … … 65 65 66 66 vector<FEP_LINE*> getLines(); // Getter for FEP_LINE list 67 vector< LDS_LOOP*> getStations(); // Getter for LDS_LOOPlist67 vector<STATION*> getStations(); // Getter for STATION list 68 68 private: 69 69 vector<FEP_LINE*> lines; 70 vector< LDS_LOOP*> stations;70 vector<STATION*> stations; 71 71 int ldsIndex; 72 72 73 73 void loadLines(const char * networkFileName); 74 74 LOOP * parseLoop(TiXmlElement * loopElem); 75 LDS_LOOP* parseStation(TiXmlElement *stationElem, FEP_LINE *line);75 STATION * parseStation(TiXmlElement *stationElem, FEP_LINE *line); 76 76 FEP_LINE * parseLine(TiXmlElement *lineElem); 77 77 }; -
branches/FEPSimulator/nbproject/private/configurations.xml
r78 r80 14 14 <gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/> 15 15 </gdb_interceptlist> 16 <gdb_signals>17 </gdb_signals>18 16 <gdb_options> 19 17 <DebugOptions> -
branches/FEPSimulator/nbproject/project.xml
r77 r80 4 4 <configuration> 5 5 <data xmlns="http://www.netbeans.org/ns/make-project/1"> 6 <name> fep_rpc_client</name>6 <name>FEPSimulator</name> 7 7 <c-extensions>c</c-extensions> 8 8 <cpp-extensions>cpp</cpp-extensions> -
branches/FEPSimulator/network.h
r79 r80 50 50 51 51 // Loop detector station: has several loops 52 typedef struct Lds_loop LDS_LOOP;53 struct Lds_loop52 typedef struct Station STATION; 53 struct Station 54 54 { 55 55 // Each lds has its own line_num and drop (Caltrans use)
Note: See TracChangeset
for help on using the changeset viewer.
