X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftossim%2FTOSSIM.py;h=88fd9bfaf8b2dd02c1ccecba2873ba4464b420e0;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=c8105b96a01edace0a5079a54dd892fb6359b186;hpb=1a329382c4f4556fd52d85f4e3f4a67e54911682;p=tinyos-2.x.git diff --git a/tos/lib/tossim/TOSSIM.py b/tos/lib/tossim/TOSSIM.py index c8105b96..88fd9bfa 100644 --- a/tos/lib/tossim/TOSSIM.py +++ b/tos/lib/tossim/TOSSIM.py @@ -1,10 +1,16 @@ -# This file was created automatically by SWIG 1.3.29. +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 1.3.33 +# # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _TOSSIM import new new_instancemethod = new.instancemethod +try: + _swig_property = property +except NameError: + pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): @@ -114,6 +120,8 @@ class Packet(_object): except: self.this = this __swig_destroy__ = _TOSSIM.delete_Packet __del__ = lambda self : None; + def setSource(*args): return _TOSSIM.Packet_setSource(*args) + def source(*args): return _TOSSIM.Packet_source(*args) def setDestination(*args): return _TOSSIM.Packet_setDestination(*args) def destination(*args): return _TOSSIM.Packet_destination(*args) def setLength(*args): return _TOSSIM.Packet_setLength(*args) @@ -137,16 +145,16 @@ class variable_string_t(_object): __repr__ = _swig_repr __swig_setmethods__["type"] = _TOSSIM.variable_string_t_type_set __swig_getmethods__["type"] = _TOSSIM.variable_string_t_type_get - if _newclass:type = property(_TOSSIM.variable_string_t_type_get, _TOSSIM.variable_string_t_type_set) + if _newclass:type = _swig_property(_TOSSIM.variable_string_t_type_get, _TOSSIM.variable_string_t_type_set) __swig_setmethods__["ptr"] = _TOSSIM.variable_string_t_ptr_set __swig_getmethods__["ptr"] = _TOSSIM.variable_string_t_ptr_get - if _newclass:ptr = property(_TOSSIM.variable_string_t_ptr_get, _TOSSIM.variable_string_t_ptr_set) + if _newclass:ptr = _swig_property(_TOSSIM.variable_string_t_ptr_get, _TOSSIM.variable_string_t_ptr_set) __swig_setmethods__["len"] = _TOSSIM.variable_string_t_len_set __swig_getmethods__["len"] = _TOSSIM.variable_string_t_len_get - if _newclass:len = property(_TOSSIM.variable_string_t_len_get, _TOSSIM.variable_string_t_len_set) + if _newclass:len = _swig_property(_TOSSIM.variable_string_t_len_get, _TOSSIM.variable_string_t_len_set) __swig_setmethods__["isArray"] = _TOSSIM.variable_string_t_isArray_set __swig_getmethods__["isArray"] = _TOSSIM.variable_string_t_isArray_get - if _newclass:isArray = property(_TOSSIM.variable_string_t_isArray_get, _TOSSIM.variable_string_t_isArray_set) + if _newclass:isArray = _swig_property(_TOSSIM.variable_string_t_isArray_get, _TOSSIM.variable_string_t_isArray_set) def __init__(self, *args): this = _TOSSIM.new_variable_string_t(*args) try: self.this.append(this) @@ -164,16 +172,16 @@ class nesc_app_t(_object): __repr__ = _swig_repr __swig_setmethods__["numVariables"] = _TOSSIM.nesc_app_t_numVariables_set __swig_getmethods__["numVariables"] = _TOSSIM.nesc_app_t_numVariables_get - if _newclass:numVariables = property(_TOSSIM.nesc_app_t_numVariables_get, _TOSSIM.nesc_app_t_numVariables_set) + if _newclass:numVariables = _swig_property(_TOSSIM.nesc_app_t_numVariables_get, _TOSSIM.nesc_app_t_numVariables_set) __swig_setmethods__["variableNames"] = _TOSSIM.nesc_app_t_variableNames_set __swig_getmethods__["variableNames"] = _TOSSIM.nesc_app_t_variableNames_get - if _newclass:variableNames = property(_TOSSIM.nesc_app_t_variableNames_get, _TOSSIM.nesc_app_t_variableNames_set) + if _newclass:variableNames = _swig_property(_TOSSIM.nesc_app_t_variableNames_get, _TOSSIM.nesc_app_t_variableNames_set) __swig_setmethods__["variableTypes"] = _TOSSIM.nesc_app_t_variableTypes_set __swig_getmethods__["variableTypes"] = _TOSSIM.nesc_app_t_variableTypes_get - if _newclass:variableTypes = property(_TOSSIM.nesc_app_t_variableTypes_get, _TOSSIM.nesc_app_t_variableTypes_set) + if _newclass:variableTypes = _swig_property(_TOSSIM.nesc_app_t_variableTypes_get, _TOSSIM.nesc_app_t_variableTypes_set) __swig_setmethods__["variableArray"] = _TOSSIM.nesc_app_t_variableArray_set __swig_getmethods__["variableArray"] = _TOSSIM.nesc_app_t_variableArray_get - if _newclass:variableArray = property(_TOSSIM.nesc_app_t_variableArray_get, _TOSSIM.nesc_app_t_variableArray_set) + if _newclass:variableArray = _swig_property(_TOSSIM.nesc_app_t_variableArray_get, _TOSSIM.nesc_app_t_variableArray_set) def __init__(self, *args): this = _TOSSIM.new_nesc_app_t(*args) try: self.this.append(this) @@ -220,6 +228,9 @@ class Mote(_object): def turnOff(*args): return _TOSSIM.Mote_turnOff(*args) def turnOn(*args): return _TOSSIM.Mote_turnOn(*args) def getVariable(*args): return _TOSSIM.Mote_getVariable(*args) + def addNoiseTraceReading(*args): return _TOSSIM.Mote_addNoiseTraceReading(*args) + def createNoiseModel(*args): return _TOSSIM.Mote_createNoiseModel(*args) + def generateNoise(*args): return _TOSSIM.Mote_generateNoise(*args) Mote_swigregister = _TOSSIM.Mote_swigregister Mote_swigregister(Mote)