moteState Package

moteState Module

Contains the moteState container class, as well as contained classes that structure the mote data. Contained classes inherit from the abstract StateElem class.

class openvisualizer.moteState.moteState.OpenEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, encoding='utf-8', default=None)

Bases: json.encoder.JSONEncoder

default(obj)
class openvisualizer.moteState.moteState.StateAsn

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateBackoff

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateElem

Bases: object

Abstract superclass for internal mote state classes.

toJson(aspect='all', isPrettyPrint=False)

Dumps state to JSON.

Parameters:
  • aspect – The particular aspect of the state object to dump, or the default ‘all’ for all aspects. Aspect names: ‘meta’ – Metadata collected about the state; ‘data’ – State data itself
  • isPrettyPrint – If evaluates true, provides more readable output by sorting keys and indenting members.
Returns:

JSON representing the object. If aspect is ‘all’, the JSON is a dictionary, with sub-dictionaries for the meta and data aspects. Otherwise, the JSON is a list of the selected aspect’s content.

update()
class openvisualizer.moteState.moteState.StateIdManager(eventBusClient, moteConnector)

Bases: openvisualizer.moteState.moteState.StateElem

get16bAddr()
update(notif)
class openvisualizer.moteState.moteState.StateIsSync

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateMacStats

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateMyDagRank

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateNeighborsRow

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateOutputBuffer

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateQueue

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateQueueRow

Bases: openvisualizer.moteState.moteState.StateElem

update(creator, owner)
class openvisualizer.moteState.moteState.StateScheduleRow

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StateTable(rowClass, columnOrder=None)

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.StatekaPeriod

Bases: openvisualizer.moteState.moteState.StateElem

update(notif)
class openvisualizer.moteState.moteState.moteState(moteConnector)

Bases: openvisualizer.eventBus.eventBusClient.eventBusClient

ST_ALL = ['OutputBuffer', 'Asn', 'MacStats', 'Schedule', 'Backoff', 'Queue', 'Neighbors', 'IsSync', 'IdManager', 'MyDagRank', 'kaPeriod']
ST_ASN = 'Asn'
ST_BACKOFF = 'Backoff'
ST_IDMANAGER = 'IdManager'
ST_ISSYNC = 'IsSync'
ST_KAPERIOD = 'kaPeriod'
ST_MACSTATS = 'MacStats'
ST_MYDAGRANK = 'MyDagRank'
ST_NEIGHBORS = 'Neighbors'
ST_NEIGHBORSROW = 'NeighborsRow'
ST_OUPUTBUFFER = 'OutputBuffer'
ST_QUEUE = 'Queue'
ST_QUEUEROW = 'QueueRow'
ST_SCHEDULE = 'Schedule'
ST_SCHEDULEROW = 'ScheduleRow'
TRIGGER_ALL = ['DAGroot']
TRIGGER_DAGROOT = 'DAGroot'
getStateElem(elemName)
getStateElemNames()
triggerAction(action)

Table Of Contents

Previous topic

moteProbe Package

Next topic

openLbr Package

This Page