Package mosp :: Module locations :: Class Location
[hide private]
[frames] | no frames]

Class Location

source code


A real-world location a Person can visit/interact with.

Inheritance base for complex Locations.


Author: B. Henne

Instance Methods [hide private]
 
__init__(self, name, sim)
Inits the Location.
source code
 
interact(self, person, duration=600)
Interact method normally calls visit.
source code
 
leave(self, person)
On leave person is removed from visitors and is reactivated.
source code
 
serve(self)
Manages visitors (what is done in location?) and triggers leaving.
source code
 
visit(self, person, duration)
On visit a person becomes visitor for duration ticks.
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 object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from SimPy.Lister.Lister: indent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, sim)
(Constructor)

source code 

Inits the Location.

Overrides: object.__init__

visit(self, person, duration)

source code 

On visit a person becomes visitor for duration ticks. After visit person is reactivated.