public class Person
extends Object
Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
add(String personID,
String edgeID,
double pos,
int depart,
String typeID)
Inserts a new person to the simulation at the given edge, position and
time (in s).
|
static SumoCommand |
appendDrivingStage(String personID,
String toEdge,
String lines,
String stopID)
Appends a driving stage to the plan of the given person
The lines parameter should be a space-separated list of line ids
|
static SumoCommand |
appendWaitingStage(String personID,
int duration,
String description,
String stopID)
Appends a waiting stage with duration in s to the plan of the given person
|
static SumoCommand |
appendWalkingStage(String personID,
SumoStringList edges,
double arrivalPos,
int duration,
double speed,
String stopID)
Appends a walking stage to the plan of the given person
The walking speed can either be specified, computed from the duration parameter (in s) or taken from the type of the person
|
static SumoCommand |
getAngle(String personID)
get angle
|
static SumoCommand |
getColor(String personID)
get lane position
|
static SumoCommand |
getEdges(String personID)
get edges
|
static SumoCommand |
getEdges(String personID,
int nextStageIndex)
get edges
|
static SumoCommand |
getIDCount()
Returns the number of all persons in the network.
|
static SumoCommand |
getIDList()
Returns a list of personIDs of all persons
|
static SumoCommand |
getLanePosition(String personID)
get lane position
|
static SumoCommand |
getLength(String personID)
get length
|
static SumoCommand |
getMinGap(String personID)
get minGap
|
static SumoCommand |
getNextEdge(String personID)
get next edge
|
static SumoCommand |
getParameter(String personID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getPersonNumber(String personID)
get person number
|
static SumoCommand |
getPosition(String personID)
get position
|
static SumoCommand |
getPosition3D(String personID)
get position3D
|
static SumoCommand |
getRemainingStages(String personID)
get remaining stages
|
static SumoCommand |
getRoadID(String personID)
get road ID
|
static SumoCommand |
getSpeed(String personID)
get speed
|
static SumoCommand |
getStage(String personID,
int nextStageIndex)
get stage
|
static SumoCommand |
getTypeID(String personID)
get type ID
|
static SumoCommand |
getVehicle(String personID)
get vehicle
|
static SumoCommand |
getWaitingTime(String personID)
get waiting time
|
static SumoCommand |
getWidth(String personID)
get width
|
static SumoCommand |
moveToXY(String personID,
String edgeID,
double x,
double y,
double angle,
byte keepRoute)
Place person at the given x,y coordinates and force it's angle to
the given value (for drawing).
|
static SumoCommand |
removeStage(String personID,
int nextStageIndex)
Removes the nth next stage
nextStageIndex must be lower then value of getRemainingStages(personID)
nextStageIndex 0 immediately aborts the current stage and proceeds to the next stage
|
static SumoCommand |
rerouteTraveltime(String personID)
rerouteTraveltime
Computes a new route for the person using the global edge traveltime information.
|
static SumoCommand |
setColor(String personID,
SumoColor color)
sets color for person with the given ID.
|
static SumoCommand |
setHeight(String personID,
double height)
Sets the height in m for this person.
|
static SumoCommand |
setLength(String personID,
double length)
Sets the length in m for the given person.
|
static SumoCommand |
setMinGap(String personID,
double minGap)
Sets the offset (gap to front person if halting) for this vehicle.
|
static SumoCommand |
setSpeed(String personID,
double speed)
Sets the maximum speed in m/s for the named person for subsequent step.
|
static SumoCommand |
setType(String personID,
String typeID)
Sets the id of the type for the named person.
|
static SumoCommand |
setWidth(String personID,
double width)
Sets the width in m for this person.
|
public static SumoCommand add(String personID, String edgeID, double pos, int depart, String typeID)
personID
- a string personIDentifying the personedgeID
- edgeIDpos
- posdepart
- departtypeID
- typeIDpublic static SumoCommand appendWaitingStage(String personID, int duration, String description, String stopID)
personID
- a string personIDentifying the personduration
- durationdescription
- descriptionstopID
- stopIDpublic static SumoCommand appendWalkingStage(String personID, SumoStringList edges, double arrivalPos, int duration, double speed, String stopID)
personID
- a string personIDentifying the personedges
- edgesarrivalPos
- arrivalPosduration
- durationspeed
- speedstopID
- stopIDpublic static SumoCommand appendDrivingStage(String personID, String toEdge, String lines, String stopID)
personID
- a string personIDentifying the persontoEdge
- toEdgelines
- linesstopID
- stopIDpublic static SumoCommand removeStage(String personID, int nextStageIndex)
personID
- a string personIDentifying the personnextStageIndex
- nextStageIndexpublic static SumoCommand setSpeed(String personID, double speed)
personID
- a string personIDentifying the personspeed
- speedpublic static SumoCommand setType(String personID, String typeID)
personID
- a string personIDentifying the persontypeID
- typeIDpublic static SumoCommand setWidth(String personID, double width)
personID
- a string personIDentifying the personwidth
- widthpublic static SumoCommand setHeight(String personID, double height)
personID
- a string personIDentifying the personheight
- heightpublic static SumoCommand setLength(String personID, double length)
personID
- a string personIDentifying the personlength
- lengthpublic static SumoCommand setMinGap(String personID, double minGap)
personID
- a string personIDentifying the personminGap
- minGappublic static SumoCommand setColor(String personID, SumoColor color)
personID
- a string personIDentifying the personcolor
- colorpublic static SumoCommand getColor(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getLength(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getWaitingTime(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getWidth(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getNextEdge(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getEdges(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getEdges(String personID, int nextStageIndex)
personID
- a string personIDentifying the personnextStageIndex
- public static SumoCommand getStage(String personID, int nextStageIndex)
personID
- a string personIDentifying the personnextStageIndex
- public static SumoCommand getRemainingStages(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getVehicle(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getLanePosition(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getIDCount()
public static SumoCommand getIDList()
public static SumoCommand getParameter(String personID, String param)
personID
- a string personIDentifying the personparam
- a string personIDentifying the parameterpublic static SumoCommand getSpeed(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getPosition(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getPosition3D(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getAngle(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getRoadID(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getTypeID(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getPersonNumber(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand getMinGap(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand rerouteTraveltime(String personID)
personID
- a string personIDentifying the personpublic static SumoCommand moveToXY(String personID, String edgeID, double x, double y, double angle, byte keepRoute)
personID
- person idedgeID
- edge idx
- xy
- yangle
- anglekeepRoute
- keepRoute