29 typedef Domain<libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_SET_PERSON_VARIABLE>
Dom;
34 std::vector<std::string>
41 Person::getIDCount() {
47 Person::getPosition(
const std::string& personID,
const bool includeZ) {
53 Person::getPosition3D(
const std::string& personID) {
59 Person::getAngle(
const std::string& personID) {
65 Person::getSlope(
const std::string& personID) {
71 Person::getSpeed(
const std::string& personID) {
77 Person::getRoadID(
const std::string& personID) {
83 Person::getLaneID(
const std::string& personID) {
89 Person::getLanePosition(
const std::string& personID) {
94 std::vector<libsumo::TraCIReservation>
95 Person::getTaxiReservations(
int onlyNew) {
99 std::vector<libsumo::TraCIReservation> result;
100 int numReservations = ret.
readInt();
101 while (numReservations-- > 0) {
114 result.emplace_back(r);
121 Person::splitTaxiReservation(std::string reservationID,
const std::vector<std::string>& personIDs) {
129 Person::getColor(
const std::string& personID) {
135 Person::getTypeID(
const std::string& personID) {
141 Person::getWaitingTime(
const std::string& personID) {
147 Person::getNextEdge(
const std::string& personID) {
152 std::vector<std::string>
153 Person::getEdges(
const std::string& personID,
int nextStageIndex) {
162 Person::getStage(
const std::string& personID,
int nextStageIndex) {
171 Person::getRemainingStages(
const std::string& personID) {
177 Person::getVehicle(
const std::string& personID) {
183 Person::getEmissionClass(
const std::string& personID) {
189 Person::getShapeClass(
const std::string& personID) {
195 Person::getLength(
const std::string& personID) {
201 Person::getSpeedFactor(
const std::string& personID) {
207 Person::getAccel(
const std::string& personID) {
213 Person::getDecel(
const std::string& personID) {
218 double Person::getEmergencyDecel(
const std::string& personID) {
223 double Person::getApparentDecel(
const std::string& personID) {
228 double Person::getActionStepLength(
const std::string& personID) {
234 Person::getTau(
const std::string& personID) {
240 Person::getImperfection(
const std::string& personID) {
246 Person::getSpeedDeviation(
const std::string& personID) {
252 Person::getVehicleClass(
const std::string& personID) {
258 Person::getMinGap(
const std::string& personID) {
264 Person::getMinGapLat(
const std::string& personID) {
270 Person::getMaxSpeed(
const std::string& personID) {
276 Person::getMaxSpeedLat(
const std::string& personID) {
282 Person::getLateralAlignment(
const std::string& personID) {
288 Person::getWidth(
const std::string& personID) {
294 Person::getHeight(
const std::string& personID) {
300 Person::getPersonCapacity(
const std::string& personID) {
309 Person::setSpeed(
const std::string& personID,
double speed) {
315 Person::setType(
const std::string& personID,
const std::string& typeID) {
321 Person::add(
const std::string& personID,
const std::string& edgeID,
double pos,
double departInSecs,
const std::string typeID) {
373 writeStage(stage, content);
379 Person::replaceStage(
const std::string& personID,
const int stageIndex,
const libsumo::TraCIStage& stage) {
385 writeStage(stage, content);
391 Person::appendDrivingStage(
const std::string& personID,
const std::string& toEdge,
const std::string& lines,
const std::string& stopID) {
408 Person::appendWaitingStage(
const std::string& personID,
double duration,
const std::string& description,
const std::string& stopID) {
425 Person::appendWalkingStage(
const std::string& personID,
const std::vector<std::string>& edges,
double arrivalPos,
double duration,
double speed,
const std::string& stopID) {
446 Person::removeStage(
const std::string& personID,
int nextStageIndex) {
452 Person::rerouteTraveltime(
const std::string& personID) {
461 Person::moveTo(
const std::string& personID,
const std::string& edgeID,
double position) {
474 Person::moveToXY(
const std::string& personID,
const std::string& edgeID,
const double x,
const double y,
double angle,
const int keepRoute,
double matchThreshold) {
496 Person::setLength(
const std::string& personID,
double length) {
502 Person::setMaxSpeed(
const std::string& personID,
double speed) {
508 Person::setVehicleClass(
const std::string& personID,
const std::string& clazz) {
514 Person::setShapeClass(
const std::string& personID,
const std::string& clazz) {
520 Person::setEmissionClass(
const std::string& personID,
const std::string& clazz) {
526 Person::setWidth(
const std::string& personID,
double width) {
532 Person::setHeight(
const std::string& personID,
double height) {
538 Person::setMinGap(
const std::string& personID,
double minGap) {
544 Person::setAccel(
const std::string& personID,
double accel) {
550 Person::setDecel(
const std::string& personID,
double decel) {
556 Person::setEmergencyDecel(
const std::string& personID,
double decel) {
562 Person::setApparentDecel(
const std::string& personID,
double decel) {
568 Person::setImperfection(
const std::string& personID,
double imperfection) {
574 Person::setTau(
const std::string& personID,
double tau) {
580 Person::setMinGapLat(
const std::string& personID,
double minGapLat) {
586 Person::setMaxSpeedLat(
const std::string& personID,
double speed) {
592 Person::setLateralAlignment(
const std::string& personID,
const std::string& latAlignment) {
598 Person::setSpeedFactor(
const std::string& personID,
double factor) {
604 Person::setActionStepLength(
const std::string& personID,
double actionStepLength,
bool resetActionOffset) {
605 if (!resetActionOffset) {
606 actionStepLength *= -1;
612 Person::remove(
const std::string& personID,
char reason) {
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
C++ TraCI client API implementation.
static void writeTypedDouble(tcpip::Storage &content, double value)
static int readCompound(tcpip::Storage &ret, int expectedSize=-1, const std::string &error="")
static int readTypedInt(tcpip::Storage &ret, const std::string &error="")
static std::string readTypedString(tcpip::Storage &ret, const std::string &error="")
static void writeTypedInt(tcpip::Storage &content, int value)
static std::vector< std::string > readTypedStringList(tcpip::Storage &ret, const std::string &error="")
static void writeTypedStringList(tcpip::Storage &content, const std::vector< std::string > &value)
static double readTypedDouble(tcpip::Storage &ret, const std::string &error="")
double departPos
pickup position on the origin edge
double reservationTime
time when the reservation was made
double arrivalPos
drop-off position on the destination edge
std::vector< std::string > persons
The persons ids that are part of this reservation.
int state
the state of this reservation
std::string fromEdge
The origin edge id.
std::string group
The group id of this reservation.
std::string id
The id of the taxi reservation (usable for traci.vehicle.dispatchTaxi)
std::string toEdge
The destination edge id.
std::string intended
id of the intended vehicle for public transport ride
int type
The type of stage (walking, driving, ...)
std::string destStop
The id of the destination stop.
double travelTime
duration of the stage in seconds
double departPos
position on the lane when starting the stage
std::string description
arbitrary description string
std::string line
The line or the id of the vehicle type.
double depart
intended depart time for public transport ride or INVALID_DOUBLE_VALUE
std::vector< std::string > edges
The sequence of edges to travel.
double arrivalPos
position on the lane when ending the stage
std::string vType
The vehicle type when using a private car or bike.
static void setDouble(int var, const std::string &id, double value)
static libsumo::TraCIPosition getPos(int var, const std::string &id, tcpip::Storage *add=nullptr, const bool isGeo=false)
static void setCol(int var, const std::string &id, const libsumo::TraCIColor value)
static std::vector< std::string > getStringVector(int var, const std::string &id, tcpip::Storage *add=nullptr)
static libsumo::TraCIColor getCol(int var, const std::string &id, tcpip::Storage *add=nullptr)
static std::string getString(int var, const std::string &id, tcpip::Storage *add=nullptr)
static int getInt(int var, const std::string &id, tcpip::Storage *add=nullptr)
static libsumo::TraCIStage getTraCIStage(int var, const std::string &id, tcpip::Storage *add=nullptr)
static void set(int var, const std::string &id, tcpip::Storage *add)
static libsumo::TraCIPosition getPos3D(int var, const std::string &id, tcpip::Storage *add=nullptr, const bool isGeo=false)
static double getDouble(int var, const std::string &id, tcpip::Storage *add=nullptr)
static tcpip::Storage & get(int var, const std::string &id, tcpip::Storage *add=nullptr, int expectedType=libsumo::TYPE_COMPOUND)
static void setInt(int var, const std::string &id, int value)
static void setString(int var, const std::string &id, const std::string &value)
virtual void writeString(const std::string &s)
virtual void writeInt(int)
virtual void writeDouble(double)
virtual void writeStringList(const std::vector< std::string > &s)
virtual void writeUnsignedByte(int)
virtual void writeByte(int)
TRACI_CONST int VAR_EDGES
TRACI_CONST int VAR_VEHICLECLASS
TRACI_CONST int TRACI_ID_LIST
TRACI_CONST int VAR_LATALIGNMENT
TRACI_CONST int VAR_MINGAP
TRACI_CONST int VAR_VEHICLE
TRACI_CONST int VAR_SHAPECLASS
TRACI_CONST int VAR_WAITING_TIME
TRACI_CONST int REPLACE_STAGE
TRACI_CONST int VAR_ROAD_ID
TRACI_CONST int VAR_TAXI_RESERVATIONS
TRACI_CONST int VAR_ACTIONSTEPLENGTH
TRACI_CONST int VAR_SPEED_FACTOR
TRACI_CONST int MOVE_TO_XY
TRACI_CONST int VAR_ANGLE
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int VAR_STAGE
TRACI_CONST int VAR_MOVE_TO
TRACI_CONST int VAR_COLOR
TRACI_CONST int VAR_POSITION
TRACI_CONST int VAR_WIDTH
TRACI_CONST int VAR_PERSON_CAPACITY
TRACI_CONST int VAR_MAXSPEED
TRACI_CONST int STAGE_WAITING
TRACI_CONST int CMD_REROUTE_TRAVELTIME
TRACI_CONST int TYPE_STRINGLIST
TRACI_CONST int APPEND_STAGE
TRACI_CONST int TYPE_INTEGER
TRACI_CONST int VAR_SLOPE
TRACI_CONST int VAR_LENGTH
TRACI_CONST int VAR_MAXSPEED_LAT
TRACI_CONST int VAR_LANEPOSITION
TRACI_CONST int VAR_LANE_ID
TRACI_CONST int VAR_IMPERFECTION
TRACI_CONST int VAR_HEIGHT
TRACI_CONST int VAR_APPARENT_DECEL
TRACI_CONST int STAGE_WALKING
TRACI_CONST int VAR_POSITION3D
TRACI_CONST int REMOVE_STAGE
TRACI_CONST int VAR_SPEED
TRACI_CONST int VAR_DECEL
TRACI_CONST int VAR_MINGAP_LAT
TRACI_CONST int VAR_NEXT_EDGE
TRACI_CONST int TYPE_DOUBLE
TRACI_CONST int TYPE_BYTE
TRACI_CONST int VAR_EMERGENCY_DECEL
TRACI_CONST int STAGE_DRIVING
TRACI_CONST int VAR_EMISSIONCLASS
TRACI_CONST int VAR_ACCEL
TRACI_CONST int VAR_STAGES_REMAINING
TRACI_CONST int SPLIT_TAXI_RESERVATIONS
TRACI_CONST int VAR_SPEED_DEVIATION
TRACI_CONST int TYPE_STRING
Domain< libsumo::CMD_GET_BUSSTOP_VARIABLE, libsumo::CMD_SET_BUSSTOP_VARIABLE > Dom