Package mosp :: Module core
[hide private]
[frames] | no frames]

Module core

source code

Mobile Security & Privacy Simulator core


Author: B. Henne, F. Ludwig, P. Tute

Contact: henne@dcsec.uni-hannover.de

Copyright: (c) 2010-2012, DCSec, Leibniz Universitaet Hannover, Germany

License: GPLv3

Classes [hide private]
  Simulation
A MOSP Simulation.
  DateTime
Simulation DateTime extension.
  PersonActionBase
Base class for Person actions.
  Person
A basic simulated Person.
Functions [hide private]
 
action(every, start=True)
MOSP action decorator executes an action defined by an method regularly using a PersonAction(SimPy Process).
source code
 
start_action(action, at='undefined', delay='undefined')
Starts an action that has not been started (or stopped?) before.
source code
 
stop_action(action)
Stops an action.
source code
 
distXY2XY(x1, y1, x2, y2)
Return the distance of two coordinate pairs (four values).
source code
 
distN2N(n1, n2)
Return the distance of two coordinate pairs (two pairs).
source code
Variables [hide private]
  __package__ = 'mosp'
Function Details [hide private]

action(every, start=True)

source code 

MOSP action decorator executes an action defined by an method regularly using a PersonAction(SimPy Process).

Parameters:
  • every - action is executed every every ticks
  • start - start action immediately?

Author: F. Ludwig

start_action(action, at='undefined', delay='undefined')

source code 

Starts an action that has not been started (or stopped?) before.

Author: F. Ludwig

stop_action(action)

source code 

Stops an action.

Author: B. Henne

distXY2XY(x1, y1, x2, y2)

source code 

Return the distance of two coordinate pairs (four values).

Author: B. Henne

distN2N(n1, n2)

source code 

Return the distance of two coordinate pairs (two pairs).

Parameters:
  • n1 - List/2-tuple [x, y]
  • n2 - List/2-tuple [x, y]

Author: B. Henne