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) {
100 std::vector<libsumo::TraCIReservation> result;
101 int numReservations = ret.
readInt();
102 while (numReservations-- > 0) {
115 result.emplace_back(r);
122Person::splitTaxiReservation(std::string reservationID,
const std::vector<std::string>& personIDs) {
130Person::getColor(
const std::string& personID) {
136Person::getTypeID(
const std::string& personID) {
142Person::getWaitingTime(
const std::string& personID) {
148Person::getNextEdge(
const std::string& personID) {
153std::vector<std::string>
154Person::getEdges(
const std::string& personID,
int nextStageIndex) {
163Person::getStage(
const std::string& personID,
int nextStageIndex) {
172Person::getRemainingStages(
const std::string& personID) {
178Person::getVehicle(
const std::string& personID) {
184Person::getEmissionClass(
const std::string& personID) {
190Person::getShapeClass(
const std::string& personID) {
196Person::getLength(
const std::string& personID) {
202Person::getSpeedFactor(
const std::string& personID) {
208Person::getAccel(
const std::string& personID) {
214Person::getDecel(
const std::string& personID) {
219double Person::getEmergencyDecel(
const std::string& personID) {
224double Person::getApparentDecel(
const std::string& personID) {
229double Person::getActionStepLength(
const std::string& personID) {
235Person::getTau(
const std::string& personID) {
241Person::getImperfection(
const std::string& personID) {
247Person::getSpeedDeviation(
const std::string& personID) {
253Person::getVehicleClass(
const std::string& personID) {
259Person::getMinGap(
const std::string& personID) {
265Person::getMinGapLat(
const std::string& personID) {
271Person::getMaxSpeed(
const std::string& personID) {
277Person::getMaxSpeedLat(
const std::string& personID) {
283Person::getLateralAlignment(
const std::string& personID) {
289Person::getWidth(
const std::string& personID) {
295Person::getHeight(
const std::string& personID) {
301Person::getMass(
const std::string& personID) {
307Person::getPersonCapacity(
const std::string& personID) {
313Person::getBoardingDuration(
const std::string& personID) {
318Person::getImpatience(
const std::string& personID) {
328Person::setSpeed(
const std::string& personID,
double speed) {
334Person::setType(
const std::string& personID,
const std::string& typeID) {
340Person::setImpatience(
const std::string& personID,
double impatience) {
345Person::setBoardingDuration(
const std::string& personID,
double boardingDuration) {
350Person::add(
const std::string& personID,
const std::string& edgeID,
double pos,
double departInSecs,
const std::string typeID) {
375Person::replaceStage(
const std::string& personID,
const int stageIndex,
const libsumo::TraCIStage& stage) {
387Person::appendDrivingStage(
const std::string& personID,
const std::string& toEdge,
const std::string& lines,
const std::string& stopID) {
404Person::appendWaitingStage(
const std::string& personID,
double duration,
const std::string& description,
const std::string& stopID) {
421Person::appendWalkingStage(
const std::string& personID,
const std::vector<std::string>& edges,
double arrivalPos,
double duration,
double speed,
const std::string& stopID) {
442Person::removeStage(
const std::string& personID,
int nextStageIndex) {
448Person::rerouteTraveltime(
const std::string& personID) {
457Person::moveTo(
const std::string& personID,
const std::string& laneID,
double pos,
double posLat) {
472Person::moveToXY(
const std::string& personID,
const std::string& edgeID,
const double x,
const double y,
double angle,
const int keepRoute,
double matchThreshold) {
494Person::setLength(
const std::string& personID,
double length) {
500Person::setMaxSpeed(
const std::string& personID,
double speed) {
506Person::setVehicleClass(
const std::string& personID,
const std::string& clazz) {
512Person::setShapeClass(
const std::string& personID,
const std::string& clazz) {
518Person::setEmissionClass(
const std::string& personID,
const std::string& clazz) {
524Person::setWidth(
const std::string& personID,
double width) {
530Person::setHeight(
const std::string& personID,
double height) {
536Person::setMass(
const std::string& personID,
double mass) {
542Person::setMinGap(
const std::string& personID,
double minGap) {
548Person::setAccel(
const std::string& personID,
double accel) {
554Person::setDecel(
const std::string& personID,
double decel) {
560Person::setEmergencyDecel(
const std::string& personID,
double decel) {
566Person::setApparentDecel(
const std::string& personID,
double decel) {
572Person::setImperfection(
const std::string& personID,
double imperfection) {
578Person::setTau(
const std::string& personID,
double tau) {
584Person::setMinGapLat(
const std::string& personID,
double minGapLat) {
590Person::setMaxSpeedLat(
const std::string& personID,
double speed) {
596Person::setLateralAlignment(
const std::string& personID,
const std::string& latAlignment) {
602Person::setSpeedFactor(
const std::string& personID,
double factor) {
608Person::setActionStepLength(
const std::string& personID,
double actionStepLength,
bool resetActionOffset) {
609 if (!resetActionOffset) {
610 actionStepLength *= -1;
616Person::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 Connection & getActive()
std::mutex & getMutex() const
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_IMPATIENCE
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_BOARDING_DURATION
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
A 2D or 3D-position, for 2D positions z == INVALID_DOUBLE_VALUE.