diff --git a/bindings/python/apidefs/gcc-ILP32/callbacks_list.py b/bindings/python/apidefs/gcc-ILP32/callbacks_list.py index 2f9c3cc27..e312e54f4 100644 --- a/bindings/python/apidefs/gcc-ILP32/callbacks_list.py +++ b/bindings/python/apidefs/gcc-ILP32/callbacks_list.py @@ -2,6 +2,7 @@ callback_classes = [ ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'ns3::Ptr', 'ns3::Address const&', 'ns3::Address const&', 'unsigned short', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'double', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'double', 'ns3::UanTxMode', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py index 34cd4c261..60c53cd90 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py @@ -351,6 +351,7 @@ def register_methods(root_module): register_Ns3TestRunner_methods(root_module, root_module['ns3::TestRunner']) register_Ns3TestSuite_methods(root_module, root_module['ns3::TestSuite']) register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >']) + register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >']) register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable']) register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo']) @@ -1340,6 +1341,40 @@ def register_Ns3TracedValue__Double_methods(root_module, cls): [param('double const &', 'v')]) return +def register_Ns3TracedValue__Ns3Time_methods(root_module, cls): + ## traced-value.h: ns3::TracedValue::TracedValue() [constructor] + cls.add_constructor([]) + ## traced-value.h: ns3::TracedValue::TracedValue(ns3::TracedValue const & o) [copy constructor] + cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')]) + ## traced-value.h: ns3::TracedValue::TracedValue(ns3::Time const & v) [constructor] + cls.add_constructor([param('ns3::Time const &', 'v')]) + ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + cls.add_method('Connect', + 'void', + [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) + ## traced-value.h: void ns3::TracedValue::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function] + cls.add_method('ConnectWithoutContext', + 'void', + [param('ns3::CallbackBase const &', 'cb')]) + ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + cls.add_method('Disconnect', + 'void', + [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) + ## traced-value.h: void ns3::TracedValue::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function] + cls.add_method('DisconnectWithoutContext', + 'void', + [param('ns3::CallbackBase const &', 'cb')]) + ## traced-value.h: ns3::Time ns3::TracedValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Time', + [], + is_const=True) + ## traced-value.h: void ns3::TracedValue::Set(ns3::Time const & v) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Time const &', 'v')]) + return + def register_Ns3TriangularVariable_methods(root_module, cls): ## random-variable.h: ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')]) diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py index de199a31c..6587e6eb1 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_simulator.py @@ -5,7 +5,7 @@ def register_types(module): ## event-id.h: ns3::EventId [class] module.add_class('EventId') - ## high-precision-128.h: ns3::HighPrecision [class] + ## high-precision-double.h: ns3::HighPrecision [class] module.add_class('HighPrecision') ## simulator.h: ns3::Simulator [class] module.add_class('Simulator', is_singleton=True) @@ -25,6 +25,10 @@ def register_types(module): module.add_enum('State', ['RUNNING', 'EXPIRED', 'SUSPENDED'], outer_class=root_module['ns3::Timer']) ## timer-impl.h: ns3::TimerImpl [class] module.add_class('TimerImpl', allow_subclassing=True) + ## traced-value.h: ns3::TracedValue [class] + module.add_class('TracedValue', template_parameters=['ns3::Time']) + ## traced-value.h: ns3::TracedValue [class] + root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time']) ## watchdog.h: ns3::Watchdog [class] module.add_class('Watchdog') ## nstime.h: ns3::Scalar [class] @@ -231,67 +235,65 @@ def register_Ns3EventId_methods(root_module, cls): def register_Ns3HighPrecision_methods(root_module, cls): cls.add_output_stream_operator() - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(int64_t high, uint64_t low) [constructor] - cls.add_constructor([param('int64_t', 'high'), param('uint64_t', 'low')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision() [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision() [constructor] cls.add_constructor([]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor] cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(double value) [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(double value) [constructor] cls.add_constructor([param('double', 'value')]) - ## high-precision-128.h: void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function] cls.add_method('Add', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: int ns3::HighPrecision::Compare(ns3::HighPrecision const & o) const [member function] + ## high-precision-double.h: int ns3::HighPrecision::Compare(ns3::HighPrecision const & o) const [member function] cls.add_method('Compare', 'int', [param('ns3::HighPrecision const &', 'o')], is_const=True) - ## high-precision-128.h: void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function] cls.add_method('Div', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: double ns3::HighPrecision::GetDouble() const [member function] + ## high-precision-double.h: double ns3::HighPrecision::GetDouble() const [member function] cls.add_method('GetDouble', 'double', [], is_const=True) - ## high-precision-128.h: int64_t ns3::HighPrecision::GetHigh() const [member function] + ## high-precision-double.h: int64_t ns3::HighPrecision::GetHigh() const [member function] cls.add_method('GetHigh', 'int64_t', [], is_const=True) - ## high-precision-128.h: int64_t ns3::HighPrecision::GetInteger() const [member function] + ## high-precision-double.h: int64_t ns3::HighPrecision::GetInteger() const [member function] cls.add_method('GetInteger', 'int64_t', [], is_const=True) - ## high-precision-128.h: uint64_t ns3::HighPrecision::GetLow() const [member function] + ## high-precision-double.h: uint64_t ns3::HighPrecision::GetLow() const [member function] cls.add_method('GetLow', 'uint64_t', [], is_const=True) - ## high-precision-128.h: static ns3::HighPrecision ns3::HighPrecision::Invert(uint64_t v) [member function] + ## high-precision-double.h: static ns3::HighPrecision ns3::HighPrecision::Invert(uint64_t v) [member function] cls.add_method('Invert', 'ns3::HighPrecision', [param('uint64_t', 'v')], is_static=True) - ## high-precision-128.h: void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function] cls.add_method('Mul', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function] cls.add_method('MulByInvert', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function] cls.add_method('Sub', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: static ns3::HighPrecision ns3::HighPrecision::Zero() [member function] + ## high-precision-double.h: static ns3::HighPrecision ns3::HighPrecision::Zero() [member function] cls.add_method('Zero', 'ns3::HighPrecision', [], diff --git a/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py b/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py index dc46734fe..5d1b6b630 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3modulegen_generated.py @@ -588,6 +588,8 @@ def register_types(module): module.add_class('TxPacketSample', parent=root_module['ns3::PyViz::PacketSample'], outer_class=root_module['ns3::PyViz']) ## uan-mac-rc.h: ns3::Reservation [class] module.add_class('Reservation') + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper [class] + module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper']) ## uan-prop-model.h: ns3::Tap [class] module.add_class('Tap') ## uan-address.h: ns3::UanAddress [class] @@ -612,6 +614,8 @@ def register_types(module): module.add_class('UanTxModeFactory') ## wifi-radio-energy-model-helper.h: ns3::WifiRadioEnergyModelHelper [class] module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper']) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener [class] + module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener']) ## basic-energy-source-helper.h: ns3::BasicEnergySourceHelper [class] module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper']) ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper [class] @@ -712,6 +716,8 @@ def register_types(module): module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) ## ipv6-static-routing.h: ns3::Ipv6StaticRouting [class] module.add_class('Ipv6StaticRouting', parent=root_module['ns3::Ipv6RoutingProtocol']) + ## rv-battery-model.h: ns3::RvBatteryModel [class] + module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource']) ## uan-channel.h: ns3::UanChannel [class] module.add_class('UanChannel', parent=root_module['ns3::Channel']) ## uan-tx-mode.h: ns3::UanModesListChecker [class] @@ -724,8 +730,6 @@ def register_types(module): module.add_class('VirtualNetDevice', parent=root_module['ns3::NetDevice']) ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel [class] module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel']) - ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel::WifiRadioState [enumeration] - module.add_enum('WifiRadioState', ['TX', 'RX', 'IDLE', 'SLEEP'], outer_class=root_module['ns3::WifiRadioEnergyModel']) ## basic-energy-source.h: ns3::BasicEnergySource [class] module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource']) ## bridge-channel.h: ns3::BridgeChannel [class] @@ -971,6 +975,7 @@ def register_methods(root_module): register_Ns3PyVizTransmissionSample_methods(root_module, root_module['ns3::PyViz::TransmissionSample']) register_Ns3PyVizTxPacketSample_methods(root_module, root_module['ns3::PyViz::TxPacketSample']) register_Ns3Reservation_methods(root_module, root_module['ns3::Reservation']) + register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper']) register_Ns3Tap_methods(root_module, root_module['ns3::Tap']) register_Ns3UanAddress_methods(root_module, root_module['ns3::UanAddress']) register_Ns3UanHelper_methods(root_module, root_module['ns3::UanHelper']) @@ -981,6 +986,7 @@ def register_methods(root_module): register_Ns3UanTxMode_methods(root_module, root_module['ns3::UanTxMode']) register_Ns3UanTxModeFactory_methods(root_module, root_module['ns3::UanTxModeFactory']) register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper']) + register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener']) register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper']) register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper']) register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper']) @@ -1027,6 +1033,7 @@ def register_methods(root_module): register_Ns3Ipv4FlowProbe_methods(root_module, root_module['ns3::Ipv4FlowProbe']) register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting']) register_Ns3Ipv6StaticRouting_methods(root_module, root_module['ns3::Ipv6StaticRouting']) + register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel']) register_Ns3UanChannel_methods(root_module, root_module['ns3::UanChannel']) register_Ns3UanModesListChecker_methods(root_module, root_module['ns3::UanModesListChecker']) register_Ns3UanModesListValue_methods(root_module, root_module['ns3::UanModesListValue']) @@ -2756,6 +2763,23 @@ def register_Ns3Reservation_methods(root_module, cls): [param('bool', 't', default_value='true')]) return +def register_Ns3RvBatteryModelHelper_methods(root_module, cls): + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')]) + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor] + cls.add_constructor([]) + ## rv-battery-model-helper.h: void ns3::RvBatteryModelHelper::Set(std::string name, ns3::AttributeValue const & v) [member function] + cls.add_method('Set', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'v')], + is_virtual=True) + ## rv-battery-model-helper.h: ns3::Ptr ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr node) const [member function] + cls.add_method('DoInstall', + 'ns3::Ptr< ns3::EnergySource >', + [param('ns3::Ptr< ns3::Node >', 'node')], + is_const=True, visibility='private', is_virtual=True) + return + def register_Ns3Tap_methods(root_module, cls): ## uan-prop-model.h: ns3::Tap::Tap(ns3::Tap const & arg0) [copy constructor] cls.add_constructor([param('ns3::Tap const &', 'arg0')]) @@ -3129,6 +3153,47 @@ def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return +def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls): + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')]) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor] + cls.add_constructor([]) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function] + cls.add_method('NotifyMaybeCcaBusyStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function] + cls.add_method('NotifyRxEndError', + 'void', + [], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function] + cls.add_method('NotifyRxEndOk', + 'void', + [], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart(ns3::Time duration) [member function] + cls.add_method('NotifyRxStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifySwitchingStart(ns3::Time duration) [member function] + cls.add_method('NotifySwitchingStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyTxStart(ns3::Time duration) [member function] + cls.add_method('NotifyTxStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback callback) [member function] + cls.add_method('SetChangeStateCallback', + 'void', + [param('ns3::Callback< void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')]) + return + def register_Ns3BasicEnergySourceHelper_methods(root_module, cls): ## basic-energy-source-helper.h: ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')]) @@ -5007,11 +5072,6 @@ def register_Ns3DeviceEnergyModel_methods(root_module, cls): 'double', [], is_const=True) - ## device-energy-model.h: ns3::Ptr ns3::DeviceEnergyModel::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) ## device-energy-model.h: double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function] cls.add_method('GetTotalEnergyConsumption', 'double', @@ -5032,11 +5092,6 @@ def register_Ns3DeviceEnergyModel_methods(root_module, cls): 'void', [param('ns3::Ptr< ns3::EnergySource >', 'source')], is_pure_virtual=True, is_virtual=True) - ## device-energy-model.h: void ns3::DeviceEnergyModel::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_pure_virtual=True, is_virtual=True) ## device-energy-model.h: double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function] cls.add_method('DoGetCurrentA', 'double', @@ -5053,11 +5108,10 @@ def register_Ns3EnergySource_methods(root_module, cls): cls.add_method('AppendDeviceEnergyModel', 'void', [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')]) - ## energy-source.h: void ns3::EnergySource::DecreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('DecreaseRemainingEnergy', + ## energy-source.h: void ns3::EnergySource::DisposeDeviceModels() [member function] + cls.add_method('DisposeDeviceModels', 'void', - [param('double', 'energyJ')], - is_pure_virtual=True, is_virtual=True) + []) ## energy-source.h: ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function] cls.add_method('FindDeviceEnergyModels', 'ns3::DeviceEnergyModelContainer', @@ -5096,15 +5150,14 @@ def register_Ns3EnergySource_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## energy-source.h: void ns3::EnergySource::IncreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('IncreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_pure_virtual=True, is_virtual=True) ## energy-source.h: void ns3::EnergySource::SetNode(ns3::Ptr node) [member function] cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')]) + ## energy-source.h: void ns3::EnergySource::StartDeviceModels() [member function] + cls.add_method('StartDeviceModels', + 'void', + []) ## energy-source.h: void ns3::EnergySource::UpdateEnergySource() [member function] cls.add_method('UpdateEnergySource', 'void', @@ -5748,6 +5801,116 @@ def register_Ns3Ipv6StaticRouting_methods(root_module, cls): visibility='protected', is_virtual=True) return +def register_Ns3RvBatteryModel_methods(root_module, cls): + ## rv-battery-model.h: ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')]) + ## rv-battery-model.h: ns3::RvBatteryModel::RvBatteryModel() [constructor] + cls.add_constructor([]) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetAlpha() const [member function] + cls.add_method('GetAlpha', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetBatteryLevel() [member function] + cls.add_method('GetBatteryLevel', + 'double', + []) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetBeta() const [member function] + cls.add_method('GetBeta', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetCutoffVoltage() const [member function] + cls.add_method('GetCutoffVoltage', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetEnergyFraction() [member function] + cls.add_method('GetEnergyFraction', + 'double', + [], + is_virtual=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetInitialEnergy() const [member function] + cls.add_method('GetInitialEnergy', + 'double', + [], + is_const=True, is_virtual=True) + ## rv-battery-model.h: ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function] + cls.add_method('GetLifetime', + 'ns3::Time', + [], + is_const=True) + ## rv-battery-model.h: int ns3::RvBatteryModel::GetNumOfTerms() const [member function] + cls.add_method('GetNumOfTerms', + 'int', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function] + cls.add_method('GetOpenCircuitVoltage', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetRemainingEnergy() [member function] + cls.add_method('GetRemainingEnergy', + 'double', + [], + is_virtual=True) + ## rv-battery-model.h: ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function] + cls.add_method('GetSamplingInterval', + 'ns3::Time', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetSupplyVoltage() const [member function] + cls.add_method('GetSupplyVoltage', + 'double', + [], + is_const=True, is_virtual=True) + ## rv-battery-model.h: static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetAlpha(double alpha) [member function] + cls.add_method('SetAlpha', + 'void', + [param('double', 'alpha')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetBeta(double beta) [member function] + cls.add_method('SetBeta', + 'void', + [param('double', 'beta')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function] + cls.add_method('SetCutoffVoltage', + 'void', + [param('double', 'voltage')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function] + cls.add_method('SetNumOfTerms', + 'void', + [param('int', 'num')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function] + cls.add_method('SetOpenCircuitVoltage', + 'void', + [param('double', 'voltage')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function] + cls.add_method('SetSamplingInterval', + 'void', + [param('ns3::Time', 'interval')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::UpdateEnergySource() [member function] + cls.add_method('UpdateEnergySource', + 'void', + [], + is_virtual=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='private', is_virtual=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) + return + def register_Ns3UanChannel_methods(root_module, cls): ## uan-channel.h: ns3::UanChannel::UanChannel(ns3::UanChannel const & arg0) [copy constructor] cls.add_constructor([param('ns3::UanChannel const &', 'arg0')]) @@ -6183,9 +6346,14 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'void', [param('int', 'newState')], is_virtual=True) - ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel::WifiRadioState ns3::WifiRadioEnergyModel::GetCurrentState() const [member function] + ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function] + cls.add_method('GetCcaBusyCurrentA', + 'double', + [], + is_const=True) + ## wifi-radio-energy-model.h: ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function] cls.add_method('GetCurrentState', - 'ns3::WifiRadioEnergyModel::WifiRadioState', + 'ns3::WifiPhy::State', [], is_const=True) ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function] @@ -6193,18 +6361,17 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'double', [], is_const=True) - ## wifi-radio-energy-model.h: ns3::Ptr ns3::WifiRadioEnergyModel::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_const=True, is_virtual=True) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function] + cls.add_method('GetPhyListener', + 'ns3::WifiRadioEnergyModelPhyListener *', + []) ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function] cls.add_method('GetRxCurrentA', 'double', [], is_const=True) - ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetSleepCurrentA() const [member function] - cls.add_method('GetSleepCurrentA', + ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function] + cls.add_method('GetSwitchingCurrentA', 'double', [], is_const=True) @@ -6228,6 +6395,10 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'void', [], is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function] + cls.add_method('SetCcaBusyCurrentA', + 'void', + [param('double', 'ccaBusyCurrentA')]) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback callback) [member function] cls.add_method('SetEnergyDepletionCallback', 'void', @@ -6241,19 +6412,14 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): cls.add_method('SetIdleCurrentA', 'void', [param('double', 'idleCurrentA')]) - ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_virtual=True) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function] cls.add_method('SetRxCurrentA', 'void', [param('double', 'rxCurrentA')]) - ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetSleepCurrentA(double sleepCurrentA) [member function] - cls.add_method('SetSleepCurrentA', + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function] + cls.add_method('SetSwitchingCurrentA', 'void', - [param('double', 'sleepCurrentA')]) + [param('double', 'switchingCurrentA')]) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function] cls.add_method('SetTxCurrentA', 'void', @@ -6275,11 +6441,6 @@ def register_Ns3BasicEnergySource_methods(root_module, cls): cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')]) ## basic-energy-source.h: ns3::BasicEnergySource::BasicEnergySource() [constructor] cls.add_constructor([]) - ## basic-energy-source.h: void ns3::BasicEnergySource::DecreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('DecreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_virtual=True) ## basic-energy-source.h: double ns3::BasicEnergySource::GetEnergyFraction() [member function] cls.add_method('GetEnergyFraction', 'double', @@ -6310,11 +6471,6 @@ def register_Ns3BasicEnergySource_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## basic-energy-source.h: void ns3::BasicEnergySource::IncreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('IncreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_virtual=True) ## basic-energy-source.h: void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function] cls.add_method('SetEnergyUpdateInterval', 'void', diff --git a/bindings/python/apidefs/gcc-LP64/callbacks_list.py b/bindings/python/apidefs/gcc-LP64/callbacks_list.py index 282ab815b..ee09273cc 100644 --- a/bindings/python/apidefs/gcc-LP64/callbacks_list.py +++ b/bindings/python/apidefs/gcc-LP64/callbacks_list.py @@ -2,6 +2,7 @@ callback_classes = [ ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'ns3::Ptr', 'ns3::Address const&', 'ns3::Address const&', 'unsigned short', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'double', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr', 'double', 'ns3::UanTxMode', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py index 7a7c10d9e..59d24b223 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py @@ -351,6 +351,7 @@ def register_methods(root_module): register_Ns3TestRunner_methods(root_module, root_module['ns3::TestRunner']) register_Ns3TestSuite_methods(root_module, root_module['ns3::TestSuite']) register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >']) + register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >']) register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable']) register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId']) register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo']) @@ -1340,6 +1341,40 @@ def register_Ns3TracedValue__Double_methods(root_module, cls): [param('double const &', 'v')]) return +def register_Ns3TracedValue__Ns3Time_methods(root_module, cls): + ## traced-value.h: ns3::TracedValue::TracedValue() [constructor] + cls.add_constructor([]) + ## traced-value.h: ns3::TracedValue::TracedValue(ns3::TracedValue const & o) [copy constructor] + cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')]) + ## traced-value.h: ns3::TracedValue::TracedValue(ns3::Time const & v) [constructor] + cls.add_constructor([param('ns3::Time const &', 'v')]) + ## traced-value.h: void ns3::TracedValue::Connect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + cls.add_method('Connect', + 'void', + [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) + ## traced-value.h: void ns3::TracedValue::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function] + cls.add_method('ConnectWithoutContext', + 'void', + [param('ns3::CallbackBase const &', 'cb')]) + ## traced-value.h: void ns3::TracedValue::Disconnect(ns3::CallbackBase const & cb, std::basic_string,std::allocator > path) [member function] + cls.add_method('Disconnect', + 'void', + [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')]) + ## traced-value.h: void ns3::TracedValue::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function] + cls.add_method('DisconnectWithoutContext', + 'void', + [param('ns3::CallbackBase const &', 'cb')]) + ## traced-value.h: ns3::Time ns3::TracedValue::Get() const [member function] + cls.add_method('Get', + 'ns3::Time', + [], + is_const=True) + ## traced-value.h: void ns3::TracedValue::Set(ns3::Time const & v) [member function] + cls.add_method('Set', + 'void', + [param('ns3::Time const &', 'v')]) + return + def register_Ns3TriangularVariable_methods(root_module, cls): ## random-variable.h: ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')]) diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py b/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py index de199a31c..6587e6eb1 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_simulator.py @@ -5,7 +5,7 @@ def register_types(module): ## event-id.h: ns3::EventId [class] module.add_class('EventId') - ## high-precision-128.h: ns3::HighPrecision [class] + ## high-precision-double.h: ns3::HighPrecision [class] module.add_class('HighPrecision') ## simulator.h: ns3::Simulator [class] module.add_class('Simulator', is_singleton=True) @@ -25,6 +25,10 @@ def register_types(module): module.add_enum('State', ['RUNNING', 'EXPIRED', 'SUSPENDED'], outer_class=root_module['ns3::Timer']) ## timer-impl.h: ns3::TimerImpl [class] module.add_class('TimerImpl', allow_subclassing=True) + ## traced-value.h: ns3::TracedValue [class] + module.add_class('TracedValue', template_parameters=['ns3::Time']) + ## traced-value.h: ns3::TracedValue [class] + root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time']) ## watchdog.h: ns3::Watchdog [class] module.add_class('Watchdog') ## nstime.h: ns3::Scalar [class] @@ -231,67 +235,65 @@ def register_Ns3EventId_methods(root_module, cls): def register_Ns3HighPrecision_methods(root_module, cls): cls.add_output_stream_operator() - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor] cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(int64_t high, uint64_t low) [constructor] - cls.add_constructor([param('int64_t', 'high'), param('uint64_t', 'low')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision() [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision() [constructor] cls.add_constructor([]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor] cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')]) - ## high-precision-128.h: ns3::HighPrecision::HighPrecision(double value) [constructor] + ## high-precision-double.h: ns3::HighPrecision::HighPrecision(double value) [constructor] cls.add_constructor([param('double', 'value')]) - ## high-precision-128.h: void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function] cls.add_method('Add', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: int ns3::HighPrecision::Compare(ns3::HighPrecision const & o) const [member function] + ## high-precision-double.h: int ns3::HighPrecision::Compare(ns3::HighPrecision const & o) const [member function] cls.add_method('Compare', 'int', [param('ns3::HighPrecision const &', 'o')], is_const=True) - ## high-precision-128.h: void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function] cls.add_method('Div', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: double ns3::HighPrecision::GetDouble() const [member function] + ## high-precision-double.h: double ns3::HighPrecision::GetDouble() const [member function] cls.add_method('GetDouble', 'double', [], is_const=True) - ## high-precision-128.h: int64_t ns3::HighPrecision::GetHigh() const [member function] + ## high-precision-double.h: int64_t ns3::HighPrecision::GetHigh() const [member function] cls.add_method('GetHigh', 'int64_t', [], is_const=True) - ## high-precision-128.h: int64_t ns3::HighPrecision::GetInteger() const [member function] + ## high-precision-double.h: int64_t ns3::HighPrecision::GetInteger() const [member function] cls.add_method('GetInteger', 'int64_t', [], is_const=True) - ## high-precision-128.h: uint64_t ns3::HighPrecision::GetLow() const [member function] + ## high-precision-double.h: uint64_t ns3::HighPrecision::GetLow() const [member function] cls.add_method('GetLow', 'uint64_t', [], is_const=True) - ## high-precision-128.h: static ns3::HighPrecision ns3::HighPrecision::Invert(uint64_t v) [member function] + ## high-precision-double.h: static ns3::HighPrecision ns3::HighPrecision::Invert(uint64_t v) [member function] cls.add_method('Invert', 'ns3::HighPrecision', [param('uint64_t', 'v')], is_static=True) - ## high-precision-128.h: void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function] cls.add_method('Mul', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function] cls.add_method('MulByInvert', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function] + ## high-precision-double.h: void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function] cls.add_method('Sub', 'void', [param('ns3::HighPrecision const &', 'o')]) - ## high-precision-128.h: static ns3::HighPrecision ns3::HighPrecision::Zero() [member function] + ## high-precision-double.h: static ns3::HighPrecision ns3::HighPrecision::Zero() [member function] cls.add_method('Zero', 'ns3::HighPrecision', [], diff --git a/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py b/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py index 4095c0d05..8e38cba6f 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py +++ b/bindings/python/apidefs/gcc-LP64/ns3modulegen_generated.py @@ -588,6 +588,8 @@ def register_types(module): module.add_class('TxPacketSample', parent=root_module['ns3::PyViz::PacketSample'], outer_class=root_module['ns3::PyViz']) ## uan-mac-rc.h: ns3::Reservation [class] module.add_class('Reservation') + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper [class] + module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper']) ## uan-prop-model.h: ns3::Tap [class] module.add_class('Tap') ## uan-address.h: ns3::UanAddress [class] @@ -612,6 +614,8 @@ def register_types(module): module.add_class('UanTxModeFactory') ## wifi-radio-energy-model-helper.h: ns3::WifiRadioEnergyModelHelper [class] module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper']) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener [class] + module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener']) ## basic-energy-source-helper.h: ns3::BasicEnergySourceHelper [class] module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper']) ## ipv4-global-routing-helper.h: ns3::Ipv4GlobalRoutingHelper [class] @@ -712,6 +716,8 @@ def register_types(module): module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) ## ipv6-static-routing.h: ns3::Ipv6StaticRouting [class] module.add_class('Ipv6StaticRouting', parent=root_module['ns3::Ipv6RoutingProtocol']) + ## rv-battery-model.h: ns3::RvBatteryModel [class] + module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource']) ## uan-channel.h: ns3::UanChannel [class] module.add_class('UanChannel', parent=root_module['ns3::Channel']) ## uan-tx-mode.h: ns3::UanModesListChecker [class] @@ -724,8 +730,6 @@ def register_types(module): module.add_class('VirtualNetDevice', parent=root_module['ns3::NetDevice']) ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel [class] module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel']) - ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel::WifiRadioState [enumeration] - module.add_enum('WifiRadioState', ['TX', 'RX', 'IDLE', 'SLEEP'], outer_class=root_module['ns3::WifiRadioEnergyModel']) ## basic-energy-source.h: ns3::BasicEnergySource [class] module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource']) ## bridge-channel.h: ns3::BridgeChannel [class] @@ -971,6 +975,7 @@ def register_methods(root_module): register_Ns3PyVizTransmissionSample_methods(root_module, root_module['ns3::PyViz::TransmissionSample']) register_Ns3PyVizTxPacketSample_methods(root_module, root_module['ns3::PyViz::TxPacketSample']) register_Ns3Reservation_methods(root_module, root_module['ns3::Reservation']) + register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper']) register_Ns3Tap_methods(root_module, root_module['ns3::Tap']) register_Ns3UanAddress_methods(root_module, root_module['ns3::UanAddress']) register_Ns3UanHelper_methods(root_module, root_module['ns3::UanHelper']) @@ -981,6 +986,7 @@ def register_methods(root_module): register_Ns3UanTxMode_methods(root_module, root_module['ns3::UanTxMode']) register_Ns3UanTxModeFactory_methods(root_module, root_module['ns3::UanTxModeFactory']) register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper']) + register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener']) register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper']) register_Ns3Ipv4GlobalRoutingHelper_methods(root_module, root_module['ns3::Ipv4GlobalRoutingHelper']) register_Ns3Ipv4ListRoutingHelper_methods(root_module, root_module['ns3::Ipv4ListRoutingHelper']) @@ -1027,6 +1033,7 @@ def register_methods(root_module): register_Ns3Ipv4FlowProbe_methods(root_module, root_module['ns3::Ipv4FlowProbe']) register_Ns3Ipv4StaticRouting_methods(root_module, root_module['ns3::Ipv4StaticRouting']) register_Ns3Ipv6StaticRouting_methods(root_module, root_module['ns3::Ipv6StaticRouting']) + register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel']) register_Ns3UanChannel_methods(root_module, root_module['ns3::UanChannel']) register_Ns3UanModesListChecker_methods(root_module, root_module['ns3::UanModesListChecker']) register_Ns3UanModesListValue_methods(root_module, root_module['ns3::UanModesListValue']) @@ -2756,6 +2763,23 @@ def register_Ns3Reservation_methods(root_module, cls): [param('bool', 't', default_value='true')]) return +def register_Ns3RvBatteryModelHelper_methods(root_module, cls): + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')]) + ## rv-battery-model-helper.h: ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor] + cls.add_constructor([]) + ## rv-battery-model-helper.h: void ns3::RvBatteryModelHelper::Set(std::string name, ns3::AttributeValue const & v) [member function] + cls.add_method('Set', + 'void', + [param('std::string', 'name'), param('ns3::AttributeValue const &', 'v')], + is_virtual=True) + ## rv-battery-model-helper.h: ns3::Ptr ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr node) const [member function] + cls.add_method('DoInstall', + 'ns3::Ptr< ns3::EnergySource >', + [param('ns3::Ptr< ns3::Node >', 'node')], + is_const=True, visibility='private', is_virtual=True) + return + def register_Ns3Tap_methods(root_module, cls): ## uan-prop-model.h: ns3::Tap::Tap(ns3::Tap const & arg0) [copy constructor] cls.add_constructor([param('ns3::Tap const &', 'arg0')]) @@ -3129,6 +3153,47 @@ def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls): is_const=True, visibility='private', is_virtual=True) return +def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls): + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor] + cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')]) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor] + cls.add_constructor([]) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function] + cls.add_method('NotifyMaybeCcaBusyStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function] + cls.add_method('NotifyRxEndError', + 'void', + [], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function] + cls.add_method('NotifyRxEndOk', + 'void', + [], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyRxStart(ns3::Time duration) [member function] + cls.add_method('NotifyRxStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifySwitchingStart(ns3::Time duration) [member function] + cls.add_method('NotifySwitchingStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::NotifyTxStart(ns3::Time duration) [member function] + cls.add_method('NotifyTxStart', + 'void', + [param('ns3::Time', 'duration')], + is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback callback) [member function] + cls.add_method('SetChangeStateCallback', + 'void', + [param('ns3::Callback< void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')]) + return + def register_Ns3BasicEnergySourceHelper_methods(root_module, cls): ## basic-energy-source-helper.h: ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor] cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')]) @@ -5007,11 +5072,6 @@ def register_Ns3DeviceEnergyModel_methods(root_module, cls): 'double', [], is_const=True) - ## device-energy-model.h: ns3::Ptr ns3::DeviceEnergyModel::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_pure_virtual=True, is_const=True, is_virtual=True) ## device-energy-model.h: double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function] cls.add_method('GetTotalEnergyConsumption', 'double', @@ -5032,11 +5092,6 @@ def register_Ns3DeviceEnergyModel_methods(root_module, cls): 'void', [param('ns3::Ptr< ns3::EnergySource >', 'source')], is_pure_virtual=True, is_virtual=True) - ## device-energy-model.h: void ns3::DeviceEnergyModel::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_pure_virtual=True, is_virtual=True) ## device-energy-model.h: double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function] cls.add_method('DoGetCurrentA', 'double', @@ -5053,11 +5108,10 @@ def register_Ns3EnergySource_methods(root_module, cls): cls.add_method('AppendDeviceEnergyModel', 'void', [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')]) - ## energy-source.h: void ns3::EnergySource::DecreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('DecreaseRemainingEnergy', + ## energy-source.h: void ns3::EnergySource::DisposeDeviceModels() [member function] + cls.add_method('DisposeDeviceModels', 'void', - [param('double', 'energyJ')], - is_pure_virtual=True, is_virtual=True) + []) ## energy-source.h: ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function] cls.add_method('FindDeviceEnergyModels', 'ns3::DeviceEnergyModelContainer', @@ -5096,15 +5150,14 @@ def register_Ns3EnergySource_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## energy-source.h: void ns3::EnergySource::IncreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('IncreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_pure_virtual=True, is_virtual=True) ## energy-source.h: void ns3::EnergySource::SetNode(ns3::Ptr node) [member function] cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')]) + ## energy-source.h: void ns3::EnergySource::StartDeviceModels() [member function] + cls.add_method('StartDeviceModels', + 'void', + []) ## energy-source.h: void ns3::EnergySource::UpdateEnergySource() [member function] cls.add_method('UpdateEnergySource', 'void', @@ -5748,6 +5801,116 @@ def register_Ns3Ipv6StaticRouting_methods(root_module, cls): visibility='protected', is_virtual=True) return +def register_Ns3RvBatteryModel_methods(root_module, cls): + ## rv-battery-model.h: ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor] + cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')]) + ## rv-battery-model.h: ns3::RvBatteryModel::RvBatteryModel() [constructor] + cls.add_constructor([]) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetAlpha() const [member function] + cls.add_method('GetAlpha', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetBatteryLevel() [member function] + cls.add_method('GetBatteryLevel', + 'double', + []) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetBeta() const [member function] + cls.add_method('GetBeta', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetCutoffVoltage() const [member function] + cls.add_method('GetCutoffVoltage', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetEnergyFraction() [member function] + cls.add_method('GetEnergyFraction', + 'double', + [], + is_virtual=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetInitialEnergy() const [member function] + cls.add_method('GetInitialEnergy', + 'double', + [], + is_const=True, is_virtual=True) + ## rv-battery-model.h: ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function] + cls.add_method('GetLifetime', + 'ns3::Time', + [], + is_const=True) + ## rv-battery-model.h: int ns3::RvBatteryModel::GetNumOfTerms() const [member function] + cls.add_method('GetNumOfTerms', + 'int', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function] + cls.add_method('GetOpenCircuitVoltage', + 'double', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetRemainingEnergy() [member function] + cls.add_method('GetRemainingEnergy', + 'double', + [], + is_virtual=True) + ## rv-battery-model.h: ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function] + cls.add_method('GetSamplingInterval', + 'ns3::Time', + [], + is_const=True) + ## rv-battery-model.h: double ns3::RvBatteryModel::GetSupplyVoltage() const [member function] + cls.add_method('GetSupplyVoltage', + 'double', + [], + is_const=True, is_virtual=True) + ## rv-battery-model.h: static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function] + cls.add_method('GetTypeId', + 'ns3::TypeId', + [], + is_static=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetAlpha(double alpha) [member function] + cls.add_method('SetAlpha', + 'void', + [param('double', 'alpha')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetBeta(double beta) [member function] + cls.add_method('SetBeta', + 'void', + [param('double', 'beta')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function] + cls.add_method('SetCutoffVoltage', + 'void', + [param('double', 'voltage')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function] + cls.add_method('SetNumOfTerms', + 'void', + [param('int', 'num')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function] + cls.add_method('SetOpenCircuitVoltage', + 'void', + [param('double', 'voltage')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function] + cls.add_method('SetSamplingInterval', + 'void', + [param('ns3::Time', 'interval')]) + ## rv-battery-model.h: void ns3::RvBatteryModel::UpdateEnergySource() [member function] + cls.add_method('UpdateEnergySource', + 'void', + [], + is_virtual=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::DoDispose() [member function] + cls.add_method('DoDispose', + 'void', + [], + visibility='private', is_virtual=True) + ## rv-battery-model.h: void ns3::RvBatteryModel::DoStart() [member function] + cls.add_method('DoStart', + 'void', + [], + visibility='private', is_virtual=True) + return + def register_Ns3UanChannel_methods(root_module, cls): ## uan-channel.h: ns3::UanChannel::UanChannel(ns3::UanChannel const & arg0) [copy constructor] cls.add_constructor([param('ns3::UanChannel const &', 'arg0')]) @@ -6183,9 +6346,14 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'void', [param('int', 'newState')], is_virtual=True) - ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModel::WifiRadioState ns3::WifiRadioEnergyModel::GetCurrentState() const [member function] + ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function] + cls.add_method('GetCcaBusyCurrentA', + 'double', + [], + is_const=True) + ## wifi-radio-energy-model.h: ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function] cls.add_method('GetCurrentState', - 'ns3::WifiRadioEnergyModel::WifiRadioState', + 'ns3::WifiPhy::State', [], is_const=True) ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function] @@ -6193,18 +6361,17 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'double', [], is_const=True) - ## wifi-radio-energy-model.h: ns3::Ptr ns3::WifiRadioEnergyModel::GetNode() const [member function] - cls.add_method('GetNode', - 'ns3::Ptr< ns3::Node >', - [], - is_const=True, is_virtual=True) + ## wifi-radio-energy-model.h: ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function] + cls.add_method('GetPhyListener', + 'ns3::WifiRadioEnergyModelPhyListener *', + []) ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function] cls.add_method('GetRxCurrentA', 'double', [], is_const=True) - ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetSleepCurrentA() const [member function] - cls.add_method('GetSleepCurrentA', + ## wifi-radio-energy-model.h: double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function] + cls.add_method('GetSwitchingCurrentA', 'double', [], is_const=True) @@ -6228,6 +6395,10 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): 'void', [], is_virtual=True) + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function] + cls.add_method('SetCcaBusyCurrentA', + 'void', + [param('double', 'ccaBusyCurrentA')]) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback callback) [member function] cls.add_method('SetEnergyDepletionCallback', 'void', @@ -6241,19 +6412,14 @@ def register_Ns3WifiRadioEnergyModel_methods(root_module, cls): cls.add_method('SetIdleCurrentA', 'void', [param('double', 'idleCurrentA')]) - ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetNode(ns3::Ptr node) [member function] - cls.add_method('SetNode', - 'void', - [param('ns3::Ptr< ns3::Node >', 'node')], - is_virtual=True) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function] cls.add_method('SetRxCurrentA', 'void', [param('double', 'rxCurrentA')]) - ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetSleepCurrentA(double sleepCurrentA) [member function] - cls.add_method('SetSleepCurrentA', + ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function] + cls.add_method('SetSwitchingCurrentA', 'void', - [param('double', 'sleepCurrentA')]) + [param('double', 'switchingCurrentA')]) ## wifi-radio-energy-model.h: void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function] cls.add_method('SetTxCurrentA', 'void', @@ -6275,11 +6441,6 @@ def register_Ns3BasicEnergySource_methods(root_module, cls): cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')]) ## basic-energy-source.h: ns3::BasicEnergySource::BasicEnergySource() [constructor] cls.add_constructor([]) - ## basic-energy-source.h: void ns3::BasicEnergySource::DecreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('DecreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_virtual=True) ## basic-energy-source.h: double ns3::BasicEnergySource::GetEnergyFraction() [member function] cls.add_method('GetEnergyFraction', 'double', @@ -6310,11 +6471,6 @@ def register_Ns3BasicEnergySource_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) - ## basic-energy-source.h: void ns3::BasicEnergySource::IncreaseRemainingEnergy(double energyJ) [member function] - cls.add_method('IncreaseRemainingEnergy', - 'void', - [param('double', 'energyJ')], - is_virtual=True) ## basic-energy-source.h: void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function] cls.add_method('SetEnergyUpdateInterval', 'void',