Exemplo n.º 1
0
 public double GetLength(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LENGTH));
 }
 public string GetType(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_TYPE));
 }
 public Polygon GetShape(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <Polygon>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_SHAPE));
 }
Exemplo n.º 4
0
 public string GetLaneID(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LANE_ID));
 }
 public List <string> GetIdList()
 {
     return
         (TraCICommandHelper.ExecuteCommand <List <string> >(
              Client,
              "ignored",
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.ID_LIST));
 }
Exemplo n.º 6
0
 public double GetMinGapLat(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_MINGAP_LAT));
 }
Exemplo n.º 7
0
 public string GetParameter(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_PARAMETER));
 }
Exemplo n.º 8
0
 public double GetHeight(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_HEIGHT));
 }
Exemplo n.º 9
0
 public double GetAccumulatedWaitingTime(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ACCUMULATED_WAITING_TIME));
 }
Exemplo n.º 10
0
 public string GetEmissionClass(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_EMISSIONCLASS));
 }
Exemplo n.º 11
0
 public string GetShapeClass(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SHAPECLASS));
 }
Exemplo n.º 12
0
 public double GetSpeedDeviation(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_DEVIATION));
 }
Exemplo n.º 13
0
 public double GetSpeedFactor(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_FACTOR));
 }
Exemplo n.º 14
0
 public double GetImperfection(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_IMPERFECTION));
 }
Exemplo n.º 15
0
 public double GetLateralLanePosition(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LANEPOSITION_LAT));
 }
Exemplo n.º 16
0
 public int GetSpeedMode(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEEDSETMODE));
 }
Exemplo n.º 17
0
 public double GetMaxSpeedLat(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_MAXSPEED_LAT));
 }
Exemplo n.º 18
0
 public double GetAllowedSpeed(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ALLOWED_SPEED));
 }
Exemplo n.º 19
0
 public string GetLateralAlignment(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LATALIGNMENT));
 }
Exemplo n.º 20
0
 public int GetPersonNumber(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_PERSON_NUMBER));
 }
Exemplo n.º 21
0
 public double GetAngle(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ANGLE));
 }
Exemplo n.º 22
0
 public List <string> GetVia(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <List <string> >(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_VIA));
 }
Exemplo n.º 23
0
 public int GetLaneIndex(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LANE_INDEX));
 }
Exemplo n.º 24
0
 public Position3D GetPosition3D(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <Position3D>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_POSITION3D));
 }
Exemplo n.º 25
0
 public int GetIdCount()
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              "ignored",
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.ID_COUNT));
 }
Exemplo n.º 26
0
 public double GetSpeedWithoutTraCI(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_WITHOUT_TRACI));
 }
Exemplo n.º 27
0
 public Color GetColor(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <Color>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_COLOR));
 }
Exemplo n.º 28
0
 // TODO this returns bool: how does that work?
 public int IsRouteValid(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ROUTE_VALID));
 }
Exemplo n.º 29
0
 public byte GetFilled(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <byte>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_FILL));
 }
Exemplo n.º 30
0
 public byte GetStopState(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <byte>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_STOPSTATE));
 }