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