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

Class Cafe

source code


Cafe is a simple cafe Location.

A Cafe can open() and close().


Author: B. Henne

Instance Methods [hide private]
 
__init__(self, name, sim)
Inits the Cafe.
source code
 
interact(self, person, duration=600)
Implements the interaction with the Cafe: visit() if Cafe is open.
source code
 
open(self)
Set Cafe to be open.
source code
 
close(self)
Close the Cafe, kick all its visitors.
source code

Inherited from Location: leave, serve, visit

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 Cafe.

Overrides: object.__init__

interact(self, person, duration=600)

source code 

Implements the interaction with the Cafe: visit() if Cafe is open.

Overrides: Location.interact