# HG changeset patch # User Mathieu Lacage # Date 1239873027 -7200 # Node ID 689bece0b361104df45543cf2de51d31117de7da # Parent bad9eed1928322d61e5d1db57152af4de778d26d rescan python diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_bridge.py --- a/bindings/python/ns3_module_bridge.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_bridge.py Thu Apr 16 11:10:27 2009 +0200 @@ -103,16 +103,6 @@ 'ns3::Ptr< ns3::NetDevice >', [param('uint32_t', 'n')], is_const=True) - ## bridge-net-device.h: void ns3::BridgeNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## bridge-net-device.h: std::string ns3::BridgeNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## bridge-net-device.h: void ns3::BridgeNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_core.py --- a/bindings/python/ns3_module_core.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_core.py Thu Apr 16 11:10:27 2009 +0200 @@ -115,8 +115,12 @@ module.add_class('EnumChecker', parent=root_module['ns3::AttributeChecker']) ## enum.h: ns3::EnumValue [class] module.add_class('EnumValue', parent=root_module['ns3::AttributeValue']) + ## random-variable.h: ns3::ErlangVariable [class] + module.add_class('ErlangVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::ExponentialVariable [class] module.add_class('ExponentialVariable', parent=root_module['ns3::RandomVariable']) + ## random-variable.h: ns3::GammaVariable [class] + module.add_class('GammaVariable', parent=root_module['ns3::RandomVariable']) ## random-variable.h: ns3::IntEmpiricalVariable [class] module.add_class('IntEmpiricalVariable', parent=root_module['ns3::EmpiricalVariable']) ## integer.h: ns3::IntegerValue [class] @@ -261,7 +265,9 @@ register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue']) register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker']) register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue']) + register_Ns3ErlangVariable_methods(root_module, root_module['ns3::ErlangVariable']) register_Ns3ExponentialVariable_methods(root_module, root_module['ns3::ExponentialVariable']) + register_Ns3GammaVariable_methods(root_module, root_module['ns3::GammaVariable']) register_Ns3IntEmpiricalVariable_methods(root_module, root_module['ns3::IntEmpiricalVariable']) register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue']) register_Ns3LogNormalVariable_methods(root_module, root_module['ns3::LogNormalVariable']) @@ -1497,6 +1503,25 @@ is_virtual=True) return +def register_Ns3ErlangVariable_methods(root_module, cls): + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::ErlangVariable::ErlangVariable(unsigned int k, double lambda) [constructor] + cls.add_constructor([param('unsigned int', 'k'), param('double', 'lambda')]) + ## random-variable.h: double ns3::ErlangVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::ErlangVariable::GetValue(unsigned int k, double lambda) const [member function] + cls.add_method('GetValue', + 'double', + [param('unsigned int', 'k'), param('double', 'lambda')], + is_const=True) + return + def register_Ns3ExponentialVariable_methods(root_module, cls): ## random-variable.h: ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) @@ -1508,6 +1533,25 @@ cls.add_constructor([param('double', 'm'), param('double', 'b')]) return +def register_Ns3GammaVariable_methods(root_module, cls): + ## random-variable.h: ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] + cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) + ## random-variable.h: ns3::GammaVariable::GammaVariable() [constructor] + cls.add_constructor([]) + ## random-variable.h: ns3::GammaVariable::GammaVariable(double alpha, double beta) [constructor] + cls.add_constructor([param('double', 'alpha'), param('double', 'beta')]) + ## random-variable.h: double ns3::GammaVariable::GetValue() const [member function] + cls.add_method('GetValue', + 'double', + [], + is_const=True) + ## random-variable.h: double ns3::GammaVariable::GetValue(double alpha, double beta) const [member function] + cls.add_method('GetValue', + 'double', + [param('double', 'alpha'), param('double', 'beta')], + is_const=True) + return + def register_Ns3IntEmpiricalVariable_methods(root_module, cls): ## random-variable.h: ns3::IntEmpiricalVariable::IntEmpiricalVariable(ns3::IntEmpiricalVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::IntEmpiricalVariable const &', 'arg0')]) diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_csma.py --- a/bindings/python/ns3_module_csma.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_csma.py Thu Apr 16 11:10:27 2009 +0200 @@ -273,16 +273,6 @@ cls.add_method('GetEncapsulationMode', 'ns3::CsmaNetDevice::EncapsulationMode', []) - ## csma-net-device.h: void ns3::CsmaNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## csma-net-device.h: std::string ns3::CsmaNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## csma-net-device.h: void ns3::CsmaNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_emu.py --- a/bindings/python/ns3_module_emu.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_emu.py Thu Apr 16 11:10:27 2009 +0200 @@ -80,16 +80,6 @@ cls.add_method('SetAddress', 'void', [param('ns3::Mac48Address', 'addr')]) - ## emu-net-device.h: void ns3::EmuNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## emu-net-device.h: std::string ns3::EmuNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## emu-net-device.h: void ns3::EmuNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_node.py --- a/bindings/python/ns3_module_node.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_node.py Thu Apr 16 11:10:27 2009 +0200 @@ -2310,16 +2310,6 @@ is_static=True) ## channel.h: ns3::Channel::Channel() [constructor] cls.add_constructor([]) - ## channel.h: ns3::Channel::Channel(std::string name) [constructor] - cls.add_constructor([param('std::string', 'name')]) - ## channel.h: void ns3::Channel::SetName(std::string arg0) [member function] - cls.add_method('SetName', - 'void', - [param('std::string', 'arg0')]) - ## channel.h: std::string ns3::Channel::GetName() [member function] - cls.add_method('GetName', - 'std::string', - []) ## channel.h: uint32_t ns3::Channel::GetNDevices() const [member function] cls.add_method('GetNDevices', 'uint32_t', @@ -2749,16 +2739,6 @@ 'ns3::TypeId', [], is_static=True) - ## net-device.h: void ns3::NetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_pure_virtual=True, is_virtual=True) - ## net-device.h: std::string ns3::NetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) ## net-device.h: void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', @@ -3015,16 +2995,6 @@ cls.add_method('SetAddress', 'void', [param('ns3::Mac48Address', 'address')]) - ## simple-net-device.h: void ns3::SimpleNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## simple-net-device.h: std::string ns3::SimpleNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## simple-net-device.h: void ns3::SimpleNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_point_to_point.py --- a/bindings/python/ns3_module_point_to_point.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_point_to_point.py Thu Apr 16 11:10:27 2009 +0200 @@ -175,16 +175,6 @@ 'uint16_t', [], is_const=True) - ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## point-to-point-net-device.h: std::string ns3::PointToPointNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_tap_bridge.py --- a/bindings/python/ns3_module_tap_bridge.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_tap_bridge.py Thu Apr 16 11:10:27 2009 +0200 @@ -86,16 +86,6 @@ cls.add_method('GetMode', 'ns3::TapBridge::Mode', []) - ## tap-bridge.h: void ns3::TapBridge::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## tap-bridge.h: std::string ns3::TapBridge::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## tap-bridge.h: void ns3::TapBridge::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void', diff -r bad9eed19283 -r 689bece0b361 bindings/python/ns3_module_wifi.py --- a/bindings/python/ns3_module_wifi.py Thu Apr 16 11:10:17 2009 +0200 +++ b/bindings/python/ns3_module_wifi.py Thu Apr 16 11:10:27 2009 +0200 @@ -2697,16 +2697,6 @@ 'ns3::Ptr< ns3::WifiRemoteStationManager >', [], is_const=True) - ## wifi-net-device.h: void ns3::WifiNetDevice::SetName(std::string const name) [member function] - cls.add_method('SetName', - 'void', - [param('std::string const', 'name')], - is_virtual=True) - ## wifi-net-device.h: std::string ns3::WifiNetDevice::GetName() const [member function] - cls.add_method('GetName', - 'std::string', - [], - is_const=True, is_virtual=True) ## wifi-net-device.h: void ns3::WifiNetDevice::SetIfIndex(uint32_t const index) [member function] cls.add_method('SetIfIndex', 'void',