openVisualizerApp Directory

openVisualizerApp Module

Contains application model for OpenVisualizer. Expects to be called by top-level UI module. See main() for startup use.

class openVisualizerApp.OpenVisualizerApp(confdir, datadir, logdir, simulatorMode, numMotes, trace, debug, simTopology)

Bases: object

Provides an application model for OpenVisualizer. Provides common, top-level functionality for several UI clients.

close()

Closes all thread-based components

getMoteState(moteid)

Returns the moteState object for the provided connected mote.

Parameters:moteid – 16-bit ID of mote
Return type:moteState or None if not found
openVisualizerApp.main(parser=None)

Entry point for application startup by UI. Parses common arguments.

Parameters:parser – Optional ArgumentParser passed in from enclosing UI module to allow that module to pre-parse specific arguments
Return type:openVisualizerApp object

openVisualizerCli Module

class openVisualizerCli.OpenVisualizerCli(app)

Bases: cmd.Cmd

do_list(arg)

List available states. (Obsolete; use ‘state’ without parameters.)

do_quit(arg)
do_root(arg)

Sets dagroot to the provided mote, or lists motes Usage: root [serial-port]

do_state(arg)

Prints provided state, or lists states. Usage: state [state-name]

help_all()

Lists first line of help for all documented commands

openVisualizerGui Module

class openVisualizerGui.MenuUpdateFrame(master=None, cnf={}, **kw)

Bases: Tkinter.Frame

Updates the motes menu items with mote 16-bit IDs

setMenuList(menuList)
setMoteStateHandler(ms)
updateMenuLabel(indexToUpdate)
class openVisualizerGui.OpenVisualizerGui(app)

Bases: object

GUI_UPDATE_PERIOD = 500
MENUENTRY_EVENTBUS = 'eventBus'
MENUENTRY_LBR = 'lbr'
MENUENTRY_STATE = 'motes'
close()
start()

openVisualizerWeb Module

class openVisualizerWeb.OpenVisualizerWeb(app, websrv)

Bases: openvisualizer.eventBus.eventBusClient.eventBusClient

Provides web UI for OpenVisualizer. Runs as a webapp in a Bottle web server.

Table Of Contents

Previous topic

SimEngine Package

This Page