Exemple #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));
 }
Exemple #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));
 }
Exemple #6
0
 public double GetMinGapLat(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_MINGAP_LAT));
 }
Exemple #7
0
 public string GetParameter(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_PARAMETER));
 }
Exemple #8
0
 public double GetHeight(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_HEIGHT));
 }
Exemple #9
0
 public double GetAccumulatedWaitingTime(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ACCUMULATED_WAITING_TIME));
 }
Exemple #10
0
 public string GetEmissionClass(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_EMISSIONCLASS));
 }
Exemple #11
0
 public string GetShapeClass(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SHAPECLASS));
 }
Exemple #12
0
 public double GetSpeedDeviation(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_DEVIATION));
 }
Exemple #13
0
 public double GetSpeedFactor(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_FACTOR));
 }
Exemple #14
0
 public double GetImperfection(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_IMPERFECTION));
 }
Exemple #15
0
 public double GetLateralLanePosition(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LANEPOSITION_LAT));
 }
Exemple #16
0
 public int GetSpeedMode(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEEDSETMODE));
 }
Exemple #17
0
 public double GetMaxSpeedLat(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_MAXSPEED_LAT));
 }
Exemple #18
0
 public double GetAllowedSpeed(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ALLOWED_SPEED));
 }
Exemple #19
0
 public string GetLateralAlignment(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <string>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LATALIGNMENT));
 }
Exemple #20
0
 public int GetPersonNumber(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_PERSON_NUMBER));
 }
Exemple #21
0
 public double GetAngle(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_ANGLE));
 }
Exemple #22
0
 public List <string> GetVia(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <List <string> >(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_VIA));
 }
Exemple #23
0
 public int GetLaneIndex(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_LANE_INDEX));
 }
Exemple #24
0
 public Position3D GetPosition3D(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <Position3D>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_POSITION3D));
 }
 public int GetIdCount()
 {
     return
         (TraCICommandHelper.ExecuteCommand <int>(
              Client,
              "ignored",
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.ID_COUNT));
 }
Exemple #26
0
 public double GetSpeedWithoutTraCI(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <double>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_SPEED_WITHOUT_TRACI));
 }
 public Color GetColor(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <Color>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_COLOR));
 }
Exemple #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));
 }
 public byte GetFilled(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <byte>(
              Client,
              id,
              TraCIConstants.CMD_GET_POLYGON_VARIABLE,
              TraCIConstants.VAR_FILL));
 }
Exemple #30
0
 public byte GetStopState(string id)
 {
     return
         (TraCICommandHelper.ExecuteCommand <byte>(
              Client,
              id,
              TraCIConstants.CMD_GET_VEHICLE_VARIABLE,
              TraCIConstants.VAR_STOPSTATE));
 }