Package mosp :: Module monitors :: Class PipePlayerMonitor
[hide private]
[frames] | no frames]

Class PipePlayerMonitor

source code


This monitor writes person movement data via struct to stdout.

Output is created for piping in player.py.

Usage example: python random_wiggler.py | python player.py


Author: B. Henne

Instance Methods [hide private]
 
init(self)
Prints init values for player.py to stdout and activates monitor process.
source code
 
observe(self)
Prints person ids and coordinates to stdout.
source code

Inherited from EmptyMonitor: __init__, center_on_lat_lon, draw_circle, draw_point, draw_rectangle, draw_text, end, remove_object

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 list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]
  FORMAT = '<BIII'
struct.pack format of Person information
  FORMAT_LEN = 13
length of FORMAT in bytes
  start_tick = 0
monitor starts with this tick

Inherited from SimPy.Lister.Lister: indent

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self)

source code 

Prints init values for player.py to stdout and activates monitor process.

Overrides: EmptyMonitor.init

observe(self)

source code 

Prints person ids and coordinates to stdout.

Overrides: EmptyMonitor.observe