29typedef Domain<libsumo::CMD_GET_PERSON_VARIABLE, libsumo::CMD_SET_PERSON_VARIABLE>
Dom;
34std::vector<std::string>
47Person::getPosition(
const std::string& personID,
const bool includeZ) {
53Person::getPosition3D(
const std::string& personID) {
59Person::getAngle(
const std::string& personID) {
65Person::getSlope(
const std::string& personID) {
71Person::getSpeed(
const std::string& personID) {
77Person::getRoadID(
const std::string& personID) {
83Person::getLaneID(
const std::string& personID) {
89Person::getLanePosition(
const std::string& personID) {
94std::vector<libsumo::TraCIReservation>
95Person::getTaxiReservations(
int onlyNew) {
99 std::vector<libsumo::TraCIReservation> result;
100 int numReservations = ret.
readInt();
101 while (numReservations-- > 0) {
114 result.emplace_back(r);
121Person::splitTaxiReservation(std::string reservationID,
const std::vector<std::string>& personIDs) {
129Person::getColor(
const std::string& personID) {
135Person::getTypeID(
const std::string& personID) {
141Person::getWaitingTime(
const std::string& personID) {
147Person::getNextEdge(
const std::string& personID) {
152std::vector<std::string>
153Person::getEdges(
const std::string& personID,
int nextStageIndex) {
162Person::getStage(
const std::string& personID,
int nextStageIndex) {
171Person::getRemainingStages(
const std::string& personID) {
177Person::getVehicle(
const std::string& personID) {
183Person::getEmissionClass(
const std::string& personID) {
189Person::getShapeClass(
const std::string& personID) {
195Person::getLength(
const std::string& personID) {
201Person::getSpeedFactor(
const std::string& personID) {
207Person::getAccel(
const std::string& personID) {
213Person::getDecel(
const std::string& personID) {
218double Person::getEmergencyDecel(
const std::string& personID) {
223double Person::getApparentDecel(
const std::string& personID) {
228double Person::getActionStepLength(
const std::string& personID) {
234Person::getTau(
const std::string& personID) {
240Person::getImperfection(
const std::string& personID) {
246Person::getSpeedDeviation(
const std::string& personID) {
252Person::getVehicleClass(
const std::string& personID) {
258Person::getMinGap(
const std::string& personID) {
264Person::getMinGapLat(
const std::string& personID) {
270Person::getMaxSpeed(
const std::string& personID) {
276Person::getMaxSpeedLat(
const std::string& personID) {
282Person::getLateralAlignment(
const std::string& personID) {
288Person::getWidth(
const std::string& personID) {
294Person::getHeight(
const std::string& personID) {
300Person::getPersonCapacity(
const std::string& personID) {
309Person::setSpeed(
const std::string& personID,
double speed) {
315Person::setType(
const std::string& personID,
const std::string& typeID) {
321Person::add(
const std::string& personID,
const std::string& edgeID,
double pos,
double departInSecs,
const std::string typeID) {
346Person::replaceStage(
const std::string& personID,
const int stageIndex,
const libsumo::TraCIStage& stage) {
358Person::appendDrivingStage(
const std::string& personID,
const std::string& toEdge,
const std::string& lines,
const std::string& stopID) {
375Person::appendWaitingStage(
const std::string& personID,
double duration,
const std::string& description,
const std::string& stopID) {
392Person::appendWalkingStage(
const std::string& personID,
const std::vector<std::string>& edges,
double arrivalPos,
double duration,
double speed,
const std::string& stopID) {
413Person::removeStage(
const std::string& personID,
int nextStageIndex) {
419Person::rerouteTraveltime(
const std::string& personID) {
428Person::moveTo(
const std::string& personID,
const std::string& laneID,
double pos,
double posLat) {
443Person::moveToXY(
const std::string& personID,
const std::string& edgeID,
const double x,
const double y,
double angle,
const int keepRoute,
double matchThreshold) {
465Person::setLength(
const std::string& personID,
double length) {
471Person::setMaxSpeed(
const std::string& personID,
double speed) {
477Person::setVehicleClass(
const std::string& personID,
const std::string& clazz) {
483Person::setShapeClass(
const std::string& personID,
const std::string& clazz) {
489Person::setEmissionClass(
const std::string& personID,
const std::string& clazz) {
495Person::setWidth(
const std::string& personID,
double width) {
501Person::setHeight(
const std::string& personID,
double height) {
507Person::setMinGap(
const std::string& personID,
double minGap) {
513Person::setAccel(
const std::string& personID,
double accel) {
519Person::setDecel(
const std::string& personID,
double decel) {
525Person::setEmergencyDecel(
const std::string& personID,
double decel) {
531Person::setApparentDecel(
const std::string& personID,
double decel) {
537Person::setImperfection(
const std::string& personID,
double imperfection) {
543Person::setTau(
const std::string& personID,
double tau) {
549Person::setMinGapLat(
const std::string& personID,
double minGapLat) {
555Person::setMaxSpeedLat(
const std::string& personID,
double speed) {
561Person::setLateralAlignment(
const std::string& personID,
const std::string& latAlignment) {
567Person::setSpeedFactor(
const std::string& personID,
double factor) {
573Person::setActionStepLength(
const std::string& personID,
double actionStepLength,
bool resetActionOffset) {
574 if (!resetActionOffset) {
575 actionStepLength *= -1;
581Person::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 std::vector< std::string > readTypedStringList(tcpip::Storage &ret, 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 void writeTypedStringList(tcpip::Storage &content, const std::vector< std::string > &value)
static void writeStage(tcpip::Storage &outputStorage, const libsumo::TraCIStage &stage)
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.
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 void setInt(int var, const std::string &id, int value)
static void setString(int var, const std::string &id, const std::string &value)
static tcpip::Storage & get(int var, const std::string &id, tcpip::Storage *add=nullptr, int expectedType=libsumo::TYPE_COMPOUND)
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