1 | /* |
---|
2 | */ |
---|
3 | |
---|
4 | /* Class definition */ |
---|
5 | #include "aimsun_fake.h" |
---|
6 | |
---|
7 | AimsunDS::AimsunDS() : DS() |
---|
8 | { |
---|
9 | |
---|
10 | /* Description of the channels of the data vector. */ |
---|
11 | Drv = RV ( "{" |
---|
12 | "495_VA 495_VB 495_VC 495_VD 495_VE 495_VF " |
---|
13 | "495_QA 495_QB 495_QC 495_QD 495_QE 495_QF " |
---|
14 | "495_DVA 495_DVB 495_DVA1 495_DVB1 495_DVC 495_DVD 495_DVE 495_DVF 495_DVF1 " |
---|
15 | "495_S1 495_S2 495_S3 495_S4 495_S5 495_S5a " |
---|
16 | "601_VA 601_VB 601_VC 601_VD 601_VE 601_SE " |
---|
17 | "601_QA 601_QB 601_QC 601_QD 601_QE 601_QSE " |
---|
18 | "601_DVA 601_DVAa 601_DVB 601_DVBa 601_DVB1 601_DVC 601_DVD 601_DVD1 601_DSE 601_DVE 601_DSE1 601_DVE1 " |
---|
19 | "601_S6 601_S6a 601_S7 601_S8 601_S9 601_S9a " |
---|
20 | "}", |
---|
21 | " 1, 1, 1, 1, 1, 1, " |
---|
22 | " 1, 1, 1, 1, 1, 1, " |
---|
23 | " 2, 2, 2, 2, 2, 2, 2, 2, 2," |
---|
24 | " 2, 2, 2, 2, 2, 2," |
---|
25 | " 1, 1, 1, 1, 1, 1, " |
---|
26 | " 1, 1, 1, 1, 1, 1, " |
---|
27 | " 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2," |
---|
28 | " 2, 2, 2, 2, 2, 2" |
---|
29 | ); |
---|
30 | /* Remember the size of the data vector. */ |
---|
31 | dtsize = Drv._dsize(); |
---|
32 | |
---|
33 | /* Description of the channels of the input vector. */ |
---|
34 | Urv = RV ( "{" |
---|
35 | "Tc" |
---|
36 | "495_offset" |
---|
37 | "495_VA 495_VB 495_VC 495_VD 495_VE 495_VF " |
---|
38 | "601_offset" |
---|
39 | "601_VA 601_VB 601_VC 601_VD 601_VE 601_SE " |
---|
40 | "}" ); |
---|
41 | /* Remember the size of the input vector. */ |
---|
42 | utsize = Urv._dsize(); |
---|
43 | // set_log_level(0); |
---|
44 | } |
---|
45 | |
---|
46 | void AimsunDS::getdata ( vec &dt ) const |
---|
47 | { |
---|
48 | dt = linspace(0.0,double(dtsize),dtsize); |
---|
49 | } |
---|
50 | |
---|
51 | |
---|
52 | void AimsunDS::write ( vec &ut ) |
---|
53 | { |
---|
54 | } |
---|
55 | |
---|
56 | |
---|
57 | void AimsunDS::step() |
---|
58 | { |
---|
59 | |
---|
60 | } |
---|