source: proiecte/ptvs/src/vnsim/network/scft/MesageSCFT.java @ 31

Last change on this file since 31 was 31, checked in by (none), 14 years ago
File size: 2.4 KB
Line 
1package vnsim.network.scft;
2
3/**
4 * @author Serban George-Cristian Structura mesajului
5 */
6
7public class MesageSCFT {
8
9        public int vehicleIdSource;
10        public int vehicleIdDest;
11        public long carIdSourceH;
12        public long carIdSourceV;
13        public long carIdDestH;
14        public long carIdDestV;
15        public long timeStamp;
16        public int ttl;
17
18
19        /**
20         *
21         * @param vehicleIdSource
22         *            - id vehicul sursa
23         * @param vehicleIdDest
24         *            - id vehicul destinatie
25         * @param carIDSourceH
26         *            - pozitia orizontala a vehicului sursa
27         * @param carlIdSourceV
28         *            - pozitia verticala a vehicului sursa
29         * @param carlIdDestH
30         *            - pozitia orizontala a vehicului destinatie
31         * @param carlIdDestV
32         *            - pozitia verticala a vehicului destinatie
33         * @param timeStamp
34         *            - timpul de sosire a mesajului - secunde
35         * @param TTL
36         *            - TTL definit
37         */
38        public MesageSCFT(int vehicleIdSource, int vehicleIdDest, long carIdSourceH, long carlIdSourceV,
39                        long carIdDestH,        long carIdDestV, long timeStamp, int ttl) {
40                this.vehicleIdSource = vehicleIdSource;
41                this.vehicleIdDest = vehicleIdDest;
42                this.carIdSourceH = carIdSourceH;
43                this.carIdSourceV = carlIdSourceV;
44                this.carIdDestH = carIdDestH;
45                this.carIdDestV = carIdDestV;
46                this.timeStamp = timeStamp;
47                this.ttl = ttl;
48
49        }
50
51        public long getTimeStamp() {
52                return timeStamp;
53        }
54
55        public void setTimeStamp(int timeStamp) {
56                this.timeStamp = timeStamp;
57        }
58
59        public int getVehicleIdSource() {
60                return vehicleIdSource;
61        }
62
63        public void setVehicleIdSource(int vehicleIdSource) {
64                this.vehicleIdSource = vehicleIdSource;
65        }
66
67        public int getVehicleIdDest() {
68                return vehicleIdDest;
69        }
70
71        public void setVehicleIdDest(int vehicleIdDest) {
72                this.vehicleIdDest = vehicleIdDest;
73        }
74
75        public long getCarIdSourceH() {
76                return carIdSourceH;
77        }
78
79        public void setCarIdSourceH(int carIdSourceH) {
80                this.carIdSourceH = carIdSourceH;
81        }
82
83        public long getCarIdSourceV() {
84                return carIdSourceV;
85        }
86
87        public void setCarIdSourceV(int carIdSourceV) {
88                this.carIdSourceV = carIdSourceV;
89        }
90
91        public long getCarIdDestH() {
92                return carIdDestH;
93        }
94
95        public void setCarIdDestH(int carIdDestH) {
96                this.carIdDestH = carIdDestH;
97        }
98
99        public long getCarIdDestV() {
100                return carIdDestV;
101        }
102
103        public void setCarIdDestV(int carIdDestV) {
104                this.carIdDestV = carIdDestV;
105        }
106
107        public int getTtl() {
108                return ttl;
109        }
110
111        public void setTtl(int ttl) {
112                this.ttl = ttl;
113        }
114
115}
Note: See TracBrowser for help on using the repository browser.