|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.python.core.PyObject | +--org.python.core.PyDictionary | +--net.tinyos.sim.script.reflect.Packets
The Packets class is a special reflected class to provide access to the simulator's packet transmission history.
This class implements a python dictionary, and as such, should be accessed using the python builtin operators. The index into the dictionary is the transmitting mote id. The contents of each slice is a list of packet information that was sent by that mote.
The class is bound into the simcore module as the packets global instance.
Field Summary |
---|
Fields inherited from class org.python.core.PyObject |
---|
__class__ |
Constructor Summary | |
---|---|
Packets(net.tinyos.sim.script.ScriptInterpreter interp,
net.tinyos.sim.SimDriver driver)
|
Method Summary | |
---|---|
void |
__delitem__(org.python.core.PyObject index)
|
org.python.core.PyObject |
__finditem__(org.python.core.PyObject key)
|
int |
__len__()
|
void |
__setitem__(int index,
org.python.core.PyObject value)
|
void |
__setitem__(org.python.core.PyObject index,
org.python.core.PyObject value)
|
net.tinyos.sim.script.reflect.PacketType |
addPacketType(net.tinyos.message.Message message)
Create a new dictionary for packets of a particular message type. |
org.python.core.PyDictionary |
copy()
|
org.python.core.PyList |
items()
|
org.python.core.PyList |
keys()
|
java.lang.String |
toString()
|
Methods inherited from class org.python.core.PyDictionary |
---|
__cmp__, __findattr__, __finditem__, __iter__, __nonzero__, classDictInit, clear, get, get, has_key, hashCode, iteritems, iterkeys, itervalues, popitem, safeRepr, setdefault, setdefault, update, update, values |
Methods inherited from class org.python.core.PyObject |
---|
__abs__, __add__, __and__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __coerce__, __coerce_ex__, __complex__, __contains__, __delattr__, __delattr__, __delitem__, __delslice__, __delslice__, __dir__, __div__, __divmod__, __eq__, __findattr__, __finditem__, __float__, __floordiv__, __ge__, __getattr__, __getattr__, __getitem__, __getitem__, __getslice__, __getslice__, __gt__, __hash__, __hex__, __iadd__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iternext__, __itruediv__, __ixor__, __le__, __long__, __lshift__, __lt__, __mod__, __mul__, __ne__, __neg__, __not__, __oct__, __or__, __pos__, __pow__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __repr__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __setattr__, __setattr__, __setitem__, __setslice__, __setslice__, __str__, __sub__, __tojava__, __truediv__, __xor__, _add, _and, _callextra, _cmp, _div, _divmod, _dodel, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _in, _is, _isnot, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _xor, equals, invoke, invoke, invoke, invoke, invoke, isCallable, isMappingType, isNumberType, isSequenceType |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Packets(net.tinyos.sim.script.ScriptInterpreter interp, net.tinyos.sim.SimDriver driver)
Method Detail |
public org.python.core.PyObject __finditem__(org.python.core.PyObject key)
__finditem__
in class org.python.core.PyDictionary
public void __setitem__(int index, org.python.core.PyObject value)
__setitem__
in class org.python.core.PyObject
public void __setitem__(org.python.core.PyObject index, org.python.core.PyObject value)
__setitem__
in class org.python.core.PyDictionary
public void __delitem__(org.python.core.PyObject index)
__delitem__
in class org.python.core.PyDictionary
public int __len__()
__len__
in class org.python.core.PyDictionary
public org.python.core.PyList items()
items
in class org.python.core.PyDictionary
public java.lang.String toString()
toString
in class org.python.core.PyDictionary
public org.python.core.PyList keys()
keys
in class org.python.core.PyDictionary
public org.python.core.PyDictionary copy()
copy
in class org.python.core.PyDictionary
public net.tinyos.sim.script.reflect.PacketType addPacketType(net.tinyos.message.Message message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |