A C D E G I K L M N P R S T U W _

A

addAttribute(String, Attribute) - Method in class net.tinyos.sim.script.reflect.SimObject
Add the given attribute to the object.
addAttributeChangedEvent(Attribute) - Method in class net.tinyos.sim.script.reflect.SimObject
Register an attribute changed event for the given attribute.
addEventHandler(PyFunction) - Method in class net.tinyos.sim.script.reflect.Interp
Equivalent to addEventHandler(callback, null);
addEventHandler(PyFunction, PyJavaClass) - Method in class net.tinyos.sim.script.reflect.Interp
Registers a given python function as a callback.
addField(String, short, String) - Method in class net.tinyos.sim.script.reflect.Sensor
Add a new sensor field to the model.
addModel(String, SensorModel) - Method in class net.tinyos.sim.script.reflect.Sensor
Add a new sensor model to the set of options.
addPacketType(Message) - Method in class net.tinyos.sim.script.reflect.Packets
Create a new dictionary for packets of a particular message type.
argv - Variable in class net.tinyos.sim.script.reflect.Sim
Array version of the arguments passed in the -scriptargs command line argument.

C

Commands - class net.tinyos.sim.script.reflect.Commands.
The Commands class is a reflection of the 'raw' simulator interface.
Commands(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Commands
Constructor for the Commands object.
copy() - Method in class net.tinyos.sim.script.reflect.Packets
 

D

DBG_ADC - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_ALL - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_AM - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_BOOT - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_CLOCK - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_CRC - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_CRYPTO - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_ENCODE - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_ERROR - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_HARD - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_I2C - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_LED - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_LOG - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_MEM - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_NONE - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_PACKET - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_PROG - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_QUEUE - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_RADIO - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_ROUTE - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_SCHED - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_SENSOR - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_SIM - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_SIMRADIO - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_SOUNDER - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_TASK - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_TEMP - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_TIME - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_UART - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_USR1 - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_USR2 - Static variable in class net.tinyos.sim.script.reflect.Commands
 
DBG_USR3 - Static variable in class net.tinyos.sim.script.reflect.Commands
 
disable() - Method in class net.tinyos.sim.script.reflect.Radio
Disables the radio model plugin altogether.
distanceToPacketLoss(double) - Method in class net.tinyos.sim.script.reflect.Radio
Convert a distance into a packet loss probability according to the current radio model.
distanceToPacketLoss(double, String) - Method in class net.tinyos.sim.script.reflect.Radio
Convert a distance into a packet loss probability according to the specified radio model.
dumpDBG(String) - Method in class net.tinyos.sim.script.reflect.Sim
Starts dumping debug messages to the given file.

E

enable() - Method in class net.tinyos.sim.script.reflect.Radio
Re-enables the radio model plugin.
exec(String, int) - Method in class net.tinyos.sim.script.reflect.Sim
Run the simulator and block until the driver connects.
exec(String, int, String) - Method in class net.tinyos.sim.script.reflect.Sim
Run the simulator and block until the driver connects.
exit() - Method in class net.tinyos.sim.script.reflect.Sim
Exits the simulator environment with an error code of 0.
exit(int) - Method in class net.tinyos.sim.script.reflect.Sim
Exits the simulator environment with the given error code.

G

getAttribute(String) - Method in class net.tinyos.sim.script.reflect.SimObject
Return the attribute with the given name.
getByte(String) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, and return it as a byte.
getBytes(String) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, and return it as a byte array.
getBytes(String, long, long) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, specifying the length and the offset, and return it as a byte array.
getCoord() - Method in class net.tinyos.sim.script.reflect.SimObject
Return the object's coordinates as a string "(x, y)".
getCurModel() - Method in class net.tinyos.sim.script.reflect.Radio
Return the name of the current radio model.
getDistance(double, double) - Method in class net.tinyos.sim.script.reflect.SimObject
Return the distance from this mote to the given coordinates
getDistance(int) - Method in class net.tinyos.sim.script.reflect.SimObject
Return the distance from this mote to another.
getDistance(SimObject) - Method in class net.tinyos.sim.script.reflect.SimObject
Return the distance from this mote to another.
getID() - Method in class net.tinyos.sim.script.reflect.Mote
Return the mote's ID.
getInt(String) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, and return it as an int.
getInterruptID() - Method in class net.tinyos.sim.script.reflect.Commands
Get a unique interrupt ID.
getInterruptID() - Method in class net.tinyos.sim.script.reflect.Interp
Get a unique interrupt ID.
getLong(String) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, and return it as a long.
getLossRate(int, int) - Method in class net.tinyos.sim.script.reflect.Radio
Get the packet loss rate between two motes.
getScalingFactor() - Method in class net.tinyos.sim.script.reflect.Radio
Return the radio model scaling factor.
getShort(String) - Method in class net.tinyos.sim.script.reflect.Mote
Resolve and return the value of a mote frame variable, and return it as a short.
getTossimTime() - Method in class net.tinyos.sim.script.reflect.Sim
Returns the current simulator time.
getWorldHeight() - Method in class net.tinyos.sim.script.reflect.Sim
Returns the height of the simulator 'world' in logical space units.
getWorldWidth() - Method in class net.tinyos.sim.script.reflect.Sim
Returns the width of the simulator 'world' in logical space units.
getXCoord() - Method in class net.tinyos.sim.script.reflect.SimObject
Return the object's X coordinate.
getYCoord() - Method in class net.tinyos.sim.script.reflect.SimObject
Return the object's Y coordinate.

I

Interp - class net.tinyos.sim.script.reflect.Interp.
The Interp class controls operations on the python interpreter, specifically the management of events.
Interp(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Interp
 
interruptInFuture(long, int) - Method in class net.tinyos.sim.script.reflect.Commands
Schedule an interrupt event.
interruptInFuture(long, int) - Method in class net.tinyos.sim.script.reflect.Interp
Schedule an interrupt event.
isOn() - Method in class net.tinyos.sim.script.reflect.Mote
Return whether or not the mote is on.
isPaused() - Method in class net.tinyos.sim.script.reflect.Sim
Indicates whether or not the simulator is paused.
isSelected() - Method in class net.tinyos.sim.script.reflect.SimObject
Determine if the object is selected.
items() - Method in class net.tinyos.sim.script.reflect.Packets
 

K

keys() - Method in class net.tinyos.sim.script.reflect.Packets
 

L

loadPlugin(String) - Method in class net.tinyos.sim.script.reflect.Sim
Load the requested plugin.

M

Mote - class net.tinyos.sim.script.reflect.Mote.
The Mote class provides access to the simulated mote objects.
Mote(ScriptInterpreter, SimDriver, MoteSimObject) - Constructor for class net.tinyos.sim.script.reflect.Mote
 
move(double, double) - Method in class net.tinyos.sim.script.reflect.SimObject
Move the mote in virtual space by a given amount.
moveTo(double, double) - Method in class net.tinyos.sim.script.reflect.SimObject
Move the mote in virtual space to the given location

N

net.tinyos.sim.script.reflect - package net.tinyos.sim.script.reflect
This package is reflected into the Tython environment through the simcore module.
newSimObject() - Method in class net.tinyos.sim.script.reflect.Sim
Create a new generic SimObject.
newSimObject(int, double, double) - Method in class net.tinyos.sim.script.reflect.Sim
Create a new generic SimObject.
nextBoolean() - Method in class net.tinyos.sim.script.reflect.Random
 
nextBytes(byte[]) - Method in class net.tinyos.sim.script.reflect.Random
 
nextDouble() - Method in class net.tinyos.sim.script.reflect.Random
 
nextFloat() - Method in class net.tinyos.sim.script.reflect.Random
 
nextGaussian() - Method in class net.tinyos.sim.script.reflect.Random
 
nextInt() - Method in class net.tinyos.sim.script.reflect.Random
 
nextInt(int) - Method in class net.tinyos.sim.script.reflect.Random
 
nextLong() - Method in class net.tinyos.sim.script.reflect.Random
 

P

packetLossToBitError(double) - Method in class net.tinyos.sim.script.reflect.Radio
Convert a requested packet loss probability into a bit error rate, according to the current radio model.
packetLossToBitError(double, String) - Method in class net.tinyos.sim.script.reflect.Radio
Convert a requested packet loss probability into a bit error rate, according to the specified radio model.
Packets - class net.tinyos.sim.script.reflect.Packets.
The Packets class is a special reflected class to provide access to the simulator's packet transmission history.
Packets(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Packets
 
pause() - Method in class net.tinyos.sim.script.reflect.Sim
Pauses the simulation.
printLossRates() - Method in class net.tinyos.sim.script.reflect.Radio
Dump the current loss rate table to the console.
publishModel() - Method in class net.tinyos.sim.script.reflect.Radio
Publishes all the current radio model values to the simulator.

R

Radio - class net.tinyos.sim.script.reflect.Radio.
Interface class to the radio model.
Radio(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Radio
 
Random - class net.tinyos.sim.script.reflect.Random.
The Random class is used as a hook to get random numbers from the single random number generator instance within the simulator.
Random(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Random
 
removeAttribute(String) - Method in class net.tinyos.sim.script.reflect.SimObject
Remove the given attribute from the object.
removeEventHandler(int) - Method in class net.tinyos.sim.script.reflect.Interp
Removes the previously registered handler.
removeField(String) - Method in class net.tinyos.sim.script.reflect.Sensor
Add a new sensor field to the model.
requestVariable(long, short) - Method in class net.tinyos.sim.script.reflect.Commands
Send a variable request command and return the result value.
reset() - Method in class net.tinyos.sim.script.reflect.Sim
Reset the simulator, stopping the current simulation process and clearing out all internal state.
resolveVariable(short, String) - Method in class net.tinyos.sim.script.reflect.Commands
Send a variable resolve command and return the result.
resume() - Method in class net.tinyos.sim.script.reflect.Sim
Resumes the simulation.

S

sendRadioMessage(short, long, Message) - Method in class net.tinyos.sim.script.reflect.Commands
Sends a radio message to the given mote.
sendUARTMessage(short, long, Message) - Method in class net.tinyos.sim.script.reflect.Commands
Sends a UART message to the given mote.
Sensor - class net.tinyos.sim.script.reflect.Sensor.
Interface class to the sensor model.
Sensor(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Sensor
 
setADCValue(short, long, byte, short) - Method in class net.tinyos.sim.script.reflect.Commands
Set the ADC value at the given mote to the specified value.
setAutoPublish(boolean) - Method in class net.tinyos.sim.script.reflect.Radio
Set the auto publish flag in the radio model.
setCoord(double, double) - Method in class net.tinyos.sim.script.reflect.SimObject
Move the mote in virtual space to the given location.
setCurModel(String) - Method in class net.tinyos.sim.script.reflect.Radio
Set the radio model.
setDBG(long) - Method in class net.tinyos.sim.script.reflect.Commands
Enable the given debug flag.
setEventMask(short) - Method in class net.tinyos.sim.script.reflect.Commands
Set the mask for which events are transmitted.
setLabel(String, int, int) - Method in class net.tinyos.sim.script.reflect.Mote
Set a label in the TinyViz GUI for the given mote at a constant offset to the mote's position.
setLinkBitErrorProbability(short, long, short, double) - Method in class net.tinyos.sim.script.reflect.Commands
Set the ADC value at the given mote to the specified value.
setLossRate(int, int, double) - Method in class net.tinyos.sim.script.reflect.Radio
Set the packet loss rate between two motes.
setScalingFactor(double) - Method in class net.tinyos.sim.script.reflect.Radio
Set the radio model scaling factor.
setSelected() - Method in class net.tinyos.sim.script.reflect.SimObject
Add the object to the selected set.
setSimDelay(long) - Method in class net.tinyos.sim.script.reflect.Sim
Sets the logical simulator delay.
setSimRate(double) - Method in class net.tinyos.sim.script.reflect.Commands
Sets the simulator rate
setUnselected() - Method in class net.tinyos.sim.script.reflect.SimObject
Remove the object from the selected set.
Sim - class net.tinyos.sim.script.reflect.Sim.
The Sim class controls high-level operations on the simulation, including pause/resume and execution control.
Sim(ScriptInterpreter, SimDriver) - Constructor for class net.tinyos.sim.script.reflect.Sim
Constructor for the Sim object.
SimObject - class net.tinyos.sim.script.reflect.SimObject.
The SimObject class provides internal access to simulator objects that are not motes.
SimObject(ScriptInterpreter, SimDriver, int, double, double) - Constructor for class net.tinyos.sim.script.reflect.SimObject
Constructor that's called by sim.newSimObject()
stop() - Method in class net.tinyos.sim.script.reflect.Sim
Stops the simulator execution.
stopDBGDump() - Method in class net.tinyos.sim.script.reflect.Sim
Stops dumping debug messages.

T

toString() - Method in class net.tinyos.sim.script.reflect.Mote
Return a string representing the mote's state (i.e. power, position).
toString() - Method in class net.tinyos.sim.script.reflect.Packets
 
turnMoteOff(short, long) - Method in class net.tinyos.sim.script.reflect.Commands
Turn off the given mote.
turnMoteOn(short, long) - Method in class net.tinyos.sim.script.reflect.Commands
Turn on the given mote.
turnOff() - Method in class net.tinyos.sim.script.reflect.Mote
Turn the mote off.
turnOn() - Method in class net.tinyos.sim.script.reflect.Mote
Turn the mote on.

U

updateModel() - Method in class net.tinyos.sim.script.reflect.Radio
Forces a recalculation of the radio loss model by iterating over all pairs of motes.

W

waitFor(long) - Method in class net.tinyos.sim.script.reflect.Commands
Block execution for a specified amount of time.
waitUntil(long) - Method in class net.tinyos.sim.script.reflect.Commands
Block execution until the given simulator time.

_

__delitem__(PyObject) - Method in class net.tinyos.sim.script.reflect.Packets
 
__driver - Variable in class net.tinyos.sim.script.reflect.Sim
Backdoor handle on the SimDriver internal object.
__finditem__(PyObject) - Method in class net.tinyos.sim.script.reflect.Packets
 
__len__() - Method in class net.tinyos.sim.script.reflect.Packets
 
__setitem__(int, PyObject) - Method in class net.tinyos.sim.script.reflect.Packets
 
__setitem__(PyObject, PyObject) - Method in class net.tinyos.sim.script.reflect.Packets
 

A C D E G I K L M N P R S T U W _