SimEngine Package

IdManager Module

class openvisualizer.SimEngine.IdManager.IdManager

Bases: object

The module which assigns ID to the motes.

getId()

LocationManager Module

class openvisualizer.SimEngine.LocationManager.LocationManager

Bases: object

The module which assigns locations to the motes.

getLocation()

MoteHandler Module

class openvisualizer.SimEngine.MoteHandler.MoteHandler(mote)

Bases: threading.Thread

getId()
getLocation()
handleEvent(functionToCall)
run()
setLocation(lat, lon)
openvisualizer.SimEngine.MoteHandler.notifId(s)
openvisualizer.SimEngine.MoteHandler.readNotifIds(headerPath)

Contextual parent must call this method before other use of mote handler.

headerPath Path to openwsnmodule_obj.h, containing notifIds

Required since this module cannot know where to find the header file.

Propagation Module

class openvisualizer.SimEngine.Propagation.Propagation(simTopology)

Bases: openvisualizer.eventBus.eventBusClient.eventBusClient

The propagation model of the engine.

SIGNAL_WIRELESSTXEND = 'wirelessTxEnd'
SIGNAL_WIRELESSTXSTART = 'wirelessTxStart'
createConnection(fromMote, toMote)
deleteConnection(fromMote, toMote)
retrieveConnections()
updateConnection(fromMote, toMote, pdr)

SimEngine Module

class openvisualizer.SimEngine.SimEngine.SimEngine(simTopology='', loghandler=<logging.NullHandler object at 0x01D80210>)

Bases: object

The main simulation engine.

getMoteHandler(rank)
getMoteHandlerById(moteId)
getNumMotes()
getStats()
indicateFirstEventPassed()
indicateNewMote(newMoteHandler)
isRunning()
pause()
pauseOrDelay()
resume()
setDelay(delay)
start()
step(numSteps)
class openvisualizer.SimEngine.SimEngine.SimEngineStats

Bases: object

getDurationRunning()
indicateStart()
indicateStop()

TimeLine Module

class openvisualizer.SimEngine.TimeLine.TimeLine

Bases: threading.Thread

The timeline of the engine.

cancelEvent(moteId, desc)

Cancels all events identified by their description

Parameters:desc – A unique description (a string) of this event.
Returns:The number of events canceled.
getCurrentTime()
getEvents()
getStats()
run()
scheduleEvent(atTime, moteId, cb, desc)

Add an event into the timeline

Parameters:
  • atTime – The time at which this event should be called.
  • cb – The function to call when this event happens.
  • desc – A unique description (a string) of this event.
class openvisualizer.SimEngine.TimeLine.TimeLineEvent(moteId, atTime, cb, desc)

Bases: object

class openvisualizer.SimEngine.TimeLine.TimeLineStats

Bases: object

getNumEvents()
incrementEvents()

Table Of Contents

Previous topic

RPL Package

Next topic

openVisualizerApp Directory

This Page