A basic simulated Person.
|
__getstate__(self)
Returns Person information for pickling using the pickle module. |
source code
|
|
|
|
|
|
|
|
|
calculate_duration(self)
Calculate the time needed for walking to the next node. |
source code
|
|
|
call_stop_actions(self)
Sets stop_all_actions und interrupts. |
source code
|
|
|
|
|
|
|
current_coords_impl(self)
Calculates the current position from remaining time using last_coord
and target_coord to implement road width |
source code
|
|
mosp.group.PersonGroup
|
|
|
get_properties(self)
Return all the person's properties (variables and properties p_*) as
a dictionary. |
source code
|
|
|
|
|
get_speed(self)
property speed: movement speed of the Person. |
source code
|
|
|
|
|
|
|
|
|
next_target_coord(self)
Calculates new target coordinates based on next_node coordinates plus
orthogonal to road offset defined by self.road_orthogonal_offset. |
source code
|
|
|
|
|
reactivate(self,
at=' undefined ' ,
delay=' undefined ' ,
prior=False)
Reactivates passivated person and optionally restarts stopped
actions. |
source code
|
|
|
|
|
|
|
restart_actions(self)
Restarts all actions that where stopped via stop_actions. |
source code
|
|
|
send(self,
receiver,
message,
earliest_arrival=None,
interrupt=False)
Send a message to another Person. |
source code
|
|
|
set_speed(self,
speed)
Sets movement speed of the Person. |
source code
|
|
|
start_action(self,
action)
Start an action. |
source code
|
|
|
|
|
|
|
|
Inherited from SimPy.Lib.Process :
acquired ,
active ,
cancel ,
interrupt ,
interruptReset ,
interrupted ,
passive ,
queuing ,
start ,
stored ,
terminated
Inherited from SimPy.Lib.Process (private):
_hold ,
_passivate
Inherited from SimPy.Lister.Lister :
__repr__ ,
__str__ ,
attrnames
Inherited from collide.Point :
collide_polygon ,
get_points
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
_actions
stores all actions of the Person
|
|
_duration
time to next round of go()
|
|
_location_offset
used by pause_movement as input for random offset to current position
while pausing
|
|
_messages
stores callback messages of the Person - calling back must still be
implemented (todo)
|
|
_p_speed
speed of Person
|
|
_random
random object of the Person
|
|
_start_time
the tick when this person started the current walk from last to
target node
|
|
_stopped_actions
stores stopped actions
|
|
_stopped_actions_for_removal
stores actions that were stopped when removing the person from the
simulation
|
|
current_coords
returns current coordinates of Person
|
|
current_way
current way the Person is assigned to, used for collision
|
|
dest_node
final node of current routed walk
|
|
last_coord
coordinates where current walking starts = coordinates of last_node
plus offset
|
|
last_node
node where current walking starts
|
|
need_next_target
if True, self.next_target() will be called and this will be set to
False
|
|
next_node
node where current walking stops, next node to walk to
|
|
p_color
property color id: marker color of Person - DEPRECATED, use
color_rgba instead
|
|
p_color_rgba
property color: marker color of Person as RGBA 4-tuple
|
|
p_id
property id: unique id of the Person
|
|
passivate
if true, Person is passivated on next round of go()
|
|
passivate_with_stop_actions
if True, the Person's actions are stopped when Person is passivated
|
|
remove_from_sim
if True: Person's event loop will be broken on next round of go() to
remove Person from simulation
|
|
road_orthogonal_offset
walking offset from midline for road width implementation - 2-tuple -
see next_target_coord
|
|
start_node
start node of current routed walk
|
|
stop_all_actions
if true: all Person's actions are stopped on next round of go()
|
|
target_coord
coordinates where current walking stops = coordinates of next_node
plus offset
|