--- a/src/contrib/energy/bindings/callbacks_list.py Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-callback_classes = [
- ['void', 'ns3::empty', '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'],
- ['void', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<ns3::Packet const>', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::PacketType', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
-]
--- a/src/contrib/energy/bindings/modulegen__gcc_ILP32.py Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5035 +0,0 @@
-from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
-
-
-import pybindgen.settings
-import warnings
-
-class ErrorHandler(pybindgen.settings.ErrorHandler):
- def handle_error(self, wrapper, exception, traceback_):
- warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
- return True
-pybindgen.settings.error_handler = ErrorHandler()
-
-
-import sys
-
-def module_init():
- root_module = Module('ns.energy', cpp_namespace='::ns3')
- return root_module
-
-def register_types(module):
- root_module = module.get_root()
-
- ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate [enumeration]
- module.add_enum('WifiCodeRate', ['WIFI_CODE_RATE_UNDEFINED', 'WIFI_CODE_RATE_3_4', 'WIFI_CODE_RATE_2_3', 'WIFI_CODE_RATE_1_2'], import_from_module='ns.wifi')
- ## wifi-preamble.h (module 'wifi'): ns3::WifiPreamble [enumeration]
- module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT'], import_from_module='ns.wifi')
- ## wifi-phy-standard.h (module 'wifi'): ns3::WifiPhyStandard [enumeration]
- module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211g', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH'], import_from_module='ns.wifi')
- ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass [enumeration]
- module.add_enum('WifiModulationClass', ['WIFI_MOD_CLASS_UNKNOWN', 'WIFI_MOD_CLASS_IR', 'WIFI_MOD_CLASS_FHSS', 'WIFI_MOD_CLASS_DSSS', 'WIFI_MOD_CLASS_ERP_PBCC', 'WIFI_MOD_CLASS_DSSS_OFDM', 'WIFI_MOD_CLASS_ERP_OFDM', 'WIFI_MOD_CLASS_OFDM', 'WIFI_MOD_CLASS_HT'], import_from_module='ns.wifi')
- ## address.h (module 'network'): ns3::Address [class]
- module.add_class('Address', import_from_module='ns.network')
- ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration]
- module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network')
- ## attribute-list.h (module 'core'): ns3::AttributeList [class]
- module.add_class('AttributeList', import_from_module='ns.core')
- ## buffer.h (module 'network'): ns3::Buffer [class]
- module.add_class('Buffer', import_from_module='ns.network')
- ## buffer.h (module 'network'): ns3::Buffer::Iterator [class]
- module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer'])
- ## packet.h (module 'network'): ns3::ByteTagIterator [class]
- module.add_class('ByteTagIterator', import_from_module='ns.network')
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator'])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class]
- module.add_class('ByteTagList', import_from_module='ns.network')
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class]
- module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList'])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator'])
- ## callback.h (module 'core'): ns3::CallbackBase [class]
- module.add_class('CallbackBase', import_from_module='ns.core')
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer [class]
- module.add_class('DeviceEnergyModelContainer')
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper [class]
- module.add_class('DeviceEnergyModelHelper', allow_subclassing=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper [class]
- module.add_class('EnergySourceHelper', allow_subclassing=True)
- ## event-id.h (module 'core'): ns3::EventId [class]
- module.add_class('EventId', import_from_module='ns.core')
- ## high-precision-128.h (module 'core'): ns3::HighPrecision [class]
- module.add_class('HighPrecision', import_from_module='ns.core')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
- module.add_class('Ipv4Address', import_from_module='ns.network')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
- root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class]
- module.add_class('Ipv4Mask', import_from_module='ns.network')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
- module.add_class('Ipv6Address', import_from_module='ns.network')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
- root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class]
- module.add_class('Ipv6Prefix', import_from_module='ns.network')
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class]
- module.add_class('NetDeviceContainer', import_from_module='ns.network')
- ## node-container.h (module 'network'): ns3::NodeContainer [class]
- module.add_class('NodeContainer', import_from_module='ns.network')
- ## object-base.h (module 'core'): ns3::ObjectBase [class]
- module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core')
- ## object.h (module 'core'): ns3::ObjectDeleter [struct]
- module.add_class('ObjectDeleter', import_from_module='ns.core')
- ## object-factory.h (module 'core'): ns3::ObjectFactory [class]
- module.add_class('ObjectFactory', import_from_module='ns.core')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class]
- module.add_class('PacketMetadata', import_from_module='ns.network')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration]
- module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
- module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
- ## packet.h (module 'network'): ns3::PacketTagIterator [class]
- module.add_class('PacketTagIterator', import_from_module='ns.network')
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
- module.add_class('PacketTagList', import_from_module='ns.network')
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
- module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
- module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## tag.h (module 'network'): ns3::Tag [class]
- module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
- ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
- module.add_class('TagBuffer', import_from_module='ns.network')
- ## nstime.h (module 'core'): ns3::Time [class]
- module.add_class('Time', import_from_module='ns.core')
- ## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
- module.add_enum('Unit', ['S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core')
- ## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
- module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['double'])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
- module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['ns3::Time'])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
- root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time'])
- ## type-id.h (module 'core'): ns3::TypeId [class]
- module.add_class('TypeId', import_from_module='ns.core')
- ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
- module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo [struct]
- module.add_class('AttributeInfo', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList [class]
- module.add_class('UnsafeAttributeList', import_from_module='ns.core')
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode [class]
- module.add_class('WifiMode', import_from_module='ns.wifi')
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory [class]
- module.add_class('WifiModeFactory', import_from_module='ns.wifi')
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener [class]
- module.add_class('WifiPhyListener', allow_subclassing=True, import_from_module='ns.wifi')
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper [class]
- module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper'])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener [class]
- module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener'])
- ## empty.h (module 'core'): ns3::empty [class]
- module.add_class('empty', import_from_module='ns.core')
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
- module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
- ## chunk.h (module 'network'): ns3::Chunk [class]
- module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
- ## header.h (module 'network'): ns3::Header [class]
- module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
- ## object.h (module 'core'): ns3::Object [class]
- module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
- ## object.h (module 'core'): ns3::Object::AggregateIterator [class]
- module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object'])
- ## nstime.h (module 'core'): ns3::Scalar [class]
- module.add_class('Scalar', import_from_module='ns.core')
- ## nstime.h (module 'core'): ns3::Scalar [class]
- root_module['ns3::Scalar'].implicitly_converts_to(root_module['ns3::Time'])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## trailer.h (module 'network'): ns3::Trailer [class]
- module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy [class]
- module.add_class('WifiPhy', import_from_module='ns.wifi', parent=root_module['ns3::Object'])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::State [enumeration]
- module.add_enum('State', ['IDLE', 'CCA_BUSY', 'TX', 'RX', 'SWITCHING'], outer_class=root_module['ns3::WifiPhy'], import_from_module='ns.wifi')
- ## attribute.h (module 'core'): ns3::AttributeAccessor [class]
- module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
- ## attribute.h (module 'core'): ns3::AttributeChecker [class]
- module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
- ## attribute.h (module 'core'): ns3::AttributeValue [class]
- module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
- ## boolean.h (module 'core'): ns3::BooleanChecker [class]
- module.add_class('BooleanChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## boolean.h (module 'core'): ns3::BooleanValue [class]
- module.add_class('BooleanValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## callback.h (module 'core'): ns3::CallbackChecker [class]
- module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## callback.h (module 'core'): ns3::CallbackImplBase [class]
- module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
- ## callback.h (module 'core'): ns3::CallbackValue [class]
- module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel [class]
- module.add_class('DeviceEnergyModel', parent=root_module['ns3::Object'])
- ## double.h (module 'core'): ns3::DoubleValue [class]
- module.add_class('DoubleValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class]
- module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## energy-source.h (module 'energy'): ns3::EnergySource [class]
- module.add_class('EnergySource', parent=root_module['ns3::Object'])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer [class]
- module.add_class('EnergySourceContainer', parent=root_module['ns3::Object'])
- ## enum.h (module 'core'): ns3::EnumChecker [class]
- module.add_class('EnumChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## enum.h (module 'core'): ns3::EnumValue [class]
- module.add_class('EnumValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## event-impl.h (module 'core'): ns3::EventImpl [class]
- module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
- ## integer.h (module 'core'): ns3::IntegerValue [class]
- module.add_class('IntegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class]
- module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class]
- module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class]
- module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class]
- module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class]
- module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class]
- module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class]
- module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class]
- module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource [class]
- module.add_class('LiIonEnergySource', parent=root_module['ns3::EnergySource'])
- ## net-device.h (module 'network'): ns3::NetDevice [class]
- module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object'])
- ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration]
- module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network')
- ## nix-vector.h (module 'network'): ns3::NixVector [class]
- module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
- ## node.h (module 'network'): ns3::Node [class]
- module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object'])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class]
- module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class]
- module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## packet.h (module 'network'): ns3::Packet [class]
- module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel [class]
- module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource'])
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel [class]
- module.add_class('SimpleDeviceEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
- ## nstime.h (module 'core'): ns3::TimeChecker [class]
- module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## nstime.h (module 'core'): ns3::TimeValue [class]
- module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## type-id.h (module 'core'): ns3::TypeIdChecker [class]
- module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## type-id.h (module 'core'): ns3::TypeIdValue [class]
- module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## uinteger.h (module 'core'): ns3::UintegerValue [class]
- module.add_class('UintegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker [class]
- module.add_class('WifiModeChecker', import_from_module='ns.wifi', parent=root_module['ns3::AttributeChecker'])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue [class]
- module.add_class('WifiModeValue', import_from_module='ns.wifi', parent=root_module['ns3::AttributeValue'])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel [class]
- module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
- ## address.h (module 'network'): ns3::AddressChecker [class]
- module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## address.h (module 'network'): ns3::AddressValue [class]
- module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
- module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
- typehandlers.add_type_alias('ns3::Time', 'ns3::TimeSquare')
- typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeSquare*')
- typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeSquare&')
- module.add_typedef(root_module['ns3::Time'], 'TimeSquare')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
- typehandlers.add_type_alias('ns3::Time', 'ns3::TimeInvert')
- typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeInvert*')
- typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeInvert&')
- module.add_typedef(root_module['ns3::Time'], 'TimeInvert')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
-
- ## Register a nested module for the namespace FatalImpl
-
- nested_module = module.add_cpp_namespace('FatalImpl')
- register_types_ns3_FatalImpl(nested_module)
-
-
- ## Register a nested module for the namespace internal
-
- nested_module = module.add_cpp_namespace('internal')
- register_types_ns3_internal(nested_module)
-
-
-def register_types_ns3_FatalImpl(module):
- root_module = module.get_root()
-
-
-def register_types_ns3_internal(module):
- root_module = module.get_root()
-
-
-def register_methods(root_module):
- register_Ns3Address_methods(root_module, root_module['ns3::Address'])
- register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
- register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
- register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
- register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
- register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
- register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
- register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
- register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
- register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
- register_Ns3DeviceEnergyModelContainer_methods(root_module, root_module['ns3::DeviceEnergyModelContainer'])
- register_Ns3DeviceEnergyModelHelper_methods(root_module, root_module['ns3::DeviceEnergyModelHelper'])
- register_Ns3EnergySourceHelper_methods(root_module, root_module['ns3::EnergySourceHelper'])
- register_Ns3EventId_methods(root_module, root_module['ns3::EventId'])
- register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision'])
- register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address'])
- register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask'])
- register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address'])
- register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix'])
- register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
- register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer'])
- register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
- register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
- register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
- register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
- register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
- register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
- register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
- register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
- register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
- register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
- register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
- register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
- register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
- register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
- register_Ns3Time_methods(root_module, root_module['ns3::Time'])
- register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
- register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
- register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
- register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
- register_Ns3UnsafeAttributeList_methods(root_module, root_module['ns3::UnsafeAttributeList'])
- register_Ns3WifiMode_methods(root_module, root_module['ns3::WifiMode'])
- register_Ns3WifiModeFactory_methods(root_module, root_module['ns3::WifiModeFactory'])
- register_Ns3WifiPhyListener_methods(root_module, root_module['ns3::WifiPhyListener'])
- register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper'])
- register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener'])
- register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
- register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper'])
- register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
- register_Ns3Header_methods(root_module, root_module['ns3::Header'])
- register_Ns3Object_methods(root_module, root_module['ns3::Object'])
- register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
- register_Ns3Scalar_methods(root_module, root_module['ns3::Scalar'])
- register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
- register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
- register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
- register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
- register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
- register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
- register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
- register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
- register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy'])
- register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
- register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
- register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
- register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
- register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue'])
- register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
- register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
- register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
- register_Ns3DeviceEnergyModel_methods(root_module, root_module['ns3::DeviceEnergyModel'])
- register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue'])
- register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue'])
- register_Ns3EnergySource_methods(root_module, root_module['ns3::EnergySource'])
- register_Ns3EnergySourceContainer_methods(root_module, root_module['ns3::EnergySourceContainer'])
- register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
- register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue'])
- register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl'])
- register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue'])
- register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker'])
- register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue'])
- register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker'])
- register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue'])
- register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker'])
- register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue'])
- register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker'])
- register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue'])
- register_Ns3LiIonEnergySource_methods(root_module, root_module['ns3::LiIonEnergySource'])
- register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
- register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector'])
- register_Ns3Node_methods(root_module, root_module['ns3::Node'])
- register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker'])
- register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
- register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
- register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel'])
- register_Ns3SimpleDeviceEnergyModel_methods(root_module, root_module['ns3::SimpleDeviceEnergyModel'])
- register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
- register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
- register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
- register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
- register_Ns3UintegerValue_methods(root_module, root_module['ns3::UintegerValue'])
- register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker'])
- register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue'])
- register_Ns3WifiRadioEnergyModel_methods(root_module, root_module['ns3::WifiRadioEnergyModel'])
- register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
- register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
- register_Ns3BasicEnergySource_methods(root_module, root_module['ns3::BasicEnergySource'])
- return
-
-def register_Ns3Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## address.h (module 'network'): ns3::Address::Address() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
- cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor]
- cls.add_constructor([param('ns3::Address const &', 'address')])
- ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function]
- cls.add_method('CheckCompatible',
- 'bool',
- [param('uint8_t', 'type'), param('uint8_t', 'len')],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function]
- cls.add_method('CopyAllFrom',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function]
- cls.add_method('CopyAllTo',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint8_t', 'len')],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function]
- cls.add_method('CopyFrom',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function]
- cls.add_method('CopyTo',
- 'uint32_t',
- [param('uint8_t *', 'buffer')],
- is_const=True)
- ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function]
- cls.add_method('Deserialize',
- 'void',
- [param('ns3::TagBuffer', 'buffer')])
- ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function]
- cls.add_method('GetLength',
- 'uint8_t',
- [],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function]
- cls.add_method('IsInvalid',
- 'bool',
- [],
- is_const=True)
- ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('uint8_t', 'type')],
- is_const=True)
- ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function]
- cls.add_method('Register',
- 'uint8_t',
- [],
- is_static=True)
- ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::TagBuffer', 'buffer')],
- is_const=True)
- return
-
-def register_Ns3AttributeList_methods(root_module, cls):
- ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList() [constructor]
- cls.add_constructor([])
- ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList(ns3::AttributeList const & o) [copy constructor]
- cls.add_constructor([param('ns3::AttributeList const &', 'o')])
- ## attribute-list.h (module 'core'): bool ns3::AttributeList::DeserializeFromString(std::string value) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value')])
- ## attribute-list.h (module 'core'): static ns3::AttributeList * ns3::AttributeList::GetGlobal() [member function]
- cls.add_method('GetGlobal',
- 'ns3::AttributeList *',
- [],
- is_static=True)
- ## attribute-list.h (module 'core'): void ns3::AttributeList::Reset() [member function]
- cls.add_method('Reset',
- 'void',
- [])
- ## attribute-list.h (module 'core'): std::string ns3::AttributeList::SerializeToString() const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [],
- is_const=True)
- ## attribute-list.h (module 'core'): void ns3::AttributeList::Set(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## attribute-list.h (module 'core'): bool ns3::AttributeList::SetFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## attribute-list.h (module 'core'): void ns3::AttributeList::SetWithTid(ns3::TypeId tid, std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetWithTid',
- 'void',
- [param('ns3::TypeId', 'tid'), param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- return
-
-def register_Ns3Buffer_methods(root_module, cls):
- ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor]
- cls.add_constructor([])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
- cls.add_constructor([param('uint32_t', 'dataSize')])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor]
- cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
- cls.add_constructor([param('ns3::Buffer const &', 'o')])
- ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
- cls.add_method('AddAtEnd',
- 'bool',
- [param('uint32_t', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::Buffer const &', 'o')])
- ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
- cls.add_method('AddAtStart',
- 'bool',
- [param('uint32_t', 'start')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
- cls.add_method('Begin',
- 'ns3::Buffer::Iterator',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'void',
- [param('std::ostream *', 'os'), param('uint32_t', 'size')],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
- is_const=True)
- ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::Buffer',
- [param('uint32_t', 'start'), param('uint32_t', 'length')],
- is_const=True)
- ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
- cls.add_method('CreateFullCopy',
- 'ns3::Buffer',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
- cls.add_method('End',
- 'ns3::Buffer::Iterator',
- [],
- is_const=True)
- ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
- cls.add_method('GetCurrentEndOffset',
- 'int32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
- cls.add_method('GetCurrentStartOffset',
- 'int32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function]
- cls.add_method('PeekData',
- 'uint8_t const *',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'start')])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3BufferIterator_methods(root_module, cls):
- ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor]
- cls.add_constructor([])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
- cls.add_method('CalculateIpChecksum',
- 'uint16_t',
- [param('uint16_t', 'size')])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
- cls.add_method('CalculateIpChecksum',
- 'uint16_t',
- [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
- cls.add_method('GetDistanceFrom',
- 'uint32_t',
- [param('ns3::Buffer::Iterator const &', 'o')],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function]
- cls.add_method('IsEnd',
- 'bool',
- [],
- is_const=True)
- ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function]
- cls.add_method('IsStart',
- 'bool',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function]
- cls.add_method('Next',
- 'void',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
- cls.add_method('Next',
- 'void',
- [param('uint32_t', 'delta')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
- cls.add_method('Prev',
- 'void',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
- cls.add_method('Prev',
- 'void',
- [param('uint32_t', 'delta')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
- cls.add_method('Read',
- 'void',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
- cls.add_method('ReadLsbtohU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
- cls.add_method('ReadLsbtohU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
- cls.add_method('ReadLsbtohU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
- cls.add_method('ReadNtohU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
- cls.add_method('ReadNtohU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
- cls.add_method('ReadNtohU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
- cls.add_method('ReadU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
- cls.add_method('ReadU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
- cls.add_method('ReadU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
- cls.add_method('ReadU8',
- 'uint8_t',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Write',
- 'void',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
- cls.add_method('Write',
- 'void',
- [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
- cls.add_method('WriteHtolsbU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
- cls.add_method('WriteHtolsbU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
- cls.add_method('WriteHtolsbU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
- cls.add_method('WriteHtonU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
- cls.add_method('WriteHtonU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
- cls.add_method('WriteHtonU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
- cls.add_method('WriteU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
- cls.add_method('WriteU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
- cls.add_method('WriteU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'data'), param('uint32_t', 'len')])
- return
-
-def register_Ns3ByteTagIterator_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
- ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::ByteTagIterator::Item',
- [])
- return
-
-def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
- ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
- cls.add_method('GetEnd',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
- cls.add_method('GetStart',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
- cls.add_method('GetTag',
- 'void',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- return
-
-def register_Ns3ByteTagList_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor]
- cls.add_constructor([])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
- ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
- cls.add_method('Add',
- 'ns3::TagBuffer',
- [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::ByteTagList const &', 'o')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
- cls.add_method('AddAtStart',
- 'void',
- [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
- cls.add_method('Begin',
- 'ns3::ByteTagList::Iterator',
- [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')],
- is_const=True)
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function]
- cls.add_method('RemoveAll',
- 'void',
- [])
- return
-
-def register_Ns3ByteTagListIterator_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
- ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
- cls.add_method('GetOffsetStart',
- 'uint32_t',
- [],
- is_const=True)
- ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::ByteTagList::Iterator::Item',
- [])
- return
-
-def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
- cls.add_constructor([param('ns3::TagBuffer', 'buf')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable]
- cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable]
- cls.add_instance_attribute('end', 'int32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable]
- cls.add_instance_attribute('size', 'uint32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable]
- cls.add_instance_attribute('start', 'int32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3CallbackBase_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')])
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function]
- cls.add_method('GetImpl',
- 'ns3::Ptr< ns3::CallbackImplBase >',
- [],
- is_const=True)
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
- visibility='protected')
- ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
- cls.add_method('Demangle',
- 'std::string',
- [param('std::string const &', 'mangled')],
- is_static=True, visibility='protected')
- return
-
-def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer() [constructor]
- cls.add_constructor([])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::Ptr<ns3::DeviceEnergyModel> model) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(std::string modelName) [constructor]
- cls.add_constructor([param('std::string', 'modelName')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & a, ns3::DeviceEnergyModelContainer const & b) [constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'a'), param('ns3::DeviceEnergyModelContainer const &', 'b')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::DeviceEnergyModelContainer container) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::DeviceEnergyModelContainer', 'container')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::Ptr<ns3::DeviceEnergyModel> model) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(std::string modelName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'modelName')])
- ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
- [],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Clear() [member function]
- cls.add_method('Clear',
- 'void',
- [])
- ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
- [],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): uint32_t ns3::DeviceEnergyModelContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3DeviceEnergyModelHelper_methods(root_module, cls):
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper() [constructor]
- cls.add_constructor([])
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper(ns3::DeviceEnergyModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelHelper const &', 'arg0')])
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('Install',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::NetDeviceContainer deviceContainer, ns3::EnergySourceContainer sourceContainer) const [member function]
- cls.add_method('Install',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::NetDeviceContainer', 'deviceContainer'), param('ns3::EnergySourceContainer', 'sourceContainer')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): void ns3::DeviceEnergyModelHelper::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_pure_virtual=True, is_virtual=True)
- ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySourceHelper_methods(root_module, cls):
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper() [constructor]
- cls.add_constructor([])
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper(ns3::EnergySourceHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySourceHelper const &', 'arg0')])
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::NodeContainer c) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('ns3::NodeContainer', 'c')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(std::string nodeName) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('std::string', 'nodeName')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::InstallAll() const [member function]
- cls.add_method('InstallAll',
- 'ns3::EnergySourceContainer',
- [],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): void ns3::EnergySourceHelper::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_pure_virtual=True, is_virtual=True)
- ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> node) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::EnergySource >',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EventId_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_binary_comparison_operator('==')
- ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EventId const &', 'arg0')])
- ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor]
- cls.add_constructor([])
- ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')])
- ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function]
- cls.add_method('Cancel',
- 'void',
- [])
- ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function]
- cls.add_method('GetContext',
- 'uint32_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function]
- cls.add_method('GetTs',
- 'uint64_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint32_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function]
- cls.add_method('IsExpired',
- 'bool',
- [],
- is_const=True)
- ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function]
- cls.add_method('IsRunning',
- 'bool',
- [],
- is_const=True)
- ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function]
- cls.add_method('PeekEventImpl',
- 'ns3::EventImpl *',
- [],
- is_const=True)
- return
-
-def register_Ns3HighPrecision_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')])
- ## high-precision-128.h (module 'core'): 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 (module 'core'): ns3::HighPrecision::HighPrecision() [constructor]
- cls.add_constructor([])
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor]
- cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')])
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(double value) [constructor]
- cls.add_constructor([param('double', 'value')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function]
- cls.add_method('Div',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): double ns3::HighPrecision::GetDouble() const [member function]
- cls.add_method('GetDouble',
- 'double',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetHigh() const [member function]
- cls.add_method('GetHigh',
- 'int64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetInteger() const [member function]
- cls.add_method('GetInteger',
- 'int64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): uint64_t ns3::HighPrecision::GetLow() const [member function]
- cls.add_method('GetLow',
- 'uint64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function]
- cls.add_method('Mul',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function]
- cls.add_method('MulByInvert',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function]
- cls.add_method('Sub',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): static ns3::HighPrecision ns3::HighPrecision::Zero() [member function]
- cls.add_method('Zero',
- 'ns3::HighPrecision',
- [],
- is_static=True)
- return
-
-def register_Ns3Ipv4Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor]
- cls.add_constructor([param('uint32_t', 'address')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor]
- cls.add_constructor([param('char const *', 'address')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('CombineMask',
- 'ns3::Ipv4Address',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function]
- cls.add_method('ConvertFrom',
- 'ns3::Ipv4Address',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function]
- cls.add_method('Deserialize',
- 'ns3::Ipv4Address',
- [param('uint8_t const *', 'buf')],
- is_static=True)
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
- cls.add_method('Get',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
- cls.add_method('GetAny',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function]
- cls.add_method('GetBroadcast',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('GetSubnetDirectedBroadcast',
- 'ns3::Ipv4Address',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function]
- cls.add_method('IsBroadcast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv4Address const &', 'other')],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function]
- cls.add_method('IsLocalMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('IsSubnetDirectedBroadcast',
- 'bool',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint32_t', 'address')])
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('char const *', 'address')])
- return
-
-def register_Ns3Ipv4Mask_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor]
- cls.add_constructor([param('uint32_t', 'mask')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor]
- cls.add_constructor([param('char const *', 'mask')])
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function]
- cls.add_method('Get',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function]
- cls.add_method('GetInverse',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function]
- cls.add_method('GetPrefixLength',
- 'uint16_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv4Mask', 'other')],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function]
- cls.add_method('IsMatch',
- 'bool',
- [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint32_t', 'mask')])
- return
-
-def register_Ns3Ipv6Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
- cls.add_constructor([param('char const *', 'address')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor]
- cls.add_constructor([param('uint8_t *', 'address')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor]
- cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function]
- cls.add_method('CombinePrefix',
- 'ns3::Ipv6Address',
- [param('ns3::Ipv6Prefix const &', 'prefix')])
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function]
- cls.add_method('ConvertFrom',
- 'ns3::Ipv6Address',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function]
- cls.add_method('Deserialize',
- 'ns3::Ipv6Address',
- [param('uint8_t const *', 'buf')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function]
- cls.add_method('GetAllHostsMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function]
- cls.add_method('GetAllNodesMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function]
- cls.add_method('GetAllRoutersMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function]
- cls.add_method('GetAny',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function]
- cls.add_method('GetBytes',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function]
- cls.add_method('IsAllHostsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function]
- cls.add_method('IsAllNodesMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function]
- cls.add_method('IsAllRoutersMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function]
- cls.add_method('IsAny',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv6Address const &', 'other')],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function]
- cls.add_method('IsLinkLocal',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function]
- cls.add_method('IsLocalhost',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function]
- cls.add_method('IsSolicitedMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function]
- cls.add_method('MakeAutoconfiguredAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function]
- cls.add_method('MakeAutoconfiguredLinkLocalAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Mac48Address', 'mac')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function]
- cls.add_method('MakeSolicitedAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Ipv6Address', 'addr')],
- is_static=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('char const *', 'address')])
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint8_t *', 'address')])
- return
-
-def register_Ns3Ipv6Prefix_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor]
- cls.add_constructor([param('uint8_t *', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor]
- cls.add_constructor([param('char const *', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor]
- cls.add_constructor([param('uint8_t', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')])
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function]
- cls.add_method('GetBytes',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function]
- cls.add_method('GetPrefixLength',
- 'uint8_t',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv6Prefix const &', 'other')],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function]
- cls.add_method('IsMatch',
- 'bool',
- [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- return
-
-def register_Ns3NetDeviceContainer_methods(root_module, cls):
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor]
- cls.add_constructor([])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor]
- cls.add_constructor([param('std::string', 'devName')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor]
- cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::NetDeviceContainer', 'other')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'deviceName')])
- ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
- [],
- is_const=True)
- ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
- [],
- is_const=True)
- ## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::NetDevice >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3NodeContainer_methods(root_module, cls):
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor]
- cls.add_constructor([])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor]
- cls.add_constructor([param('std::string', 'nodeName')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::NodeContainer', 'other')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'nodeName')])
- ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
- [],
- is_const=True)
- ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function]
- cls.add_method('Create',
- 'void',
- [param('uint32_t', 'n')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function]
- cls.add_method('Create',
- 'void',
- [param('uint32_t', 'n'), param('uint32_t', 'systemId')])
- ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
- [],
- is_const=True)
- ## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::Node >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function]
- cls.add_method('GetGlobal',
- 'ns3::NodeContainer',
- [],
- is_static=True)
- ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3ObjectBase_methods(root_module, cls):
- ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor]
- cls.add_constructor([])
- ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')])
- ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function]
- cls.add_method('GetAttribute',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')],
- is_const=True)
- ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function]
- cls.add_method('GetAttributeFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')],
- is_const=True)
- ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function]
- cls.add_method('GetInstanceTypeId',
- 'ns3::TypeId',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetAttribute',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetAttributeFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceConnect',
- 'bool',
- [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceConnectWithoutContext',
- 'bool',
- [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceDisconnect',
- 'bool',
- [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceDisconnectWithoutContext',
- 'bool',
- [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeList const & attributes) [member function]
- cls.add_method('ConstructSelf',
- 'void',
- [param('ns3::AttributeList const &', 'attributes')],
- visibility='protected')
- ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function]
- cls.add_method('NotifyConstructionCompleted',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- return
-
-def register_Ns3ObjectDeleter_methods(root_module, cls):
- ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')])
- ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function]
- cls.add_method('Delete',
- 'void',
- [param('ns3::Object *', 'object')],
- is_static=True)
- return
-
-def register_Ns3ObjectFactory_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')])
- ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::Object >',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(ns3::AttributeList const & list) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::AttributeList const &', 'list')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('ns3::TypeId', 'tid')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('char const *', 'tid')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('std::string', 'tid')])
- return
-
-def register_Ns3PacketMetadata_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor]
- cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::PacketMetadata const &', 'o')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
- cls.add_method('AddHeader',
- 'void',
- [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
- cls.add_method('AddPaddingAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
- cls.add_method('AddTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
- cls.add_method('BeginItem',
- 'ns3::PacketMetadata::ItemIterator',
- [param('ns3::Buffer', 'buffer')],
- is_const=True)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::PacketMetadata',
- [param('uint32_t', 'start'), param('uint32_t', 'end')],
- is_const=True)
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function]
- cls.add_method('Enable',
- 'void',
- [],
- is_static=True)
- ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function]
- cls.add_method('EnableChecking',
- 'void',
- [],
- is_static=True)
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint64_t',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'start')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
- cls.add_method('RemoveHeader',
- 'void',
- [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
- cls.add_method('RemoveTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3PacketMetadataItem_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor]
- cls.add_constructor([])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable]
- cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable]
- cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
- cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
- cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable]
- cls.add_instance_attribute('isFragment', 'bool', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
- cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
- ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::PacketMetadata::Item',
- [])
- return
-
-def register_Ns3PacketTagIterator_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
- ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::PacketTagIterator::Item',
- [])
- return
-
-def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
- ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
- cls.add_method('GetTag',
- 'void',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- return
-
-def register_Ns3PacketTagList_methods(root_module, cls):
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
- cls.add_constructor([])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
- ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
- cls.add_method('Head',
- 'ns3::PacketTagList::TagData const *',
- [],
- is_const=True)
- ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
- cls.add_method('Peek',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
- cls.add_method('Remove',
- 'bool',
- [param('ns3::Tag &', 'tag')])
- ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
- cls.add_method('RemoveAll',
- 'void',
- [])
- return
-
-def register_Ns3PacketTagListTagData_methods(root_module, cls):
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
- cls.add_constructor([])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
- cls.add_instance_attribute('count', 'uint32_t', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
- cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
- cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor]
- cls.add_constructor([])
- ## rv-battery-model-helper.h (module 'energy'): 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 (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3Tag_methods(root_module, cls):
- ## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
- cls.add_constructor([])
- ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Tag const &', 'arg0')])
- ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
- cls.add_method('Deserialize',
- 'void',
- [param('ns3::TagBuffer', 'i')],
- is_pure_virtual=True, is_virtual=True)
- ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::TagBuffer', 'i')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3TagBuffer_methods(root_module, cls):
- ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
- ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
- cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
- cls.add_method('CopyFrom',
- 'void',
- [param('ns3::TagBuffer', 'o')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
- cls.add_method('Read',
- 'void',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
- ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function]
- cls.add_method('ReadDouble',
- 'double',
- [])
- ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function]
- cls.add_method('ReadU16',
- 'uint16_t',
- [])
- ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function]
- cls.add_method('ReadU32',
- 'uint32_t',
- [])
- ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function]
- cls.add_method('ReadU64',
- 'uint64_t',
- [])
- ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function]
- cls.add_method('ReadU8',
- 'uint8_t',
- [])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
- cls.add_method('TrimAtEnd',
- 'void',
- [param('uint32_t', 'trim')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Write',
- 'void',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function]
- cls.add_method('WriteDouble',
- 'void',
- [param('double', 'v')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
- cls.add_method('WriteU16',
- 'void',
- [param('uint16_t', 'data')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
- cls.add_method('WriteU32',
- 'void',
- [param('uint32_t', 'data')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
- cls.add_method('WriteU64',
- 'void',
- [param('uint64_t', 'v')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'v')])
- return
-
-def register_Ns3Time_methods(root_module, cls):
- cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('>')
- cls.add_binary_comparison_operator('!=')
- cls.add_inplace_numeric_operator('*=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('/=', param('ns3::Time const &', 'right'))
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('<=')
- cls.add_binary_comparison_operator('==')
- cls.add_binary_comparison_operator('>=')
- ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
- cls.add_constructor([param('ns3::Time const &', 'o')])
- ## nstime.h (module 'core'): ns3::Time::Time(ns3::HighPrecision const & data) [constructor]
- cls.add_constructor([param('ns3::HighPrecision const &', 'data')])
- ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
- cls.add_constructor([param('std::string const &', 's')])
- ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
- cls.add_method('Compare',
- 'int',
- [param('ns3::Time const &', 'o')],
- is_const=True)
- ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('FromDouble',
- 'ns3::Time',
- [param('double', 'value'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('FromInteger',
- 'ns3::Time',
- [param('uint64_t', 'value'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function]
- cls.add_method('GetFemtoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): ns3::HighPrecision const & ns3::Time::GetHighPrecision() const [member function]
- cls.add_method('GetHighPrecision',
- 'ns3::HighPrecision const &',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function]
- cls.add_method('GetMicroSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function]
- cls.add_method('GetMilliSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function]
- cls.add_method('GetNanoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function]
- cls.add_method('GetPicoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function]
- cls.add_method('GetResolution',
- 'ns3::Time::Unit',
- [],
- is_static=True)
- ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function]
- cls.add_method('GetSeconds',
- 'double',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function]
- cls.add_method('GetTimeStep',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function]
- cls.add_method('IsNegative',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function]
- cls.add_method('IsPositive',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function]
- cls.add_method('IsStrictlyNegative',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function]
- cls.add_method('IsStrictlyPositive',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function]
- cls.add_method('IsZero',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): ns3::HighPrecision * ns3::Time::PeekHighPrecision() [member function]
- cls.add_method('PeekHighPrecision',
- 'ns3::HighPrecision *',
- [])
- ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function]
- cls.add_method('SetResolution',
- 'void',
- [param('ns3::Time::Unit', 'resolution')],
- is_static=True)
- ## nstime.h (module 'core'): static double ns3::Time::ToDouble(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('ToDouble',
- 'double',
- [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): static uint64_t ns3::Time::ToInteger(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('ToInteger',
- 'uint64_t',
- [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- return
-
-def register_Ns3TracedValue__Double_methods(root_module, cls):
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue() [constructor]
- cls.add_constructor([])
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(ns3::TracedValue<double> const & o) [copy constructor]
- cls.add_constructor([param('ns3::TracedValue< double > const &', 'o')])
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(double const & v) [constructor]
- cls.add_constructor([param('double const &', 'v')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Connect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('ConnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Disconnect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('DisconnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): double ns3::TracedValue<double>::Get() const [member function]
- cls.add_method('Get',
- 'double',
- [],
- is_const=True)
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Set(double const & v) [member function]
- cls.add_method('Set',
- 'void',
- [param('double const &', 'v')])
- return
-
-def register_Ns3TracedValue__Ns3Time_methods(root_module, cls):
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue() [constructor]
- cls.add_constructor([])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::TracedValue<ns3::Time> const & o) [copy constructor]
- cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::Time const & v) [constructor]
- cls.add_constructor([param('ns3::Time const &', 'v')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Connect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('ConnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Disconnect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('DisconnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): ns3::Time ns3::TracedValue<ns3::Time>::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Time',
- [],
- is_const=True)
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Set(ns3::Time const & v) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Time const &', 'v')])
- return
-
-def register_Ns3TypeId_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
- cls.add_constructor([param('char const *', 'name')])
- ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor]
- cls.add_constructor([param('ns3::TypeId const &', 'o')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('AddAttribute',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('AddAttribute',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<const ns3::TraceSourceAccessor> accessor) [member function]
- cls.add_method('AddTraceSource',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')])
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeAccessor const> ns3::TypeId::GetAttributeAccessor(uint32_t i) const [member function]
- cls.add_method('GetAttributeAccessor',
- 'ns3::Ptr< ns3::AttributeAccessor const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeChecker const> ns3::TypeId::GetAttributeChecker(uint32_t i) const [member function]
- cls.add_method('GetAttributeChecker',
- 'ns3::Ptr< ns3::AttributeChecker const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeFlags(uint32_t i) const [member function]
- cls.add_method('GetAttributeFlags',
- 'uint32_t',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function]
- cls.add_method('GetAttributeFullName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeHelp(uint32_t i) const [member function]
- cls.add_method('GetAttributeHelp',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue const> ns3::TypeId::GetAttributeInitialValue(uint32_t i) const [member function]
- cls.add_method('GetAttributeInitialValue',
- 'ns3::Ptr< ns3::AttributeValue const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function]
- cls.add_method('GetAttributeN',
- 'uint32_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeName(uint32_t i) const [member function]
- cls.add_method('GetAttributeName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function]
- cls.add_method('GetConstructor',
- 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function]
- cls.add_method('GetGroupName',
- 'std::string',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function]
- cls.add_method('GetName',
- 'std::string',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function]
- cls.add_method('GetParent',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function]
- cls.add_method('GetRegistered',
- 'ns3::TypeId',
- [param('uint32_t', 'i')],
- is_static=True)
- ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function]
- cls.add_method('GetRegisteredN',
- 'uint32_t',
- [],
- is_static=True)
- ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::GetTraceSourceAccessor(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceAccessor',
- 'ns3::Ptr< ns3::TraceSourceAccessor const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceHelp(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceHelp',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function]
- cls.add_method('GetTraceSourceN',
- 'uint32_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceName(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint16_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function]
- cls.add_method('HasConstructor',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function]
- cls.add_method('HasParent',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function]
- cls.add_method('HideFromDocumentation',
- 'ns3::TypeId',
- [])
- ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
- cls.add_method('IsChildOf',
- 'bool',
- [param('ns3::TypeId', 'other')],
- is_const=True)
- ## type-id.h (module 'core'): static bool ns3::TypeId::LookupAttributeByFullName(std::string fullName, ns3::TypeId::AttributeInfo * info) [member function]
- cls.add_method('LookupAttributeByFullName',
- 'bool',
- [param('std::string', 'fullName'), param('ns3::TypeId::AttributeInfo *', 'info')],
- is_static=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
- cls.add_method('LookupAttributeByName',
- 'bool',
- [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)],
- is_const=True)
- ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function]
- cls.add_method('LookupByName',
- 'ns3::TypeId',
- [param('std::string', 'name')],
- is_static=True)
- ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
- cls.add_method('LookupTraceSourceByName',
- 'ns3::Ptr< ns3::TraceSourceAccessor const >',
- [param('std::string', 'name')],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function]
- cls.add_method('MustHideFromDocumentation',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function]
- cls.add_method('SetGroupName',
- 'ns3::TypeId',
- [param('std::string', 'groupName')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function]
- cls.add_method('SetParent',
- 'ns3::TypeId',
- [param('ns3::TypeId', 'tid')])
- ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function]
- cls.add_method('SetUid',
- 'void',
- [param('uint16_t', 'tid')])
- return
-
-def register_Ns3TypeIdAttributeInfo_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo(ns3::TypeId::AttributeInfo const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeId::AttributeInfo const &', 'arg0')])
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::accessor [variable]
- cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::checker [variable]
- cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::flags [variable]
- cls.add_instance_attribute('flags', 'uint32_t', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::initialValue [variable]
- cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
- return
-
-def register_Ns3UnsafeAttributeList_methods(root_module, cls):
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
- cls.add_constructor([])
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList(ns3::UnsafeAttributeList const & o) [copy constructor]
- cls.add_constructor([param('ns3::UnsafeAttributeList const &', 'o')])
- ## attribute-list.h (module 'core'): ns3::AttributeList ns3::UnsafeAttributeList::GetSafe(std::string name) const [member function]
- cls.add_method('GetSafe',
- 'ns3::AttributeList',
- [param('std::string', 'name')],
- is_const=True)
- ## attribute-list.h (module 'core'): void ns3::UnsafeAttributeList::Set(std::string name, ns3::AttributeValue const & param) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'param')])
- return
-
-def register_Ns3WifiMode_methods(root_module, cls):
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(ns3::WifiMode const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiMode const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(std::string name) [constructor]
- cls.add_constructor([param('std::string', 'name')])
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetBandwidth() const [member function]
- cls.add_method('GetBandwidth',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate ns3::WifiMode::GetCodeRate() const [member function]
- cls.add_method('GetCodeRate',
- 'ns3::WifiCodeRate',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint8_t ns3::WifiMode::GetConstellationSize() const [member function]
- cls.add_method('GetConstellationSize',
- 'uint8_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetDataRate() const [member function]
- cls.add_method('GetDataRate',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass ns3::WifiMode::GetModulationClass() const [member function]
- cls.add_method('GetModulationClass',
- 'ns3::WifiModulationClass',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetPhyRate() const [member function]
- cls.add_method('GetPhyRate',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): std::string ns3::WifiMode::GetUniqueName() const [member function]
- cls.add_method('GetUniqueName',
- 'std::string',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): bool ns3::WifiMode::IsMandatory() const [member function]
- cls.add_method('IsMandatory',
- 'bool',
- [],
- is_const=True)
- return
-
-def register_Ns3WifiModeFactory_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory::WifiModeFactory(ns3::WifiModeFactory const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeFactory const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): static ns3::WifiMode ns3::WifiModeFactory::CreateWifiMode(std::string uniqueName, ns3::WifiModulationClass modClass, bool isMandatory, uint32_t bandwidth, uint32_t dataRate, ns3::WifiCodeRate codingRate, uint8_t constellationSize) [member function]
- cls.add_method('CreateWifiMode',
- 'ns3::WifiMode',
- [param('std::string', 'uniqueName'), param('ns3::WifiModulationClass', 'modClass'), param('bool', 'isMandatory'), param('uint32_t', 'bandwidth'), param('uint32_t', 'dataRate'), param('ns3::WifiCodeRate', 'codingRate'), param('uint8_t', 'constellationSize')],
- is_static=True)
- return
-
-def register_Ns3WifiPhyListener_methods(root_module, cls):
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener() [constructor]
- cls.add_constructor([])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener(ns3::WifiPhyListener const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiPhyListener const &', 'arg0')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function]
- cls.add_method('NotifyMaybeCcaBusyStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndError() [member function]
- cls.add_method('NotifyRxEndError',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndOk() [member function]
- cls.add_method('NotifyRxEndOk',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxStart(ns3::Time duration) [member function]
- cls.add_method('NotifyRxStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifySwitchingStart(ns3::Time duration) [member function]
- cls.add_method('NotifySwitchingStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyTxStart(ns3::Time duration) [member function]
- cls.add_method('NotifyTxStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- return
-
-def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls):
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper(ns3::WifiRadioEnergyModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModelHelper const &', 'arg0')])
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::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)
- ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::SetDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('SetDepletionCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::WifiRadioEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls):
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function]
- cls.add_method('NotifyRxEndError',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function]
- cls.add_method('NotifyRxEndOk',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> 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_Ns3Empty_methods(root_module, cls):
- ## empty.h (module 'core'): ns3::empty::empty() [constructor]
- cls.add_constructor([])
- ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::empty const &', 'arg0')])
- return
-
-def register_Ns3BasicEnergySourceHelper_methods(root_module, cls):
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')])
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper() [constructor]
- cls.add_constructor([])
- ## basic-energy-source-helper.h (module 'energy'): void ns3::BasicEnergySourceHelper::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)
- ## basic-energy-source-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::BasicEnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3Chunk_methods(root_module, cls):
- ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
- cls.add_constructor([])
- ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
- ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_virtual=True)
- ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3Header_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## header.h (module 'network'): ns3::Header::Header() [constructor]
- cls.add_constructor([])
- ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Header const &', 'arg0')])
- ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_virtual=True)
- ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3Object_methods(root_module, cls):
- ## object.h (module 'core'): ns3::Object::Object() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function]
- cls.add_method('AggregateObject',
- 'void',
- [param('ns3::Ptr< ns3::Object >', 'other')])
- ## object.h (module 'core'): void ns3::Object::Dispose() [member function]
- cls.add_method('Dispose',
- 'void',
- [])
- ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function]
- cls.add_method('GetAggregateIterator',
- 'ns3::Object::AggregateIterator',
- [],
- is_const=True)
- ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function]
- cls.add_method('GetInstanceTypeId',
- 'ns3::TypeId',
- [],
- is_const=True, is_virtual=True)
- ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## object.h (module 'core'): void ns3::Object::Start() [member function]
- cls.add_method('Start',
- 'void',
- [])
- ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor]
- cls.add_constructor([param('ns3::Object const &', 'o')],
- visibility='protected')
- ## object.h (module 'core'): void ns3::Object::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## object.h (module 'core'): void ns3::Object::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function]
- cls.add_method('NotifyNewAggregate',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- return
-
-def register_Ns3ObjectAggregateIterator_methods(root_module, cls):
- ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')])
- ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::Ptr< ns3::Object const >',
- [])
- return
-
-def register_Ns3Scalar_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Scalar const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Scalar const &', 'arg0')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(double v) [constructor]
- cls.add_constructor([param('double', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint32_t v) [constructor]
- cls.add_constructor([param('uint32_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(int32_t v) [constructor]
- cls.add_constructor([param('int32_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint64_t v) [constructor]
- cls.add_constructor([param('uint64_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(int64_t v) [constructor]
- cls.add_constructor([param('int64_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Time t) [constructor]
- cls.add_constructor([param('ns3::Time', 't')])
- ## nstime.h (module 'core'): double ns3::Scalar::GetDouble() const [member function]
- cls.add_method('GetDouble',
- 'double',
- [],
- is_const=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3Trailer_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor]
- cls.add_constructor([])
- ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
- ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'end')],
- is_pure_virtual=True, is_virtual=True)
- ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3WifiPhy_methods(root_module, cls):
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy() [constructor]
- cls.add_constructor([])
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::CalculateSnr(ns3::WifiMode txMode, double ber) const [member function]
- cls.add_method('CalculateSnr',
- 'double',
- [param('ns3::WifiMode', 'txMode'), param('double', 'ber')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::CalculateTxDuration(uint32_t size, ns3::WifiMode payloadMode, ns3::WifiPreamble preamble) const [member function]
- cls.add_method('CalculateTxDuration',
- 'ns3::Time',
- [param('uint32_t', 'size'), param('ns3::WifiMode', 'payloadMode'), param('ns3::WifiPreamble', 'preamble')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::ConfigureStandard(ns3::WifiPhyStandard standard) [member function]
- cls.add_method('ConfigureStandard',
- 'void',
- [param('ns3::WifiPhyStandard', 'standard')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Ptr<ns3::WifiChannel> ns3::WifiPhy::GetChannel() const [member function]
- cls.add_method('GetChannel',
- 'ns3::Ptr< ns3::WifiChannel >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint16_t ns3::WifiPhy::GetChannelNumber() const [member function]
- cls.add_method('GetChannelNumber',
- 'uint16_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetDelayUntilIdle() [member function]
- cls.add_method('GetDelayUntilIdle',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate11Mbps() [member function]
- cls.add_method('GetDsssRate11Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate1Mbps() [member function]
- cls.add_method('GetDsssRate1Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate2Mbps() [member function]
- cls.add_method('GetDsssRate2Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate5_5Mbps() [member function]
- cls.add_method('GetDsssRate5_5Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate12Mbps() [member function]
- cls.add_method('GetErpOfdmRate12Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate18Mbps() [member function]
- cls.add_method('GetErpOfdmRate18Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate24Mbps() [member function]
- cls.add_method('GetErpOfdmRate24Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate36Mbps() [member function]
- cls.add_method('GetErpOfdmRate36Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate48Mbps() [member function]
- cls.add_method('GetErpOfdmRate48Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate54Mbps() [member function]
- cls.add_method('GetErpOfdmRate54Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate6Mbps() [member function]
- cls.add_method('GetErpOfdmRate6Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate9Mbps() [member function]
- cls.add_method('GetErpOfdmRate9Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetLastRxStartTime() const [member function]
- cls.add_method('GetLastRxStartTime',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::WifiMode ns3::WifiPhy::GetMode(uint32_t mode) const [member function]
- cls.add_method('GetMode',
- 'ns3::WifiMode',
- [param('uint32_t', 'mode')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNModes() const [member function]
- cls.add_method('GetNModes',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNTxPower() const [member function]
- cls.add_method('GetNTxPower',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12Mbps() [member function]
- cls.add_method('GetOfdmRate12Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate12MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate12MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate13_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate13_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18Mbps() [member function]
- cls.add_method('GetOfdmRate18Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate18MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate1_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate1_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24Mbps() [member function]
- cls.add_method('GetOfdmRate24Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate24MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate27MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate27MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate2_25MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate2_25MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate36Mbps() [member function]
- cls.add_method('GetOfdmRate36Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate3MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate3MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate48Mbps() [member function]
- cls.add_method('GetOfdmRate48Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate4_5MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate4_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate54Mbps() [member function]
- cls.add_method('GetOfdmRate54Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6Mbps() [member function]
- cls.add_method('GetOfdmRate6Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate6MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate6MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9Mbps() [member function]
- cls.add_method('GetOfdmRate9Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate9MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate9MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetStateDuration() [member function]
- cls.add_method('GetStateDuration',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerEnd() const [member function]
- cls.add_method('GetTxPowerEnd',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerStart() const [member function]
- cls.add_method('GetTxPowerStart',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::TypeId ns3::WifiPhy::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateBusy() [member function]
- cls.add_method('IsStateBusy',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateCcaBusy() [member function]
- cls.add_method('IsStateCcaBusy',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateIdle() [member function]
- cls.add_method('IsStateIdle',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateRx() [member function]
- cls.add_method('IsStateRx',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateSwitching() [member function]
- cls.add_method('IsStateSwitching',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateTx() [member function]
- cls.add_method('IsStateTx',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffRx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm) [member function]
- cls.add_method('NotifyPromiscSniffRx',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble'), param('double', 'signalDbm'), param('double', 'noiseDbm')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffTx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble) [member function]
- cls.add_method('NotifyPromiscSniffTx',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxBegin',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxDrop',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxBegin',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxDrop',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::RegisterListener(ns3::WifiPhyListener * listener) [member function]
- cls.add_method('RegisterListener',
- 'void',
- [param('ns3::WifiPhyListener *', 'listener')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SendPacket(ns3::Ptr<const ns3::Packet> packet, ns3::WifiMode mode, ns3::WifiPreamble preamble, uint8_t txPowerLevel) [member function]
- cls.add_method('SendPacket',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('ns3::WifiMode', 'mode'), param('ns3::WifiPreamble', 'preamble'), param('uint8_t', 'txPowerLevel')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetChannelNumber(uint16_t id) [member function]
- cls.add_method('SetChannelNumber',
- 'void',
- [param('uint16_t', 'id')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveErrorCallback(ns3::Callback<void,ns3::Ptr<const ns3::Packet>,double,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
- cls.add_method('SetReceiveErrorCallback',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, double, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveOkCallback(ns3::Callback<void,ns3::Ptr<ns3::Packet>,double,ns3::WifiMode,ns3::WifiPreamble,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
- cls.add_method('SetReceiveOkCallback',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- return
-
-def register_Ns3AttributeAccessor_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function]
- cls.add_method('Get',
- 'bool',
- [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function]
- cls.add_method('HasGetter',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function]
- cls.add_method('HasSetter',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function]
- cls.add_method('Set',
- 'bool',
- [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3AttributeChecker_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function]
- cls.add_method('Check',
- 'bool',
- [param('ns3::AttributeValue const &', 'value')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function]
- cls.add_method('Copy',
- 'bool',
- [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function]
- cls.add_method('GetUnderlyingTypeInformation',
- 'std::string',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function]
- cls.add_method('GetValueTypeName',
- 'std::string',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function]
- cls.add_method('HasUnderlyingTypeInformation',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3AttributeValue_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_pure_virtual=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3BooleanChecker_methods(root_module, cls):
- ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker() [constructor]
- cls.add_constructor([])
- ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker(ns3::BooleanChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BooleanChecker const &', 'arg0')])
- return
-
-def register_Ns3BooleanValue_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(ns3::BooleanValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BooleanValue const &', 'arg0')])
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue() [constructor]
- cls.add_constructor([])
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(bool value) [constructor]
- cls.add_constructor([param('bool', 'value')])
- ## boolean.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::BooleanValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## boolean.h (module 'core'): bool ns3::BooleanValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## boolean.h (module 'core'): bool ns3::BooleanValue::Get() const [member function]
- cls.add_method('Get',
- 'bool',
- [],
- is_const=True)
- ## boolean.h (module 'core'): std::string ns3::BooleanValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## boolean.h (module 'core'): void ns3::BooleanValue::Set(bool value) [member function]
- cls.add_method('Set',
- 'void',
- [param('bool', 'value')])
- return
-
-def register_Ns3CallbackChecker_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
- return
-
-def register_Ns3CallbackImplBase_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
- ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3CallbackValue_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
- cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
- ## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::CallbackBase', 'base')])
- return
-
-def register_Ns3DeviceEnergyModel_methods(root_module, cls):
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel(ns3::DeviceEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModel const &', 'arg0')])
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel() [constructor]
- cls.add_constructor([])
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetCurrentA() const [member function]
- cls.add_method('GetCurrentA',
- 'double',
- [],
- is_const=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): static ns3::TypeId ns3::DeviceEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3DoubleValue_methods(root_module, cls):
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue() [constructor]
- cls.add_constructor([])
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(ns3::DoubleValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DoubleValue const &', 'arg0')])
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(double const & value) [constructor]
- cls.add_constructor([param('double const &', 'value')])
- ## double.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::DoubleValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## double.h (module 'core'): bool ns3::DoubleValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## double.h (module 'core'): double ns3::DoubleValue::Get() const [member function]
- cls.add_method('Get',
- 'double',
- [],
- is_const=True)
- ## double.h (module 'core'): std::string ns3::DoubleValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## double.h (module 'core'): void ns3::DoubleValue::Set(double const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('double const &', 'value')])
- return
-
-def register_Ns3EmptyAttributeValue_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, visibility='private', is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- visibility='private', is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySource_methods(root_module, cls):
- ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource(ns3::EnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySource const &', 'arg0')])
- ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource() [constructor]
- cls.add_constructor([])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::AppendDeviceEnergyModel(ns3::Ptr<ns3::DeviceEnergyModel> deviceEnergyModelPtr) [member function]
- cls.add_method('AppendDeviceEnergyModel',
- 'void',
- [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::DisposeDeviceModels() [member function]
- cls.add_method('DisposeDeviceModels',
- 'void',
- [])
- ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function]
- cls.add_method('FindDeviceEnergyModels',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::TypeId', 'tid')])
- ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(std::string name) [member function]
- cls.add_method('FindDeviceEnergyModels',
- 'ns3::DeviceEnergyModelContainer',
- [param('std::string', 'name')])
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## energy-source.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::EnergySource::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_const=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## energy-source.h (module 'energy'): static ns3::TypeId ns3::EnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## energy-source.h (module 'energy'): void ns3::EnergySource::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::StartDeviceModels() [member function]
- cls.add_method('StartDeviceModels',
- 'void',
- [])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): void ns3::EnergySource::BreakDeviceEnergyModelRefCycle() [member function]
- cls.add_method('BreakDeviceEnergyModelRefCycle',
- 'void',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): double ns3::EnergySource::CalculateTotalCurrent() [member function]
- cls.add_method('CalculateTotalCurrent',
- 'double',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): void ns3::EnergySource::NotifyEnergyDrained() [member function]
- cls.add_method('NotifyEnergyDrained',
- 'void',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): void ns3::EnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySourceContainer_methods(root_module, cls):
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySourceContainer const &', 'arg0')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer() [constructor]
- cls.add_constructor([])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::Ptr<ns3::EnergySource> source) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::EnergySource >', 'source')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(std::string sourceName) [constructor]
- cls.add_constructor([param('std::string', 'sourceName')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & a, ns3::EnergySourceContainer const & b) [constructor]
- cls.add_constructor([param('ns3::EnergySourceContainer const &', 'a'), param('ns3::EnergySourceContainer const &', 'b')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::EnergySourceContainer container) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::EnergySourceContainer', 'container')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(std::string sourceName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'sourceName')])
- ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::EnergySource >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## energy-source-container.h (module 'energy'): uint32_t ns3::EnergySourceContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): static ns3::TypeId ns3::EnergySourceContainer::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnumChecker_methods(root_module, cls):
- ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker(ns3::EnumChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnumChecker const &', 'arg0')])
- ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker() [constructor]
- cls.add_constructor([])
- ## enum.h (module 'core'): void ns3::EnumChecker::Add(int v, std::string name) [member function]
- cls.add_method('Add',
- 'void',
- [param('int', 'v'), param('std::string', 'name')])
- ## enum.h (module 'core'): void ns3::EnumChecker::AddDefault(int v, std::string name) [member function]
- cls.add_method('AddDefault',
- 'void',
- [param('int', 'v'), param('std::string', 'name')])
- ## enum.h (module 'core'): bool ns3::EnumChecker::Check(ns3::AttributeValue const & value) const [member function]
- cls.add_method('Check',
- 'bool',
- [param('ns3::AttributeValue const &', 'value')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumChecker::Copy(ns3::AttributeValue const & src, ns3::AttributeValue & dst) const [member function]
- cls.add_method('Copy',
- 'bool',
- [param('ns3::AttributeValue const &', 'src'), param('ns3::AttributeValue &', 'dst')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumChecker::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): std::string ns3::EnumChecker::GetUnderlyingTypeInformation() const [member function]
- cls.add_method('GetUnderlyingTypeInformation',
- 'std::string',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): std::string ns3::EnumChecker::GetValueTypeName() const [member function]
- cls.add_method('GetValueTypeName',
- 'std::string',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumChecker::HasUnderlyingTypeInformation() const [member function]
- cls.add_method('HasUnderlyingTypeInformation',
- 'bool',
- [],
- is_const=True, is_virtual=True)
- return
-
-def register_Ns3EnumValue_methods(root_module, cls):
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue(ns3::EnumValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnumValue const &', 'arg0')])
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue() [constructor]
- cls.add_constructor([])
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue(int v) [constructor]
- cls.add_constructor([param('int', 'v')])
- ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## enum.h (module 'core'): int ns3::EnumValue::Get() const [member function]
- cls.add_method('Get',
- 'int',
- [],
- is_const=True)
- ## enum.h (module 'core'): std::string ns3::EnumValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): void ns3::EnumValue::Set(int v) [member function]
- cls.add_method('Set',
- 'void',
- [param('int', 'v')])
- return
-
-def register_Ns3EventImpl_methods(root_module, cls):
- ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EventImpl const &', 'arg0')])
- ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor]
- cls.add_constructor([])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function]
- cls.add_method('Cancel',
- 'void',
- [])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function]
- cls.add_method('Invoke',
- 'void',
- [])
- ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function]
- cls.add_method('IsCancelled',
- 'bool',
- [])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function]
- cls.add_method('Notify',
- 'void',
- [],
- is_pure_virtual=True, visibility='protected', is_virtual=True)
- return
-
-def register_Ns3IntegerValue_methods(root_module, cls):
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue() [constructor]
- cls.add_constructor([])
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(ns3::IntegerValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::IntegerValue const &', 'arg0')])
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(int64_t const & value) [constructor]
- cls.add_constructor([param('int64_t const &', 'value')])
- ## integer.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::IntegerValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## integer.h (module 'core'): bool ns3::IntegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## integer.h (module 'core'): int64_t ns3::IntegerValue::Get() const [member function]
- cls.add_method('Get',
- 'int64_t',
- [],
- is_const=True)
- ## integer.h (module 'core'): std::string ns3::IntegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## integer.h (module 'core'): void ns3::IntegerValue::Set(int64_t const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('int64_t const &', 'value')])
- return
-
-def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv4AddressValue_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv4Address const &', 'value')])
- ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv4Address',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv4Address const &', 'value')])
- return
-
-def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv4MaskValue_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')])
- ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv4Mask',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv4Mask const &', 'value')])
- return
-
-def register_Ns3Ipv6AddressChecker_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv6AddressValue_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv6Address const &', 'value')])
- ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv6Address',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv6Address const &', 'value')])
- return
-
-def register_Ns3Ipv6PrefixChecker_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv6PrefixValue_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')])
- ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv6Prefix',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv6Prefix const &', 'value')])
- return
-
-def register_Ns3LiIonEnergySource_methods(root_module, cls):
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource(ns3::LiIonEnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::LiIonEnergySource const &', 'arg0')])
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource() [constructor]
- cls.add_constructor([])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DecreaseRemainingEnergy(double energyJ) [member function]
- cls.add_method('DecreaseRemainingEnergy',
- 'void',
- [param('double', 'energyJ')],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): ns3::Time ns3::LiIonEnergySource::GetEnergyUpdateInterval() const [member function]
- cls.add_method('GetEnergyUpdateInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): static ns3::TypeId ns3::LiIonEnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::IncreaseRemainingEnergy(double energyJ) [member function]
- cls.add_method('IncreaseRemainingEnergy',
- 'void',
- [param('double', 'energyJ')],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
- cls.add_method('SetEnergyUpdateInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
- cls.add_method('SetInitialEnergy',
- 'void',
- [param('double', 'initialEnergyJ')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialSupplyVoltage(double supplyVoltageV) [member function]
- cls.add_method('SetInitialSupplyVoltage',
- 'void',
- [param('double', 'supplyVoltageV')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3NetDevice_methods(root_module, cls):
- ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor]
- cls.add_constructor([])
- ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NetDevice const &', 'arg0')])
- ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('AddLinkChangeCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function]
- cls.add_method('GetAddress',
- 'ns3::Address',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function]
- cls.add_method('GetBroadcast',
- 'ns3::Address',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function]
- cls.add_method('GetChannel',
- 'ns3::Ptr< ns3::Channel >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function]
- cls.add_method('GetIfIndex',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function]
- cls.add_method('GetMtu',
- 'uint16_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
- cls.add_method('GetMulticast',
- 'ns3::Address',
- [param('ns3::Ipv4Address', 'multicastGroup')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
- cls.add_method('GetMulticast',
- 'ns3::Address',
- [param('ns3::Ipv6Address', 'addr')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function]
- cls.add_method('IsBridge',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function]
- cls.add_method('IsBroadcast',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function]
- cls.add_method('IsLinkUp',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function]
- cls.add_method('IsPointToPoint',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function]
- cls.add_method('NeedsArp',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
- cls.add_method('Send',
- 'bool',
- [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
- cls.add_method('SendFrom',
- 'bool',
- [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function]
- cls.add_method('SetAddress',
- 'void',
- [param('ns3::Address', 'address')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function]
- cls.add_method('SetIfIndex',
- 'void',
- [param('uint32_t const', 'index')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function]
- cls.add_method('SetMtu',
- 'bool',
- [param('uint16_t const', 'mtu')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,ns3::NetDevice::PacketType,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
- cls.add_method('SetPromiscReceiveCallback',
- 'void',
- [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
- cls.add_method('SetReceiveCallback',
- 'void',
- [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function]
- cls.add_method('SupportsSendFrom',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3NixVector_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor]
- cls.add_constructor([])
- ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor]
- cls.add_constructor([param('ns3::NixVector const &', 'o')])
- ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function]
- cls.add_method('AddNeighborIndex',
- 'void',
- [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function]
- cls.add_method('BitCount',
- 'uint32_t',
- [param('uint32_t', 'numberOfNeighbors')],
- is_const=True)
- ## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::NixVector >',
- [],
- is_const=True)
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function]
- cls.add_method('ExtractNeighborIndex',
- 'uint32_t',
- [param('uint32_t', 'numberOfBits')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function]
- cls.add_method('GetRemainingBits',
- 'uint32_t',
- [])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3Node_methods(root_module, cls):
- ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Node const &', 'arg0')])
- ## node.h (module 'network'): ns3::Node::Node() [constructor]
- cls.add_constructor([])
- ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor]
- cls.add_constructor([param('uint32_t', 'systemId')])
- ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function]
- cls.add_method('AddApplication',
- 'uint32_t',
- [param('ns3::Ptr< ns3::Application >', 'application')])
- ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('AddDevice',
- 'uint32_t',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')])
- ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function]
- cls.add_method('ChecksumEnabled',
- 'bool',
- [],
- is_static=True)
- ## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function]
- cls.add_method('GetApplication',
- 'ns3::Ptr< ns3::Application >',
- [param('uint32_t', 'index')],
- is_const=True)
- ## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function]
- cls.add_method('GetDevice',
- 'ns3::Ptr< ns3::NetDevice >',
- [param('uint32_t', 'index')],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function]
- cls.add_method('GetId',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function]
- cls.add_method('GetNApplications',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function]
- cls.add_method('GetNDevices',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function]
- cls.add_method('GetSystemId',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function]
- cls.add_method('RegisterProtocolHandler',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')])
- ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function]
- cls.add_method('UnregisterProtocolHandler',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')])
- ## node.h (module 'network'): void ns3::Node::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## node.h (module 'network'): void ns3::Node::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## node.h (module 'network'): void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('NotifyDeviceAdded',
- 'void',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')])
- return
-
-def register_Ns3ObjectFactoryValue_methods(root_module, cls):
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor]
- cls.add_constructor([param('ns3::ObjectFactory const &', 'value')])
- ## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::ObjectFactory',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::ObjectFactory const &', 'value')])
- return
-
-def register_Ns3Packet_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## packet.h (module 'network'): ns3::Packet::Packet() [constructor]
- cls.add_constructor([])
- ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
- cls.add_constructor([param('ns3::Packet const &', 'o')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor]
- cls.add_constructor([param('uint32_t', 'size')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor]
- cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
- cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
- cls.add_method('AddByteTag',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
- cls.add_method('AddHeader',
- 'void',
- [param('ns3::Header const &', 'header')])
- ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
- cls.add_method('AddPacketTag',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
- cls.add_method('AddPaddingAtEnd',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
- cls.add_method('AddTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer')])
- ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
- cls.add_method('BeginItem',
- 'ns3::PacketMetadata::ItemIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::Packet >',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'void',
- [param('std::ostream *', 'os'), param('uint32_t', 'size')],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::Ptr< ns3::Packet >',
- [param('uint32_t', 'start'), param('uint32_t', 'length')],
- is_const=True)
- ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function]
- cls.add_method('EnableChecking',
- 'void',
- [],
- is_static=True)
- ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function]
- cls.add_method('EnablePrinting',
- 'void',
- [],
- is_static=True)
- ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
- cls.add_method('FindFirstMatchingByteTag',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
- cls.add_method('GetByteTagIterator',
- 'ns3::ByteTagIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function]
- cls.add_method('GetNixVector',
- 'ns3::Ptr< ns3::NixVector >',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
- cls.add_method('GetPacketTagIterator',
- 'ns3::PacketTagIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint64_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function]
- cls.add_method('PeekData',
- 'uint8_t const *',
- [],
- deprecated=True, is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
- cls.add_method('PeekHeader',
- 'uint32_t',
- [param('ns3::Header &', 'header')],
- is_const=True)
- ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
- cls.add_method('PeekPacketTag',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
- cls.add_method('PeekTrailer',
- 'uint32_t',
- [param('ns3::Trailer &', 'trailer')])
- ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
- cls.add_method('PrintByteTags',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
- cls.add_method('PrintPacketTags',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function]
- cls.add_method('RemoveAllByteTags',
- 'void',
- [])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function]
- cls.add_method('RemoveAllPacketTags',
- 'void',
- [])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
- cls.add_method('RemoveHeader',
- 'uint32_t',
- [param('ns3::Header &', 'header')])
- ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
- cls.add_method('RemovePacketTag',
- 'bool',
- [param('ns3::Tag &', 'tag')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
- cls.add_method('RemoveTrailer',
- 'uint32_t',
- [param('ns3::Trailer &', 'trailer')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> arg0) [member function]
- cls.add_method('SetNixVector',
- 'void',
- [param('ns3::Ptr< ns3::NixVector >', 'arg0')])
- return
-
-def register_Ns3RvBatteryModel_methods(root_module, cls):
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')])
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel() [constructor]
- cls.add_constructor([])
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetAlpha() const [member function]
- cls.add_method('GetAlpha',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBatteryLevel() [member function]
- cls.add_method('GetBatteryLevel',
- 'double',
- [])
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBeta() const [member function]
- cls.add_method('GetBeta',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetCutoffVoltage() const [member function]
- cls.add_method('GetCutoffVoltage',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function]
- cls.add_method('GetLifetime',
- 'ns3::Time',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): int ns3::RvBatteryModel::GetNumOfTerms() const [member function]
- cls.add_method('GetNumOfTerms',
- 'int',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function]
- cls.add_method('GetOpenCircuitVoltage',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function]
- cls.add_method('GetSamplingInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## rv-battery-model.h (module 'energy'): static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetAlpha(double alpha) [member function]
- cls.add_method('SetAlpha',
- 'void',
- [param('double', 'alpha')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetBeta(double beta) [member function]
- cls.add_method('SetBeta',
- 'void',
- [param('double', 'beta')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function]
- cls.add_method('SetCutoffVoltage',
- 'void',
- [param('double', 'voltage')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function]
- cls.add_method('SetNumOfTerms',
- 'void',
- [param('int', 'num')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function]
- cls.add_method('SetOpenCircuitVoltage',
- 'void',
- [param('double', 'voltage')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function]
- cls.add_method('SetSamplingInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3SimpleDeviceEnergyModel_methods(root_module, cls):
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel(ns3::SimpleDeviceEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::SimpleDeviceEnergyModel const &', 'arg0')])
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel() [constructor]
- cls.add_constructor([])
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::SimpleDeviceEnergyModel::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_const=True, is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): static ns3::TypeId ns3::SimpleDeviceEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetCurrentA(double current) [member function]
- cls.add_method('SetCurrentA',
- 'void',
- [param('double', 'current')])
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3TimeChecker_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')])
- return
-
-def register_Ns3TimeValue_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TimeValue const &', 'arg0')])
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor]
- cls.add_constructor([param('ns3::Time const &', 'value')])
- ## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Time',
- [],
- is_const=True)
- ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Time const &', 'value')])
- return
-
-def register_Ns3TypeIdChecker_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')])
- return
-
-def register_Ns3TypeIdValue_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')])
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor]
- cls.add_constructor([param('ns3::TypeId const &', 'value')])
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::TypeId const &', 'value')])
- return
-
-def register_Ns3UintegerValue_methods(root_module, cls):
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue() [constructor]
- cls.add_constructor([])
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(ns3::UintegerValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::UintegerValue const &', 'arg0')])
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(uint64_t const & value) [constructor]
- cls.add_constructor([param('uint64_t const &', 'value')])
- ## uinteger.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::UintegerValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## uinteger.h (module 'core'): bool ns3::UintegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## uinteger.h (module 'core'): uint64_t ns3::UintegerValue::Get() const [member function]
- cls.add_method('Get',
- 'uint64_t',
- [],
- is_const=True)
- ## uinteger.h (module 'core'): std::string ns3::UintegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## uinteger.h (module 'core'): void ns3::UintegerValue::Set(uint64_t const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint64_t const &', 'value')])
- return
-
-def register_Ns3WifiModeChecker_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')])
- return
-
-def register_Ns3WifiModeValue_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor]
- cls.add_constructor([param('ns3::WifiMode const &', 'value')])
- ## wifi-mode.h (module 'wifi'): ns3::Ptr<ns3::AttributeValue> ns3::WifiModeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## wifi-mode.h (module 'wifi'): bool ns3::WifiModeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode ns3::WifiModeValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::WifiMode',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): std::string ns3::WifiModeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## wifi-mode.h (module 'wifi'): void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::WifiMode const &', 'value')])
- return
-
-def register_Ns3WifiRadioEnergyModel_methods(root_module, cls):
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel(ns3::WifiRadioEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModel const &', 'arg0')])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function]
- cls.add_method('GetCcaBusyCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function]
- cls.add_method('GetCurrentState',
- 'ns3::WifiPhy::State',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function]
- cls.add_method('GetIdleCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function]
- cls.add_method('GetPhyListener',
- 'ns3::WifiRadioEnergyModelPhyListener *',
- [])
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function]
- cls.add_method('GetRxCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function]
- cls.add_method('GetSwitchingCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTxCurrentA() const [member function]
- cls.add_method('GetTxCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): static ns3::TypeId ns3::WifiRadioEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function]
- cls.add_method('SetCcaBusyCurrentA',
- 'void',
- [param('double', 'ccaBusyCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('SetEnergyDepletionCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetIdleCurrentA(double idleCurrentA) [member function]
- cls.add_method('SetIdleCurrentA',
- 'void',
- [param('double', 'idleCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function]
- cls.add_method('SetRxCurrentA',
- 'void',
- [param('double', 'rxCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function]
- cls.add_method('SetSwitchingCurrentA',
- 'void',
- [param('double', 'switchingCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function]
- cls.add_method('SetTxCurrentA',
- 'void',
- [param('double', 'txCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3AddressChecker_methods(root_module, cls):
- ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3AddressValue_methods(root_module, cls):
- ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AddressValue const &', 'arg0')])
- ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor]
- cls.add_constructor([param('ns3::Address const &', 'value')])
- ## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Address',
- [],
- is_const=True)
- ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Address const &', 'value')])
- return
-
-def register_Ns3BasicEnergySource_methods(root_module, cls):
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource(ns3::BasicEnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')])
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource() [constructor]
- cls.add_constructor([])
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): ns3::Time ns3::BasicEnergySource::GetEnergyUpdateInterval() const [member function]
- cls.add_method('GetEnergyUpdateInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## basic-energy-source.h (module 'energy'): static ns3::TypeId ns3::BasicEnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
- cls.add_method('SetEnergyUpdateInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
- cls.add_method('SetInitialEnergy',
- 'void',
- [param('double', 'initialEnergyJ')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetSupplyVoltage(double supplyVoltageV) [member function]
- cls.add_method('SetSupplyVoltage',
- 'void',
- [param('double', 'supplyVoltageV')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_functions(root_module):
- module = root_module
- register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
- register_functions_ns3_internal(module.get_submodule('internal'), root_module)
- return
-
-def register_functions_ns3_FatalImpl(module, root_module):
- return
-
-def register_functions_ns3_internal(module, root_module):
- return
-
-def main():
- out = FileCodeSink(sys.stdout)
- root_module = module_init()
- register_types(root_module)
- register_methods(root_module)
- register_functions(root_module)
- root_module.generate(out)
-
-if __name__ == '__main__':
- main()
-
--- a/src/contrib/energy/bindings/modulegen__gcc_LP64.py Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5035 +0,0 @@
-from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
-
-
-import pybindgen.settings
-import warnings
-
-class ErrorHandler(pybindgen.settings.ErrorHandler):
- def handle_error(self, wrapper, exception, traceback_):
- warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
- return True
-pybindgen.settings.error_handler = ErrorHandler()
-
-
-import sys
-
-def module_init():
- root_module = Module('ns.energy', cpp_namespace='::ns3')
- return root_module
-
-def register_types(module):
- root_module = module.get_root()
-
- ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate [enumeration]
- module.add_enum('WifiCodeRate', ['WIFI_CODE_RATE_UNDEFINED', 'WIFI_CODE_RATE_3_4', 'WIFI_CODE_RATE_2_3', 'WIFI_CODE_RATE_1_2'], import_from_module='ns.wifi')
- ## wifi-preamble.h (module 'wifi'): ns3::WifiPreamble [enumeration]
- module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT'], import_from_module='ns.wifi')
- ## wifi-phy-standard.h (module 'wifi'): ns3::WifiPhyStandard [enumeration]
- module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211g', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH'], import_from_module='ns.wifi')
- ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass [enumeration]
- module.add_enum('WifiModulationClass', ['WIFI_MOD_CLASS_UNKNOWN', 'WIFI_MOD_CLASS_IR', 'WIFI_MOD_CLASS_FHSS', 'WIFI_MOD_CLASS_DSSS', 'WIFI_MOD_CLASS_ERP_PBCC', 'WIFI_MOD_CLASS_DSSS_OFDM', 'WIFI_MOD_CLASS_ERP_OFDM', 'WIFI_MOD_CLASS_OFDM', 'WIFI_MOD_CLASS_HT'], import_from_module='ns.wifi')
- ## address.h (module 'network'): ns3::Address [class]
- module.add_class('Address', import_from_module='ns.network')
- ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration]
- module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network')
- ## attribute-list.h (module 'core'): ns3::AttributeList [class]
- module.add_class('AttributeList', import_from_module='ns.core')
- ## buffer.h (module 'network'): ns3::Buffer [class]
- module.add_class('Buffer', import_from_module='ns.network')
- ## buffer.h (module 'network'): ns3::Buffer::Iterator [class]
- module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer'])
- ## packet.h (module 'network'): ns3::ByteTagIterator [class]
- module.add_class('ByteTagIterator', import_from_module='ns.network')
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator'])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class]
- module.add_class('ByteTagList', import_from_module='ns.network')
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class]
- module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList'])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator'])
- ## callback.h (module 'core'): ns3::CallbackBase [class]
- module.add_class('CallbackBase', import_from_module='ns.core')
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer [class]
- module.add_class('DeviceEnergyModelContainer')
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper [class]
- module.add_class('DeviceEnergyModelHelper', allow_subclassing=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper [class]
- module.add_class('EnergySourceHelper', allow_subclassing=True)
- ## event-id.h (module 'core'): ns3::EventId [class]
- module.add_class('EventId', import_from_module='ns.core')
- ## high-precision-128.h (module 'core'): ns3::HighPrecision [class]
- module.add_class('HighPrecision', import_from_module='ns.core')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
- module.add_class('Ipv4Address', import_from_module='ns.network')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
- root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class]
- module.add_class('Ipv4Mask', import_from_module='ns.network')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
- module.add_class('Ipv6Address', import_from_module='ns.network')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
- root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class]
- module.add_class('Ipv6Prefix', import_from_module='ns.network')
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class]
- module.add_class('NetDeviceContainer', import_from_module='ns.network')
- ## node-container.h (module 'network'): ns3::NodeContainer [class]
- module.add_class('NodeContainer', import_from_module='ns.network')
- ## object-base.h (module 'core'): ns3::ObjectBase [class]
- module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core')
- ## object.h (module 'core'): ns3::ObjectDeleter [struct]
- module.add_class('ObjectDeleter', import_from_module='ns.core')
- ## object-factory.h (module 'core'): ns3::ObjectFactory [class]
- module.add_class('ObjectFactory', import_from_module='ns.core')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class]
- module.add_class('PacketMetadata', import_from_module='ns.network')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration]
- module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
- module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
- ## packet.h (module 'network'): ns3::PacketTagIterator [class]
- module.add_class('PacketTagIterator', import_from_module='ns.network')
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
- module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
- module.add_class('PacketTagList', import_from_module='ns.network')
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
- module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
- module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## tag.h (module 'network'): ns3::Tag [class]
- module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
- ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
- module.add_class('TagBuffer', import_from_module='ns.network')
- ## nstime.h (module 'core'): ns3::Time [class]
- module.add_class('Time', import_from_module='ns.core')
- ## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
- module.add_enum('Unit', ['S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core')
- ## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
- module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['double'])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
- module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['ns3::Time'])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
- root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time'])
- ## type-id.h (module 'core'): ns3::TypeId [class]
- module.add_class('TypeId', import_from_module='ns.core')
- ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
- module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo [struct]
- module.add_class('AttributeInfo', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList [class]
- module.add_class('UnsafeAttributeList', import_from_module='ns.core')
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode [class]
- module.add_class('WifiMode', import_from_module='ns.wifi')
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory [class]
- module.add_class('WifiModeFactory', import_from_module='ns.wifi')
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener [class]
- module.add_class('WifiPhyListener', allow_subclassing=True, import_from_module='ns.wifi')
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper [class]
- module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper'])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener [class]
- module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener'])
- ## empty.h (module 'core'): ns3::empty [class]
- module.add_class('empty', import_from_module='ns.core')
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
- module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
- ## chunk.h (module 'network'): ns3::Chunk [class]
- module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
- ## header.h (module 'network'): ns3::Header [class]
- module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
- ## object.h (module 'core'): ns3::Object [class]
- module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
- ## object.h (module 'core'): ns3::Object::AggregateIterator [class]
- module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object'])
- ## nstime.h (module 'core'): ns3::Scalar [class]
- module.add_class('Scalar', import_from_module='ns.core')
- ## nstime.h (module 'core'): ns3::Scalar [class]
- root_module['ns3::Scalar'].implicitly_converts_to(root_module['ns3::Time'])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class]
- module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
- ## trailer.h (module 'network'): ns3::Trailer [class]
- module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy [class]
- module.add_class('WifiPhy', import_from_module='ns.wifi', parent=root_module['ns3::Object'])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::State [enumeration]
- module.add_enum('State', ['IDLE', 'CCA_BUSY', 'TX', 'RX', 'SWITCHING'], outer_class=root_module['ns3::WifiPhy'], import_from_module='ns.wifi')
- ## attribute.h (module 'core'): ns3::AttributeAccessor [class]
- module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
- ## attribute.h (module 'core'): ns3::AttributeChecker [class]
- module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
- ## attribute.h (module 'core'): ns3::AttributeValue [class]
- module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
- ## boolean.h (module 'core'): ns3::BooleanChecker [class]
- module.add_class('BooleanChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## boolean.h (module 'core'): ns3::BooleanValue [class]
- module.add_class('BooleanValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## callback.h (module 'core'): ns3::CallbackChecker [class]
- module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## callback.h (module 'core'): ns3::CallbackImplBase [class]
- module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
- ## callback.h (module 'core'): ns3::CallbackValue [class]
- module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel [class]
- module.add_class('DeviceEnergyModel', parent=root_module['ns3::Object'])
- ## double.h (module 'core'): ns3::DoubleValue [class]
- module.add_class('DoubleValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class]
- module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## energy-source.h (module 'energy'): ns3::EnergySource [class]
- module.add_class('EnergySource', parent=root_module['ns3::Object'])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer [class]
- module.add_class('EnergySourceContainer', parent=root_module['ns3::Object'])
- ## enum.h (module 'core'): ns3::EnumChecker [class]
- module.add_class('EnumChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## enum.h (module 'core'): ns3::EnumValue [class]
- module.add_class('EnumValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## event-impl.h (module 'core'): ns3::EventImpl [class]
- module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
- ## integer.h (module 'core'): ns3::IntegerValue [class]
- module.add_class('IntegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class]
- module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class]
- module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class]
- module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class]
- module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class]
- module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class]
- module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class]
- module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class]
- module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource [class]
- module.add_class('LiIonEnergySource', parent=root_module['ns3::EnergySource'])
- ## net-device.h (module 'network'): ns3::NetDevice [class]
- module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object'])
- ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration]
- module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network')
- ## nix-vector.h (module 'network'): ns3::NixVector [class]
- module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
- ## node.h (module 'network'): ns3::Node [class]
- module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object'])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class]
- module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class]
- module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## packet.h (module 'network'): ns3::Packet [class]
- module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel [class]
- module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource'])
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel [class]
- module.add_class('SimpleDeviceEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
- ## nstime.h (module 'core'): ns3::TimeChecker [class]
- module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## nstime.h (module 'core'): ns3::TimeValue [class]
- module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## type-id.h (module 'core'): ns3::TypeIdChecker [class]
- module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
- ## type-id.h (module 'core'): ns3::TypeIdValue [class]
- module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## uinteger.h (module 'core'): ns3::UintegerValue [class]
- module.add_class('UintegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker [class]
- module.add_class('WifiModeChecker', import_from_module='ns.wifi', parent=root_module['ns3::AttributeChecker'])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue [class]
- module.add_class('WifiModeValue', import_from_module='ns.wifi', parent=root_module['ns3::AttributeValue'])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel [class]
- module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
- ## address.h (module 'network'): ns3::AddressChecker [class]
- module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
- ## address.h (module 'network'): ns3::AddressValue [class]
- module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
- module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
- typehandlers.add_type_alias('ns3::Time', 'ns3::TimeSquare')
- typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeSquare*')
- typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeSquare&')
- module.add_typedef(root_module['ns3::Time'], 'TimeSquare')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
- typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
- typehandlers.add_type_alias('ns3::Time', 'ns3::TimeInvert')
- typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeInvert*')
- typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeInvert&')
- module.add_typedef(root_module['ns3::Time'], 'TimeInvert')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
- typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
-
- ## Register a nested module for the namespace FatalImpl
-
- nested_module = module.add_cpp_namespace('FatalImpl')
- register_types_ns3_FatalImpl(nested_module)
-
-
- ## Register a nested module for the namespace internal
-
- nested_module = module.add_cpp_namespace('internal')
- register_types_ns3_internal(nested_module)
-
-
-def register_types_ns3_FatalImpl(module):
- root_module = module.get_root()
-
-
-def register_types_ns3_internal(module):
- root_module = module.get_root()
-
-
-def register_methods(root_module):
- register_Ns3Address_methods(root_module, root_module['ns3::Address'])
- register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
- register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
- register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
- register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
- register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
- register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
- register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
- register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
- register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
- register_Ns3DeviceEnergyModelContainer_methods(root_module, root_module['ns3::DeviceEnergyModelContainer'])
- register_Ns3DeviceEnergyModelHelper_methods(root_module, root_module['ns3::DeviceEnergyModelHelper'])
- register_Ns3EnergySourceHelper_methods(root_module, root_module['ns3::EnergySourceHelper'])
- register_Ns3EventId_methods(root_module, root_module['ns3::EventId'])
- register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision'])
- register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address'])
- register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask'])
- register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address'])
- register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix'])
- register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
- register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer'])
- register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
- register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
- register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
- register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
- register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
- register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
- register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
- register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
- register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
- register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
- register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
- register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
- register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
- register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
- register_Ns3Time_methods(root_module, root_module['ns3::Time'])
- register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
- register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
- register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
- register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
- register_Ns3UnsafeAttributeList_methods(root_module, root_module['ns3::UnsafeAttributeList'])
- register_Ns3WifiMode_methods(root_module, root_module['ns3::WifiMode'])
- register_Ns3WifiModeFactory_methods(root_module, root_module['ns3::WifiModeFactory'])
- register_Ns3WifiPhyListener_methods(root_module, root_module['ns3::WifiPhyListener'])
- register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper'])
- register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener'])
- register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
- register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper'])
- register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
- register_Ns3Header_methods(root_module, root_module['ns3::Header'])
- register_Ns3Object_methods(root_module, root_module['ns3::Object'])
- register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
- register_Ns3Scalar_methods(root_module, root_module['ns3::Scalar'])
- register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
- register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
- register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
- register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
- register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
- register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
- register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
- register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
- register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy'])
- register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
- register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
- register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
- register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
- register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue'])
- register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
- register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
- register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
- register_Ns3DeviceEnergyModel_methods(root_module, root_module['ns3::DeviceEnergyModel'])
- register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue'])
- register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue'])
- register_Ns3EnergySource_methods(root_module, root_module['ns3::EnergySource'])
- register_Ns3EnergySourceContainer_methods(root_module, root_module['ns3::EnergySourceContainer'])
- register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
- register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue'])
- register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl'])
- register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue'])
- register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker'])
- register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue'])
- register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker'])
- register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue'])
- register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker'])
- register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue'])
- register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker'])
- register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue'])
- register_Ns3LiIonEnergySource_methods(root_module, root_module['ns3::LiIonEnergySource'])
- register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
- register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector'])
- register_Ns3Node_methods(root_module, root_module['ns3::Node'])
- register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker'])
- register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
- register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
- register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel'])
- register_Ns3SimpleDeviceEnergyModel_methods(root_module, root_module['ns3::SimpleDeviceEnergyModel'])
- register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
- register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
- register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
- register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
- register_Ns3UintegerValue_methods(root_module, root_module['ns3::UintegerValue'])
- register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker'])
- register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue'])
- register_Ns3WifiRadioEnergyModel_methods(root_module, root_module['ns3::WifiRadioEnergyModel'])
- register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
- register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
- register_Ns3BasicEnergySource_methods(root_module, root_module['ns3::BasicEnergySource'])
- return
-
-def register_Ns3Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## address.h (module 'network'): ns3::Address::Address() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
- cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor]
- cls.add_constructor([param('ns3::Address const &', 'address')])
- ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function]
- cls.add_method('CheckCompatible',
- 'bool',
- [param('uint8_t', 'type'), param('uint8_t', 'len')],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function]
- cls.add_method('CopyAllFrom',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function]
- cls.add_method('CopyAllTo',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint8_t', 'len')],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function]
- cls.add_method('CopyFrom',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
- ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function]
- cls.add_method('CopyTo',
- 'uint32_t',
- [param('uint8_t *', 'buffer')],
- is_const=True)
- ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function]
- cls.add_method('Deserialize',
- 'void',
- [param('ns3::TagBuffer', 'buffer')])
- ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function]
- cls.add_method('GetLength',
- 'uint8_t',
- [],
- is_const=True)
- ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function]
- cls.add_method('IsInvalid',
- 'bool',
- [],
- is_const=True)
- ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('uint8_t', 'type')],
- is_const=True)
- ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function]
- cls.add_method('Register',
- 'uint8_t',
- [],
- is_static=True)
- ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::TagBuffer', 'buffer')],
- is_const=True)
- return
-
-def register_Ns3AttributeList_methods(root_module, cls):
- ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList() [constructor]
- cls.add_constructor([])
- ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList(ns3::AttributeList const & o) [copy constructor]
- cls.add_constructor([param('ns3::AttributeList const &', 'o')])
- ## attribute-list.h (module 'core'): bool ns3::AttributeList::DeserializeFromString(std::string value) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value')])
- ## attribute-list.h (module 'core'): static ns3::AttributeList * ns3::AttributeList::GetGlobal() [member function]
- cls.add_method('GetGlobal',
- 'ns3::AttributeList *',
- [],
- is_static=True)
- ## attribute-list.h (module 'core'): void ns3::AttributeList::Reset() [member function]
- cls.add_method('Reset',
- 'void',
- [])
- ## attribute-list.h (module 'core'): std::string ns3::AttributeList::SerializeToString() const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [],
- is_const=True)
- ## attribute-list.h (module 'core'): void ns3::AttributeList::Set(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## attribute-list.h (module 'core'): bool ns3::AttributeList::SetFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## attribute-list.h (module 'core'): void ns3::AttributeList::SetWithTid(ns3::TypeId tid, std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetWithTid',
- 'void',
- [param('ns3::TypeId', 'tid'), param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- return
-
-def register_Ns3Buffer_methods(root_module, cls):
- ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor]
- cls.add_constructor([])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
- cls.add_constructor([param('uint32_t', 'dataSize')])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor]
- cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')])
- ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
- cls.add_constructor([param('ns3::Buffer const &', 'o')])
- ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
- cls.add_method('AddAtEnd',
- 'bool',
- [param('uint32_t', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::Buffer const &', 'o')])
- ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
- cls.add_method('AddAtStart',
- 'bool',
- [param('uint32_t', 'start')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
- cls.add_method('Begin',
- 'ns3::Buffer::Iterator',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'void',
- [param('std::ostream *', 'os'), param('uint32_t', 'size')],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
- is_const=True)
- ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::Buffer',
- [param('uint32_t', 'start'), param('uint32_t', 'length')],
- is_const=True)
- ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
- cls.add_method('CreateFullCopy',
- 'ns3::Buffer',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
- cls.add_method('End',
- 'ns3::Buffer::Iterator',
- [],
- is_const=True)
- ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
- cls.add_method('GetCurrentEndOffset',
- 'int32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
- cls.add_method('GetCurrentStartOffset',
- 'int32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function]
- cls.add_method('PeekData',
- 'uint8_t const *',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'start')])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3BufferIterator_methods(root_module, cls):
- ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
- ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor]
- cls.add_constructor([])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
- cls.add_method('CalculateIpChecksum',
- 'uint16_t',
- [param('uint16_t', 'size')])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
- cls.add_method('CalculateIpChecksum',
- 'uint16_t',
- [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
- cls.add_method('GetDistanceFrom',
- 'uint32_t',
- [param('ns3::Buffer::Iterator const &', 'o')],
- is_const=True)
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function]
- cls.add_method('IsEnd',
- 'bool',
- [],
- is_const=True)
- ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function]
- cls.add_method('IsStart',
- 'bool',
- [],
- is_const=True)
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function]
- cls.add_method('Next',
- 'void',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
- cls.add_method('Next',
- 'void',
- [param('uint32_t', 'delta')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
- cls.add_method('Prev',
- 'void',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
- cls.add_method('Prev',
- 'void',
- [param('uint32_t', 'delta')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
- cls.add_method('Read',
- 'void',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
- cls.add_method('ReadLsbtohU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
- cls.add_method('ReadLsbtohU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
- cls.add_method('ReadLsbtohU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
- cls.add_method('ReadNtohU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
- cls.add_method('ReadNtohU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
- cls.add_method('ReadNtohU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
- cls.add_method('ReadU16',
- 'uint16_t',
- [])
- ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
- cls.add_method('ReadU32',
- 'uint32_t',
- [])
- ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
- cls.add_method('ReadU64',
- 'uint64_t',
- [])
- ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
- cls.add_method('ReadU8',
- 'uint8_t',
- [])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Write',
- 'void',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
- cls.add_method('Write',
- 'void',
- [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
- cls.add_method('WriteHtolsbU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
- cls.add_method('WriteHtolsbU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
- cls.add_method('WriteHtolsbU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
- cls.add_method('WriteHtonU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
- cls.add_method('WriteHtonU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
- cls.add_method('WriteHtonU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
- cls.add_method('WriteU16',
- 'void',
- [param('uint16_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
- cls.add_method('WriteU32',
- 'void',
- [param('uint32_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
- cls.add_method('WriteU64',
- 'void',
- [param('uint64_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'data')])
- ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'data'), param('uint32_t', 'len')])
- return
-
-def register_Ns3ByteTagIterator_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
- ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::ByteTagIterator::Item',
- [])
- return
-
-def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
- ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
- cls.add_method('GetEnd',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
- cls.add_method('GetStart',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
- cls.add_method('GetTag',
- 'void',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- return
-
-def register_Ns3ByteTagList_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor]
- cls.add_constructor([])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
- ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
- cls.add_method('Add',
- 'ns3::TagBuffer',
- [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::ByteTagList const &', 'o')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
- cls.add_method('AddAtStart',
- 'void',
- [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
- cls.add_method('Begin',
- 'ns3::ByteTagList::Iterator',
- [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')],
- is_const=True)
- ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function]
- cls.add_method('RemoveAll',
- 'void',
- [])
- return
-
-def register_Ns3ByteTagListIterator_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
- ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
- cls.add_method('GetOffsetStart',
- 'uint32_t',
- [],
- is_const=True)
- ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::ByteTagList::Iterator::Item',
- [])
- return
-
-def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
- cls.add_constructor([param('ns3::TagBuffer', 'buf')])
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable]
- cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable]
- cls.add_instance_attribute('end', 'int32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable]
- cls.add_instance_attribute('size', 'uint32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable]
- cls.add_instance_attribute('start', 'int32_t', is_const=False)
- ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3CallbackBase_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')])
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function]
- cls.add_method('GetImpl',
- 'ns3::Ptr< ns3::CallbackImplBase >',
- [],
- is_const=True)
- ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
- visibility='protected')
- ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
- cls.add_method('Demangle',
- 'std::string',
- [param('std::string const &', 'mangled')],
- is_static=True, visibility='protected')
- return
-
-def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer() [constructor]
- cls.add_constructor([])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::Ptr<ns3::DeviceEnergyModel> model) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(std::string modelName) [constructor]
- cls.add_constructor([param('std::string', 'modelName')])
- ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & a, ns3::DeviceEnergyModelContainer const & b) [constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'a'), param('ns3::DeviceEnergyModelContainer const &', 'b')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::DeviceEnergyModelContainer container) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::DeviceEnergyModelContainer', 'container')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::Ptr<ns3::DeviceEnergyModel> model) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(std::string modelName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'modelName')])
- ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
- [],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Clear() [member function]
- cls.add_method('Clear',
- 'void',
- [])
- ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
- [],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## device-energy-model-container.h (module 'energy'): uint32_t ns3::DeviceEnergyModelContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3DeviceEnergyModelHelper_methods(root_module, cls):
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper() [constructor]
- cls.add_constructor([])
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper(ns3::DeviceEnergyModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModelHelper const &', 'arg0')])
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('Install',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::NetDeviceContainer deviceContainer, ns3::EnergySourceContainer sourceContainer) const [member function]
- cls.add_method('Install',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::NetDeviceContainer', 'deviceContainer'), param('ns3::EnergySourceContainer', 'sourceContainer')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): void ns3::DeviceEnergyModelHelper::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_pure_virtual=True, is_virtual=True)
- ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySourceHelper_methods(root_module, cls):
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper() [constructor]
- cls.add_constructor([])
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper(ns3::EnergySourceHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySourceHelper const &', 'arg0')])
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::NodeContainer c) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('ns3::NodeContainer', 'c')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(std::string nodeName) const [member function]
- cls.add_method('Install',
- 'ns3::EnergySourceContainer',
- [param('std::string', 'nodeName')],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::InstallAll() const [member function]
- cls.add_method('InstallAll',
- 'ns3::EnergySourceContainer',
- [],
- is_const=True)
- ## energy-model-helper.h (module 'energy'): void ns3::EnergySourceHelper::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_pure_virtual=True, is_virtual=True)
- ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> node) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::EnergySource >',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EventId_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_binary_comparison_operator('==')
- ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EventId const &', 'arg0')])
- ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor]
- cls.add_constructor([])
- ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')])
- ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function]
- cls.add_method('Cancel',
- 'void',
- [])
- ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function]
- cls.add_method('GetContext',
- 'uint32_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function]
- cls.add_method('GetTs',
- 'uint64_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint32_t',
- [],
- is_const=True)
- ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function]
- cls.add_method('IsExpired',
- 'bool',
- [],
- is_const=True)
- ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function]
- cls.add_method('IsRunning',
- 'bool',
- [],
- is_const=True)
- ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function]
- cls.add_method('PeekEventImpl',
- 'ns3::EventImpl *',
- [],
- is_const=True)
- return
-
-def register_Ns3HighPrecision_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')])
- ## high-precision-128.h (module 'core'): 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 (module 'core'): ns3::HighPrecision::HighPrecision() [constructor]
- cls.add_constructor([])
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor]
- cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')])
- ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(double value) [constructor]
- cls.add_constructor([param('double', 'value')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function]
- cls.add_method('Div',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): double ns3::HighPrecision::GetDouble() const [member function]
- cls.add_method('GetDouble',
- 'double',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetHigh() const [member function]
- cls.add_method('GetHigh',
- 'int64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetInteger() const [member function]
- cls.add_method('GetInteger',
- 'int64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): uint64_t ns3::HighPrecision::GetLow() const [member function]
- cls.add_method('GetLow',
- 'uint64_t',
- [],
- is_const=True)
- ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function]
- cls.add_method('Mul',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function]
- cls.add_method('MulByInvert',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function]
- cls.add_method('Sub',
- 'void',
- [param('ns3::HighPrecision const &', 'o')])
- ## high-precision-128.h (module 'core'): static ns3::HighPrecision ns3::HighPrecision::Zero() [member function]
- cls.add_method('Zero',
- 'ns3::HighPrecision',
- [],
- is_static=True)
- return
-
-def register_Ns3Ipv4Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor]
- cls.add_constructor([param('uint32_t', 'address')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor]
- cls.add_constructor([param('char const *', 'address')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('CombineMask',
- 'ns3::Ipv4Address',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function]
- cls.add_method('ConvertFrom',
- 'ns3::Ipv4Address',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function]
- cls.add_method('Deserialize',
- 'ns3::Ipv4Address',
- [param('uint8_t const *', 'buf')],
- is_static=True)
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
- cls.add_method('Get',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
- cls.add_method('GetAny',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function]
- cls.add_method('GetBroadcast',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('GetSubnetDirectedBroadcast',
- 'ns3::Ipv4Address',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv4Address',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function]
- cls.add_method('IsBroadcast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv4Address const &', 'other')],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function]
- cls.add_method('IsLocalMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
- cls.add_method('IsSubnetDirectedBroadcast',
- 'bool',
- [param('ns3::Ipv4Mask const &', 'mask')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint32_t', 'address')])
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('char const *', 'address')])
- return
-
-def register_Ns3Ipv4Mask_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor]
- cls.add_constructor([param('uint32_t', 'mask')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor]
- cls.add_constructor([param('char const *', 'mask')])
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function]
- cls.add_method('Get',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function]
- cls.add_method('GetInverse',
- 'uint32_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function]
- cls.add_method('GetPrefixLength',
- 'uint16_t',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv4Mask',
- [],
- is_static=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv4Mask', 'other')],
- is_const=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function]
- cls.add_method('IsMatch',
- 'bool',
- [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint32_t', 'mask')])
- return
-
-def register_Ns3Ipv6Address_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
- cls.add_constructor([param('char const *', 'address')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor]
- cls.add_constructor([param('uint8_t *', 'address')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor]
- cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function]
- cls.add_method('CombinePrefix',
- 'ns3::Ipv6Address',
- [param('ns3::Ipv6Prefix const &', 'prefix')])
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function]
- cls.add_method('ConvertFrom',
- 'ns3::Ipv6Address',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function]
- cls.add_method('Deserialize',
- 'ns3::Ipv6Address',
- [param('uint8_t const *', 'buf')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function]
- cls.add_method('GetAllHostsMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function]
- cls.add_method('GetAllNodesMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function]
- cls.add_method('GetAllRoutersMulticast',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function]
- cls.add_method('GetAny',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function]
- cls.add_method('GetBytes',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv6Address',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function]
- cls.add_method('IsAllHostsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function]
- cls.add_method('IsAllNodesMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function]
- cls.add_method('IsAllRoutersMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function]
- cls.add_method('IsAny',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv6Address const &', 'other')],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function]
- cls.add_method('IsLinkLocal',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function]
- cls.add_method('IsLocalhost',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function]
- cls.add_method('IsMatchingType',
- 'bool',
- [param('ns3::Address const &', 'address')],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function]
- cls.add_method('IsSolicitedMulticast',
- 'bool',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function]
- cls.add_method('MakeAutoconfiguredAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function]
- cls.add_method('MakeAutoconfiguredLinkLocalAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Mac48Address', 'mac')],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function]
- cls.add_method('MakeSolicitedAddress',
- 'ns3::Ipv6Address',
- [param('ns3::Ipv6Address', 'addr')],
- is_static=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('char const *', 'address')])
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint8_t *', 'address')])
- return
-
-def register_Ns3Ipv6Prefix_methods(root_module, cls):
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor]
- cls.add_constructor([param('uint8_t *', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor]
- cls.add_constructor([param('char const *', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor]
- cls.add_constructor([param('uint8_t', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')])
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function]
- cls.add_method('GetBytes',
- 'void',
- [param('uint8_t *', 'buf')],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function]
- cls.add_method('GetLoopback',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function]
- cls.add_method('GetOnes',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function]
- cls.add_method('GetPrefixLength',
- 'uint8_t',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function]
- cls.add_method('GetZero',
- 'ns3::Ipv6Prefix',
- [],
- is_static=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ipv6Prefix const &', 'other')],
- is_const=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function]
- cls.add_method('IsMatch',
- 'bool',
- [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')],
- is_const=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- return
-
-def register_Ns3NetDeviceContainer_methods(root_module, cls):
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor]
- cls.add_constructor([])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor]
- cls.add_constructor([param('std::string', 'devName')])
- ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor]
- cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::NetDeviceContainer', 'other')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')])
- ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'deviceName')])
- ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
- [],
- is_const=True)
- ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
- [],
- is_const=True)
- ## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::NetDevice >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3NodeContainer_methods(root_module, cls):
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor]
- cls.add_constructor([])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor]
- cls.add_constructor([param('std::string', 'nodeName')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')])
- ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor]
- cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::NodeContainer', 'other')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'nodeName')])
- ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
- [],
- is_const=True)
- ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function]
- cls.add_method('Create',
- 'void',
- [param('uint32_t', 'n')])
- ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function]
- cls.add_method('Create',
- 'void',
- [param('uint32_t', 'n'), param('uint32_t', 'systemId')])
- ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
- [],
- is_const=True)
- ## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::Node >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function]
- cls.add_method('GetGlobal',
- 'ns3::NodeContainer',
- [],
- is_static=True)
- ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- return
-
-def register_Ns3ObjectBase_methods(root_module, cls):
- ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor]
- cls.add_constructor([])
- ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')])
- ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function]
- cls.add_method('GetAttribute',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')],
- is_const=True)
- ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function]
- cls.add_method('GetAttributeFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')],
- is_const=True)
- ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function]
- cls.add_method('GetInstanceTypeId',
- 'ns3::TypeId',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetAttribute',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('SetAttributeFailSafe',
- 'bool',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceConnect',
- 'bool',
- [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceConnectWithoutContext',
- 'bool',
- [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceDisconnect',
- 'bool',
- [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
- cls.add_method('TraceDisconnectWithoutContext',
- 'bool',
- [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
- ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeList const & attributes) [member function]
- cls.add_method('ConstructSelf',
- 'void',
- [param('ns3::AttributeList const &', 'attributes')],
- visibility='protected')
- ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function]
- cls.add_method('NotifyConstructionCompleted',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- return
-
-def register_Ns3ObjectDeleter_methods(root_module, cls):
- ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')])
- ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function]
- cls.add_method('Delete',
- 'void',
- [param('ns3::Object *', 'object')],
- is_static=True)
- return
-
-def register_Ns3ObjectFactory_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')])
- ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::Object >',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(ns3::AttributeList const & list) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::AttributeList const &', 'list')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('ns3::TypeId', 'tid')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('char const *', 'tid')])
- ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function]
- cls.add_method('SetTypeId',
- 'void',
- [param('std::string', 'tid')])
- return
-
-def register_Ns3PacketMetadata_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor]
- cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::PacketMetadata const &', 'o')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
- cls.add_method('AddHeader',
- 'void',
- [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
- cls.add_method('AddPaddingAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
- cls.add_method('AddTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
- cls.add_method('BeginItem',
- 'ns3::PacketMetadata::ItemIterator',
- [param('ns3::Buffer', 'buffer')],
- is_const=True)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::PacketMetadata',
- [param('uint32_t', 'start'), param('uint32_t', 'end')],
- is_const=True)
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function]
- cls.add_method('Enable',
- 'void',
- [],
- is_static=True)
- ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function]
- cls.add_method('EnableChecking',
- 'void',
- [],
- is_static=True)
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint64_t',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'end')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'start')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
- cls.add_method('RemoveHeader',
- 'void',
- [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
- cls.add_method('RemoveTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
- ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3PacketMetadataItem_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor]
- cls.add_constructor([])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable]
- cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable]
- cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
- cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
- cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable]
- cls.add_instance_attribute('isFragment', 'bool', is_const=False)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
- cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
- ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::PacketMetadata::Item',
- [])
- return
-
-def register_Ns3PacketTagIterator_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
- ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::PacketTagIterator::Item',
- [])
- return
-
-def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
- ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
- ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
- cls.add_method('GetTag',
- 'void',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_const=True)
- return
-
-def register_Ns3PacketTagList_methods(root_module, cls):
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
- cls.add_constructor([])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
- ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
- cls.add_method('Head',
- 'ns3::PacketTagList::TagData const *',
- [],
- is_const=True)
- ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
- cls.add_method('Peek',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
- cls.add_method('Remove',
- 'bool',
- [param('ns3::Tag &', 'tag')])
- ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
- cls.add_method('RemoveAll',
- 'void',
- [])
- return
-
-def register_Ns3PacketTagListTagData_methods(root_module, cls):
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
- cls.add_constructor([])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
- cls.add_instance_attribute('count', 'uint32_t', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
- cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
- cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
- ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
- cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
- return
-
-def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
- ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor]
- cls.add_constructor([])
- ## rv-battery-model-helper.h (module 'energy'): 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 (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3Tag_methods(root_module, cls):
- ## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
- cls.add_constructor([])
- ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Tag const &', 'arg0')])
- ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
- cls.add_method('Deserialize',
- 'void',
- [param('ns3::TagBuffer', 'i')],
- is_pure_virtual=True, is_virtual=True)
- ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::TagBuffer', 'i')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3TagBuffer_methods(root_module, cls):
- ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
- ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
- cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
- cls.add_method('CopyFrom',
- 'void',
- [param('ns3::TagBuffer', 'o')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
- cls.add_method('Read',
- 'void',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
- ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function]
- cls.add_method('ReadDouble',
- 'double',
- [])
- ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function]
- cls.add_method('ReadU16',
- 'uint16_t',
- [])
- ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function]
- cls.add_method('ReadU32',
- 'uint32_t',
- [])
- ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function]
- cls.add_method('ReadU64',
- 'uint64_t',
- [])
- ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function]
- cls.add_method('ReadU8',
- 'uint8_t',
- [])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
- cls.add_method('TrimAtEnd',
- 'void',
- [param('uint32_t', 'trim')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
- cls.add_method('Write',
- 'void',
- [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function]
- cls.add_method('WriteDouble',
- 'void',
- [param('double', 'v')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
- cls.add_method('WriteU16',
- 'void',
- [param('uint16_t', 'data')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
- cls.add_method('WriteU32',
- 'void',
- [param('uint32_t', 'data')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
- cls.add_method('WriteU64',
- 'void',
- [param('uint64_t', 'v')])
- ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
- cls.add_method('WriteU8',
- 'void',
- [param('uint8_t', 'v')])
- return
-
-def register_Ns3Time_methods(root_module, cls):
- cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('>')
- cls.add_binary_comparison_operator('!=')
- cls.add_inplace_numeric_operator('*=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
- cls.add_inplace_numeric_operator('/=', param('ns3::Time const &', 'right'))
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('<=')
- cls.add_binary_comparison_operator('==')
- cls.add_binary_comparison_operator('>=')
- ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
- cls.add_constructor([param('ns3::Time const &', 'o')])
- ## nstime.h (module 'core'): ns3::Time::Time(ns3::HighPrecision const & data) [constructor]
- cls.add_constructor([param('ns3::HighPrecision const &', 'data')])
- ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
- cls.add_constructor([param('std::string const &', 's')])
- ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
- cls.add_method('Compare',
- 'int',
- [param('ns3::Time const &', 'o')],
- is_const=True)
- ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('FromDouble',
- 'ns3::Time',
- [param('double', 'value'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('FromInteger',
- 'ns3::Time',
- [param('uint64_t', 'value'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function]
- cls.add_method('GetFemtoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): ns3::HighPrecision const & ns3::Time::GetHighPrecision() const [member function]
- cls.add_method('GetHighPrecision',
- 'ns3::HighPrecision const &',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function]
- cls.add_method('GetMicroSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function]
- cls.add_method('GetMilliSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function]
- cls.add_method('GetNanoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function]
- cls.add_method('GetPicoSeconds',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function]
- cls.add_method('GetResolution',
- 'ns3::Time::Unit',
- [],
- is_static=True)
- ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function]
- cls.add_method('GetSeconds',
- 'double',
- [],
- is_const=True)
- ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function]
- cls.add_method('GetTimeStep',
- 'int64_t',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function]
- cls.add_method('IsNegative',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function]
- cls.add_method('IsPositive',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function]
- cls.add_method('IsStrictlyNegative',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function]
- cls.add_method('IsStrictlyPositive',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function]
- cls.add_method('IsZero',
- 'bool',
- [],
- is_const=True)
- ## nstime.h (module 'core'): ns3::HighPrecision * ns3::Time::PeekHighPrecision() [member function]
- cls.add_method('PeekHighPrecision',
- 'ns3::HighPrecision *',
- [])
- ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function]
- cls.add_method('SetResolution',
- 'void',
- [param('ns3::Time::Unit', 'resolution')],
- is_static=True)
- ## nstime.h (module 'core'): static double ns3::Time::ToDouble(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('ToDouble',
- 'double',
- [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- ## nstime.h (module 'core'): static uint64_t ns3::Time::ToInteger(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
- cls.add_method('ToInteger',
- 'uint64_t',
- [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
- is_static=True)
- return
-
-def register_Ns3TracedValue__Double_methods(root_module, cls):
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue() [constructor]
- cls.add_constructor([])
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(ns3::TracedValue<double> const & o) [copy constructor]
- cls.add_constructor([param('ns3::TracedValue< double > const &', 'o')])
- ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(double const & v) [constructor]
- cls.add_constructor([param('double const &', 'v')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Connect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('ConnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Disconnect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('DisconnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): double ns3::TracedValue<double>::Get() const [member function]
- cls.add_method('Get',
- 'double',
- [],
- is_const=True)
- ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Set(double const & v) [member function]
- cls.add_method('Set',
- 'void',
- [param('double const &', 'v')])
- return
-
-def register_Ns3TracedValue__Ns3Time_methods(root_module, cls):
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue() [constructor]
- cls.add_constructor([])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::TracedValue<ns3::Time> const & o) [copy constructor]
- cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')])
- ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::Time const & v) [constructor]
- cls.add_constructor([param('ns3::Time const &', 'v')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Connect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('ConnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
- cls.add_method('Disconnect',
- 'void',
- [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
- cls.add_method('DisconnectWithoutContext',
- 'void',
- [param('ns3::CallbackBase const &', 'cb')])
- ## traced-value.h (module 'core'): ns3::Time ns3::TracedValue<ns3::Time>::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Time',
- [],
- is_const=True)
- ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Set(ns3::Time const & v) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Time const &', 'v')])
- return
-
-def register_Ns3TypeId_methods(root_module, cls):
- cls.add_binary_comparison_operator('<')
- cls.add_binary_comparison_operator('!=')
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
- cls.add_constructor([param('char const *', 'name')])
- ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor]
- cls.add_constructor([param('ns3::TypeId const &', 'o')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('AddAttribute',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('AddAttribute',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<const ns3::TraceSourceAccessor> accessor) [member function]
- cls.add_method('AddTraceSource',
- 'ns3::TypeId',
- [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')])
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeAccessor const> ns3::TypeId::GetAttributeAccessor(uint32_t i) const [member function]
- cls.add_method('GetAttributeAccessor',
- 'ns3::Ptr< ns3::AttributeAccessor const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeChecker const> ns3::TypeId::GetAttributeChecker(uint32_t i) const [member function]
- cls.add_method('GetAttributeChecker',
- 'ns3::Ptr< ns3::AttributeChecker const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeFlags(uint32_t i) const [member function]
- cls.add_method('GetAttributeFlags',
- 'uint32_t',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function]
- cls.add_method('GetAttributeFullName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeHelp(uint32_t i) const [member function]
- cls.add_method('GetAttributeHelp',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue const> ns3::TypeId::GetAttributeInitialValue(uint32_t i) const [member function]
- cls.add_method('GetAttributeInitialValue',
- 'ns3::Ptr< ns3::AttributeValue const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function]
- cls.add_method('GetAttributeN',
- 'uint32_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeName(uint32_t i) const [member function]
- cls.add_method('GetAttributeName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function]
- cls.add_method('GetConstructor',
- 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function]
- cls.add_method('GetGroupName',
- 'std::string',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function]
- cls.add_method('GetName',
- 'std::string',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function]
- cls.add_method('GetParent',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function]
- cls.add_method('GetRegistered',
- 'ns3::TypeId',
- [param('uint32_t', 'i')],
- is_static=True)
- ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function]
- cls.add_method('GetRegisteredN',
- 'uint32_t',
- [],
- is_static=True)
- ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::GetTraceSourceAccessor(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceAccessor',
- 'ns3::Ptr< ns3::TraceSourceAccessor const >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceHelp(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceHelp',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function]
- cls.add_method('GetTraceSourceN',
- 'uint32_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceName(uint32_t i) const [member function]
- cls.add_method('GetTraceSourceName',
- 'std::string',
- [param('uint32_t', 'i')],
- is_const=True)
- ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint16_t',
- [],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function]
- cls.add_method('HasConstructor',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function]
- cls.add_method('HasParent',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function]
- cls.add_method('HideFromDocumentation',
- 'ns3::TypeId',
- [])
- ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
- cls.add_method('IsChildOf',
- 'bool',
- [param('ns3::TypeId', 'other')],
- is_const=True)
- ## type-id.h (module 'core'): static bool ns3::TypeId::LookupAttributeByFullName(std::string fullName, ns3::TypeId::AttributeInfo * info) [member function]
- cls.add_method('LookupAttributeByFullName',
- 'bool',
- [param('std::string', 'fullName'), param('ns3::TypeId::AttributeInfo *', 'info')],
- is_static=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
- cls.add_method('LookupAttributeByName',
- 'bool',
- [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)],
- is_const=True)
- ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function]
- cls.add_method('LookupByName',
- 'ns3::TypeId',
- [param('std::string', 'name')],
- is_static=True)
- ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
- cls.add_method('LookupTraceSourceByName',
- 'ns3::Ptr< ns3::TraceSourceAccessor const >',
- [param('std::string', 'name')],
- is_const=True)
- ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function]
- cls.add_method('MustHideFromDocumentation',
- 'bool',
- [],
- is_const=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function]
- cls.add_method('SetGroupName',
- 'ns3::TypeId',
- [param('std::string', 'groupName')])
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function]
- cls.add_method('SetParent',
- 'ns3::TypeId',
- [param('ns3::TypeId', 'tid')])
- ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function]
- cls.add_method('SetUid',
- 'void',
- [param('uint16_t', 'tid')])
- return
-
-def register_Ns3TypeIdAttributeInfo_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo(ns3::TypeId::AttributeInfo const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeId::AttributeInfo const &', 'arg0')])
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::accessor [variable]
- cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::checker [variable]
- cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::flags [variable]
- cls.add_instance_attribute('flags', 'uint32_t', is_const=False)
- ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::initialValue [variable]
- cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
- return
-
-def register_Ns3UnsafeAttributeList_methods(root_module, cls):
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
- cls.add_constructor([])
- ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList(ns3::UnsafeAttributeList const & o) [copy constructor]
- cls.add_constructor([param('ns3::UnsafeAttributeList const &', 'o')])
- ## attribute-list.h (module 'core'): ns3::AttributeList ns3::UnsafeAttributeList::GetSafe(std::string name) const [member function]
- cls.add_method('GetSafe',
- 'ns3::AttributeList',
- [param('std::string', 'name')],
- is_const=True)
- ## attribute-list.h (module 'core'): void ns3::UnsafeAttributeList::Set(std::string name, ns3::AttributeValue const & param) [member function]
- cls.add_method('Set',
- 'void',
- [param('std::string', 'name'), param('ns3::AttributeValue const &', 'param')])
- return
-
-def register_Ns3WifiMode_methods(root_module, cls):
- cls.add_output_stream_operator()
- cls.add_binary_comparison_operator('==')
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(ns3::WifiMode const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiMode const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(std::string name) [constructor]
- cls.add_constructor([param('std::string', 'name')])
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetBandwidth() const [member function]
- cls.add_method('GetBandwidth',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate ns3::WifiMode::GetCodeRate() const [member function]
- cls.add_method('GetCodeRate',
- 'ns3::WifiCodeRate',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint8_t ns3::WifiMode::GetConstellationSize() const [member function]
- cls.add_method('GetConstellationSize',
- 'uint8_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetDataRate() const [member function]
- cls.add_method('GetDataRate',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass ns3::WifiMode::GetModulationClass() const [member function]
- cls.add_method('GetModulationClass',
- 'ns3::WifiModulationClass',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetPhyRate() const [member function]
- cls.add_method('GetPhyRate',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint32_t',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): std::string ns3::WifiMode::GetUniqueName() const [member function]
- cls.add_method('GetUniqueName',
- 'std::string',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): bool ns3::WifiMode::IsMandatory() const [member function]
- cls.add_method('IsMandatory',
- 'bool',
- [],
- is_const=True)
- return
-
-def register_Ns3WifiModeFactory_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory::WifiModeFactory(ns3::WifiModeFactory const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeFactory const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): static ns3::WifiMode ns3::WifiModeFactory::CreateWifiMode(std::string uniqueName, ns3::WifiModulationClass modClass, bool isMandatory, uint32_t bandwidth, uint32_t dataRate, ns3::WifiCodeRate codingRate, uint8_t constellationSize) [member function]
- cls.add_method('CreateWifiMode',
- 'ns3::WifiMode',
- [param('std::string', 'uniqueName'), param('ns3::WifiModulationClass', 'modClass'), param('bool', 'isMandatory'), param('uint32_t', 'bandwidth'), param('uint32_t', 'dataRate'), param('ns3::WifiCodeRate', 'codingRate'), param('uint8_t', 'constellationSize')],
- is_static=True)
- return
-
-def register_Ns3WifiPhyListener_methods(root_module, cls):
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener() [constructor]
- cls.add_constructor([])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener(ns3::WifiPhyListener const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiPhyListener const &', 'arg0')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function]
- cls.add_method('NotifyMaybeCcaBusyStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndError() [member function]
- cls.add_method('NotifyRxEndError',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndOk() [member function]
- cls.add_method('NotifyRxEndOk',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxStart(ns3::Time duration) [member function]
- cls.add_method('NotifyRxStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifySwitchingStart(ns3::Time duration) [member function]
- cls.add_method('NotifySwitchingStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyTxStart(ns3::Time duration) [member function]
- cls.add_method('NotifyTxStart',
- 'void',
- [param('ns3::Time', 'duration')],
- is_pure_virtual=True, is_virtual=True)
- return
-
-def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls):
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper(ns3::WifiRadioEnergyModelHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModelHelper const &', 'arg0')])
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::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)
- ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::SetDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('SetDepletionCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
- ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::WifiRadioEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
- cls.add_method('DoInstall',
- 'ns3::Ptr< ns3::DeviceEnergyModel >',
- [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls):
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function]
- cls.add_method('NotifyRxEndError',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function]
- cls.add_method('NotifyRxEndOk',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> 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_Ns3Empty_methods(root_module, cls):
- ## empty.h (module 'core'): ns3::empty::empty() [constructor]
- cls.add_constructor([])
- ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::empty const &', 'arg0')])
- return
-
-def register_Ns3BasicEnergySourceHelper_methods(root_module, cls):
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')])
- ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper() [constructor]
- cls.add_constructor([])
- ## basic-energy-source-helper.h (module 'energy'): void ns3::BasicEnergySourceHelper::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)
- ## basic-energy-source-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::BasicEnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3Chunk_methods(root_module, cls):
- ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
- cls.add_constructor([])
- ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
- ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_virtual=True)
- ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3Header_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## header.h (module 'network'): ns3::Header::Header() [constructor]
- cls.add_constructor([])
- ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Header const &', 'arg0')])
- ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_virtual=True)
- ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3Object_methods(root_module, cls):
- ## object.h (module 'core'): ns3::Object::Object() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function]
- cls.add_method('AggregateObject',
- 'void',
- [param('ns3::Ptr< ns3::Object >', 'other')])
- ## object.h (module 'core'): void ns3::Object::Dispose() [member function]
- cls.add_method('Dispose',
- 'void',
- [])
- ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function]
- cls.add_method('GetAggregateIterator',
- 'ns3::Object::AggregateIterator',
- [],
- is_const=True)
- ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function]
- cls.add_method('GetInstanceTypeId',
- 'ns3::TypeId',
- [],
- is_const=True, is_virtual=True)
- ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## object.h (module 'core'): void ns3::Object::Start() [member function]
- cls.add_method('Start',
- 'void',
- [])
- ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor]
- cls.add_constructor([param('ns3::Object const &', 'o')],
- visibility='protected')
- ## object.h (module 'core'): void ns3::Object::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## object.h (module 'core'): void ns3::Object::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function]
- cls.add_method('NotifyNewAggregate',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- return
-
-def register_Ns3ObjectAggregateIterator_methods(root_module, cls):
- ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')])
- ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor]
- cls.add_constructor([])
- ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function]
- cls.add_method('HasNext',
- 'bool',
- [],
- is_const=True)
- ## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
- cls.add_method('Next',
- 'ns3::Ptr< ns3::Object const >',
- [])
- return
-
-def register_Ns3Scalar_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Scalar const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Scalar const &', 'arg0')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(double v) [constructor]
- cls.add_constructor([param('double', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint32_t v) [constructor]
- cls.add_constructor([param('uint32_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(int32_t v) [constructor]
- cls.add_constructor([param('int32_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint64_t v) [constructor]
- cls.add_constructor([param('uint64_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(int64_t v) [constructor]
- cls.add_constructor([param('int64_t', 'v')])
- ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Time t) [constructor]
- cls.add_constructor([param('ns3::Time', 't')])
- ## nstime.h (module 'core'): double ns3::Scalar::GetDouble() const [member function]
- cls.add_method('GetDouble',
- 'double',
- [],
- is_const=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls):
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor]
- cls.add_constructor([])
- ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor]
- cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')])
- ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function]
- cls.add_method('Cleanup',
- 'void',
- [],
- is_static=True)
- return
-
-def register_Ns3Trailer_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor]
- cls.add_constructor([])
- ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
- ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('ns3::Buffer::Iterator', 'end')],
- is_pure_virtual=True, is_virtual=True)
- ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
- cls.add_method('Serialize',
- 'void',
- [param('ns3::Buffer::Iterator', 'start')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3WifiPhy_methods(root_module, cls):
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')])
- ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy() [constructor]
- cls.add_constructor([])
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::CalculateSnr(ns3::WifiMode txMode, double ber) const [member function]
- cls.add_method('CalculateSnr',
- 'double',
- [param('ns3::WifiMode', 'txMode'), param('double', 'ber')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::CalculateTxDuration(uint32_t size, ns3::WifiMode payloadMode, ns3::WifiPreamble preamble) const [member function]
- cls.add_method('CalculateTxDuration',
- 'ns3::Time',
- [param('uint32_t', 'size'), param('ns3::WifiMode', 'payloadMode'), param('ns3::WifiPreamble', 'preamble')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::ConfigureStandard(ns3::WifiPhyStandard standard) [member function]
- cls.add_method('ConfigureStandard',
- 'void',
- [param('ns3::WifiPhyStandard', 'standard')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Ptr<ns3::WifiChannel> ns3::WifiPhy::GetChannel() const [member function]
- cls.add_method('GetChannel',
- 'ns3::Ptr< ns3::WifiChannel >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint16_t ns3::WifiPhy::GetChannelNumber() const [member function]
- cls.add_method('GetChannelNumber',
- 'uint16_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetDelayUntilIdle() [member function]
- cls.add_method('GetDelayUntilIdle',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate11Mbps() [member function]
- cls.add_method('GetDsssRate11Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate1Mbps() [member function]
- cls.add_method('GetDsssRate1Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate2Mbps() [member function]
- cls.add_method('GetDsssRate2Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate5_5Mbps() [member function]
- cls.add_method('GetDsssRate5_5Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate12Mbps() [member function]
- cls.add_method('GetErpOfdmRate12Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate18Mbps() [member function]
- cls.add_method('GetErpOfdmRate18Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate24Mbps() [member function]
- cls.add_method('GetErpOfdmRate24Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate36Mbps() [member function]
- cls.add_method('GetErpOfdmRate36Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate48Mbps() [member function]
- cls.add_method('GetErpOfdmRate48Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate54Mbps() [member function]
- cls.add_method('GetErpOfdmRate54Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate6Mbps() [member function]
- cls.add_method('GetErpOfdmRate6Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate9Mbps() [member function]
- cls.add_method('GetErpOfdmRate9Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetLastRxStartTime() const [member function]
- cls.add_method('GetLastRxStartTime',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): ns3::WifiMode ns3::WifiPhy::GetMode(uint32_t mode) const [member function]
- cls.add_method('GetMode',
- 'ns3::WifiMode',
- [param('uint32_t', 'mode')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNModes() const [member function]
- cls.add_method('GetNModes',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNTxPower() const [member function]
- cls.add_method('GetNTxPower',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12Mbps() [member function]
- cls.add_method('GetOfdmRate12Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate12MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate12MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate13_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate13_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18Mbps() [member function]
- cls.add_method('GetOfdmRate18Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate18MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate1_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate1_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24Mbps() [member function]
- cls.add_method('GetOfdmRate24Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate24MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate27MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate27MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate2_25MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate2_25MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate36Mbps() [member function]
- cls.add_method('GetOfdmRate36Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate3MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate3MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate48Mbps() [member function]
- cls.add_method('GetOfdmRate48Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate4_5MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate4_5MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate54Mbps() [member function]
- cls.add_method('GetOfdmRate54Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6Mbps() [member function]
- cls.add_method('GetOfdmRate6Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate6MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate6MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9Mbps() [member function]
- cls.add_method('GetOfdmRate9Mbps',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW10MHz() [member function]
- cls.add_method('GetOfdmRate9MbpsBW10MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW5MHz() [member function]
- cls.add_method('GetOfdmRate9MbpsBW5MHz',
- 'ns3::WifiMode',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetStateDuration() [member function]
- cls.add_method('GetStateDuration',
- 'ns3::Time',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerEnd() const [member function]
- cls.add_method('GetTxPowerEnd',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerStart() const [member function]
- cls.add_method('GetTxPowerStart',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): static ns3::TypeId ns3::WifiPhy::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateBusy() [member function]
- cls.add_method('IsStateBusy',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateCcaBusy() [member function]
- cls.add_method('IsStateCcaBusy',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateIdle() [member function]
- cls.add_method('IsStateIdle',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateRx() [member function]
- cls.add_method('IsStateRx',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateSwitching() [member function]
- cls.add_method('IsStateSwitching',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateTx() [member function]
- cls.add_method('IsStateTx',
- 'bool',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffRx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm) [member function]
- cls.add_method('NotifyPromiscSniffRx',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble'), param('double', 'signalDbm'), param('double', 'noiseDbm')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffTx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble) [member function]
- cls.add_method('NotifyPromiscSniffTx',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxBegin',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxDrop',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyRxEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxBegin',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxDrop',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('NotifyTxEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::RegisterListener(ns3::WifiPhyListener * listener) [member function]
- cls.add_method('RegisterListener',
- 'void',
- [param('ns3::WifiPhyListener *', 'listener')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SendPacket(ns3::Ptr<const ns3::Packet> packet, ns3::WifiMode mode, ns3::WifiPreamble preamble, uint8_t txPowerLevel) [member function]
- cls.add_method('SendPacket',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('ns3::WifiMode', 'mode'), param('ns3::WifiPreamble', 'preamble'), param('uint8_t', 'txPowerLevel')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetChannelNumber(uint16_t id) [member function]
- cls.add_method('SetChannelNumber',
- 'void',
- [param('uint16_t', 'id')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveErrorCallback(ns3::Callback<void,ns3::Ptr<const ns3::Packet>,double,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
- cls.add_method('SetReceiveErrorCallback',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, double, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveOkCallback(ns3::Callback<void,ns3::Ptr<ns3::Packet>,double,ns3::WifiMode,ns3::WifiPreamble,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
- cls.add_method('SetReceiveOkCallback',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- return
-
-def register_Ns3AttributeAccessor_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function]
- cls.add_method('Get',
- 'bool',
- [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function]
- cls.add_method('HasGetter',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function]
- cls.add_method('HasSetter',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function]
- cls.add_method('Set',
- 'bool',
- [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3AttributeChecker_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function]
- cls.add_method('Check',
- 'bool',
- [param('ns3::AttributeValue const &', 'value')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function]
- cls.add_method('Copy',
- 'bool',
- [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function]
- cls.add_method('GetUnderlyingTypeInformation',
- 'std::string',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function]
- cls.add_method('GetValueTypeName',
- 'std::string',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function]
- cls.add_method('HasUnderlyingTypeInformation',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3AttributeValue_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_pure_virtual=True, is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3BooleanChecker_methods(root_module, cls):
- ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker() [constructor]
- cls.add_constructor([])
- ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker(ns3::BooleanChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BooleanChecker const &', 'arg0')])
- return
-
-def register_Ns3BooleanValue_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(ns3::BooleanValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BooleanValue const &', 'arg0')])
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue() [constructor]
- cls.add_constructor([])
- ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(bool value) [constructor]
- cls.add_constructor([param('bool', 'value')])
- ## boolean.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::BooleanValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## boolean.h (module 'core'): bool ns3::BooleanValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## boolean.h (module 'core'): bool ns3::BooleanValue::Get() const [member function]
- cls.add_method('Get',
- 'bool',
- [],
- is_const=True)
- ## boolean.h (module 'core'): std::string ns3::BooleanValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## boolean.h (module 'core'): void ns3::BooleanValue::Set(bool value) [member function]
- cls.add_method('Set',
- 'void',
- [param('bool', 'value')])
- return
-
-def register_Ns3CallbackChecker_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
- return
-
-def register_Ns3CallbackImplBase_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
- ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
- cls.add_method('IsEqual',
- 'bool',
- [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3CallbackValue_methods(root_module, cls):
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor]
- cls.add_constructor([])
- ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
- cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
- ## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::CallbackBase', 'base')])
- return
-
-def register_Ns3DeviceEnergyModel_methods(root_module, cls):
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel(ns3::DeviceEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DeviceEnergyModel const &', 'arg0')])
- ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel() [constructor]
- cls.add_constructor([])
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetCurrentA() const [member function]
- cls.add_method('GetCurrentA',
- 'double',
- [],
- is_const=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): static ns3::TypeId ns3::DeviceEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_pure_virtual=True, is_virtual=True)
- ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3DoubleValue_methods(root_module, cls):
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue() [constructor]
- cls.add_constructor([])
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(ns3::DoubleValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::DoubleValue const &', 'arg0')])
- ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(double const & value) [constructor]
- cls.add_constructor([param('double const &', 'value')])
- ## double.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::DoubleValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## double.h (module 'core'): bool ns3::DoubleValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## double.h (module 'core'): double ns3::DoubleValue::Get() const [member function]
- cls.add_method('Get',
- 'double',
- [],
- is_const=True)
- ## double.h (module 'core'): std::string ns3::DoubleValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## double.h (module 'core'): void ns3::DoubleValue::Set(double const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('double const &', 'value')])
- return
-
-def register_Ns3EmptyAttributeValue_methods(root_module, cls):
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')])
- ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor]
- cls.add_constructor([])
- ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, visibility='private', is_virtual=True)
- ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- visibility='private', is_virtual=True)
- ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySource_methods(root_module, cls):
- ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource(ns3::EnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySource const &', 'arg0')])
- ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource() [constructor]
- cls.add_constructor([])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::AppendDeviceEnergyModel(ns3::Ptr<ns3::DeviceEnergyModel> deviceEnergyModelPtr) [member function]
- cls.add_method('AppendDeviceEnergyModel',
- 'void',
- [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::DisposeDeviceModels() [member function]
- cls.add_method('DisposeDeviceModels',
- 'void',
- [])
- ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function]
- cls.add_method('FindDeviceEnergyModels',
- 'ns3::DeviceEnergyModelContainer',
- [param('ns3::TypeId', 'tid')])
- ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(std::string name) [member function]
- cls.add_method('FindDeviceEnergyModels',
- 'ns3::DeviceEnergyModelContainer',
- [param('std::string', 'name')])
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## energy-source.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::EnergySource::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_const=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): double ns3::EnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## energy-source.h (module 'energy'): static ns3::TypeId ns3::EnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## energy-source.h (module 'energy'): void ns3::EnergySource::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::StartDeviceModels() [member function]
- cls.add_method('StartDeviceModels',
- 'void',
- [])
- ## energy-source.h (module 'energy'): void ns3::EnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_pure_virtual=True, is_virtual=True)
- ## energy-source.h (module 'energy'): void ns3::EnergySource::BreakDeviceEnergyModelRefCycle() [member function]
- cls.add_method('BreakDeviceEnergyModelRefCycle',
- 'void',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): double ns3::EnergySource::CalculateTotalCurrent() [member function]
- cls.add_method('CalculateTotalCurrent',
- 'double',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): void ns3::EnergySource::NotifyEnergyDrained() [member function]
- cls.add_method('NotifyEnergyDrained',
- 'void',
- [],
- visibility='protected')
- ## energy-source.h (module 'energy'): void ns3::EnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnergySourceContainer_methods(root_module, cls):
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnergySourceContainer const &', 'arg0')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer() [constructor]
- cls.add_constructor([])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::Ptr<ns3::EnergySource> source) [constructor]
- cls.add_constructor([param('ns3::Ptr< ns3::EnergySource >', 'source')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(std::string sourceName) [constructor]
- cls.add_constructor([param('std::string', 'sourceName')])
- ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & a, ns3::EnergySourceContainer const & b) [constructor]
- cls.add_constructor([param('ns3::EnergySourceContainer const &', 'a'), param('ns3::EnergySourceContainer const &', 'b')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::EnergySourceContainer container) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::EnergySourceContainer', 'container')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('Add',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')])
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(std::string sourceName) [member function]
- cls.add_method('Add',
- 'void',
- [param('std::string', 'sourceName')])
- ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::Begin() const [member function]
- cls.add_method('Begin',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::End() const [member function]
- cls.add_method('End',
- '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceContainer::Get(uint32_t i) const [member function]
- cls.add_method('Get',
- 'ns3::Ptr< ns3::EnergySource >',
- [param('uint32_t', 'i')],
- is_const=True)
- ## energy-source-container.h (module 'energy'): uint32_t ns3::EnergySourceContainer::GetN() const [member function]
- cls.add_method('GetN',
- 'uint32_t',
- [],
- is_const=True)
- ## energy-source-container.h (module 'energy'): static ns3::TypeId ns3::EnergySourceContainer::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3EnumChecker_methods(root_module, cls):
- ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker(ns3::EnumChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnumChecker const &', 'arg0')])
- ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker() [constructor]
- cls.add_constructor([])
- ## enum.h (module 'core'): void ns3::EnumChecker::Add(int v, std::string name) [member function]
- cls.add_method('Add',
- 'void',
- [param('int', 'v'), param('std::string', 'name')])
- ## enum.h (module 'core'): void ns3::EnumChecker::AddDefault(int v, std::string name) [member function]
- cls.add_method('AddDefault',
- 'void',
- [param('int', 'v'), param('std::string', 'name')])
- ## enum.h (module 'core'): bool ns3::EnumChecker::Check(ns3::AttributeValue const & value) const [member function]
- cls.add_method('Check',
- 'bool',
- [param('ns3::AttributeValue const &', 'value')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumChecker::Copy(ns3::AttributeValue const & src, ns3::AttributeValue & dst) const [member function]
- cls.add_method('Copy',
- 'bool',
- [param('ns3::AttributeValue const &', 'src'), param('ns3::AttributeValue &', 'dst')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumChecker::Create() const [member function]
- cls.add_method('Create',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): std::string ns3::EnumChecker::GetUnderlyingTypeInformation() const [member function]
- cls.add_method('GetUnderlyingTypeInformation',
- 'std::string',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): std::string ns3::EnumChecker::GetValueTypeName() const [member function]
- cls.add_method('GetValueTypeName',
- 'std::string',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumChecker::HasUnderlyingTypeInformation() const [member function]
- cls.add_method('HasUnderlyingTypeInformation',
- 'bool',
- [],
- is_const=True, is_virtual=True)
- return
-
-def register_Ns3EnumValue_methods(root_module, cls):
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue(ns3::EnumValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EnumValue const &', 'arg0')])
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue() [constructor]
- cls.add_constructor([])
- ## enum.h (module 'core'): ns3::EnumValue::EnumValue(int v) [constructor]
- cls.add_constructor([param('int', 'v')])
- ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): bool ns3::EnumValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## enum.h (module 'core'): int ns3::EnumValue::Get() const [member function]
- cls.add_method('Get',
- 'int',
- [],
- is_const=True)
- ## enum.h (module 'core'): std::string ns3::EnumValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## enum.h (module 'core'): void ns3::EnumValue::Set(int v) [member function]
- cls.add_method('Set',
- 'void',
- [param('int', 'v')])
- return
-
-def register_Ns3EventImpl_methods(root_module, cls):
- ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::EventImpl const &', 'arg0')])
- ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor]
- cls.add_constructor([])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function]
- cls.add_method('Cancel',
- 'void',
- [])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function]
- cls.add_method('Invoke',
- 'void',
- [])
- ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function]
- cls.add_method('IsCancelled',
- 'bool',
- [])
- ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function]
- cls.add_method('Notify',
- 'void',
- [],
- is_pure_virtual=True, visibility='protected', is_virtual=True)
- return
-
-def register_Ns3IntegerValue_methods(root_module, cls):
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue() [constructor]
- cls.add_constructor([])
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(ns3::IntegerValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::IntegerValue const &', 'arg0')])
- ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(int64_t const & value) [constructor]
- cls.add_constructor([param('int64_t const &', 'value')])
- ## integer.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::IntegerValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## integer.h (module 'core'): bool ns3::IntegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## integer.h (module 'core'): int64_t ns3::IntegerValue::Get() const [member function]
- cls.add_method('Get',
- 'int64_t',
- [],
- is_const=True)
- ## integer.h (module 'core'): std::string ns3::IntegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## integer.h (module 'core'): void ns3::IntegerValue::Set(int64_t const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('int64_t const &', 'value')])
- return
-
-def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv4AddressValue_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv4Address const &', 'value')])
- ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv4Address',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv4Address const &', 'value')])
- return
-
-def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv4MaskValue_methods(root_module, cls):
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor]
- cls.add_constructor([])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')])
- ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')])
- ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv4Mask',
- [],
- is_const=True)
- ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv4Mask const &', 'value')])
- return
-
-def register_Ns3Ipv6AddressChecker_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv6AddressValue_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv6Address const &', 'value')])
- ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv6Address',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv6Address const &', 'value')])
- return
-
-def register_Ns3Ipv6PrefixChecker_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')])
- return
-
-def register_Ns3Ipv6PrefixValue_methods(root_module, cls):
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor]
- cls.add_constructor([])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')])
- ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor]
- cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')])
- ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Ipv6Prefix',
- [],
- is_const=True)
- ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Ipv6Prefix const &', 'value')])
- return
-
-def register_Ns3LiIonEnergySource_methods(root_module, cls):
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource(ns3::LiIonEnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::LiIonEnergySource const &', 'arg0')])
- ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource() [constructor]
- cls.add_constructor([])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DecreaseRemainingEnergy(double energyJ) [member function]
- cls.add_method('DecreaseRemainingEnergy',
- 'void',
- [param('double', 'energyJ')],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): ns3::Time ns3::LiIonEnergySource::GetEnergyUpdateInterval() const [member function]
- cls.add_method('GetEnergyUpdateInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): static ns3::TypeId ns3::LiIonEnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::IncreaseRemainingEnergy(double energyJ) [member function]
- cls.add_method('IncreaseRemainingEnergy',
- 'void',
- [param('double', 'energyJ')],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
- cls.add_method('SetEnergyUpdateInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
- cls.add_method('SetInitialEnergy',
- 'void',
- [param('double', 'initialEnergyJ')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialSupplyVoltage(double supplyVoltageV) [member function]
- cls.add_method('SetInitialSupplyVoltage',
- 'void',
- [param('double', 'supplyVoltageV')])
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3NetDevice_methods(root_module, cls):
- ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor]
- cls.add_constructor([])
- ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::NetDevice const &', 'arg0')])
- ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('AddLinkChangeCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function]
- cls.add_method('GetAddress',
- 'ns3::Address',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function]
- cls.add_method('GetBroadcast',
- 'ns3::Address',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function]
- cls.add_method('GetChannel',
- 'ns3::Ptr< ns3::Channel >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function]
- cls.add_method('GetIfIndex',
- 'uint32_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function]
- cls.add_method('GetMtu',
- 'uint16_t',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
- cls.add_method('GetMulticast',
- 'ns3::Address',
- [param('ns3::Ipv4Address', 'multicastGroup')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
- cls.add_method('GetMulticast',
- 'ns3::Address',
- [param('ns3::Ipv6Address', 'addr')],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function]
- cls.add_method('IsBridge',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function]
- cls.add_method('IsBroadcast',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function]
- cls.add_method('IsLinkUp',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function]
- cls.add_method('IsMulticast',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function]
- cls.add_method('IsPointToPoint',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function]
- cls.add_method('NeedsArp',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
- cls.add_method('Send',
- 'bool',
- [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
- cls.add_method('SendFrom',
- 'bool',
- [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function]
- cls.add_method('SetAddress',
- 'void',
- [param('ns3::Address', 'address')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function]
- cls.add_method('SetIfIndex',
- 'void',
- [param('uint32_t const', 'index')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function]
- cls.add_method('SetMtu',
- 'bool',
- [param('uint16_t const', 'mtu')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,ns3::NetDevice::PacketType,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
- cls.add_method('SetPromiscReceiveCallback',
- 'void',
- [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
- cls.add_method('SetReceiveCallback',
- 'void',
- [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
- is_pure_virtual=True, is_virtual=True)
- ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function]
- cls.add_method('SupportsSendFrom',
- 'bool',
- [],
- is_pure_virtual=True, is_const=True, is_virtual=True)
- return
-
-def register_Ns3NixVector_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor]
- cls.add_constructor([])
- ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor]
- cls.add_constructor([param('ns3::NixVector const &', 'o')])
- ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function]
- cls.add_method('AddNeighborIndex',
- 'void',
- [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function]
- cls.add_method('BitCount',
- 'uint32_t',
- [param('uint32_t', 'numberOfNeighbors')],
- is_const=True)
- ## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::NixVector >',
- [],
- is_const=True)
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function]
- cls.add_method('Deserialize',
- 'uint32_t',
- [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function]
- cls.add_method('ExtractNeighborIndex',
- 'uint32_t',
- [param('uint32_t', 'numberOfBits')])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function]
- cls.add_method('GetRemainingBits',
- 'uint32_t',
- [])
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- return
-
-def register_Ns3Node_methods(root_module, cls):
- ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::Node const &', 'arg0')])
- ## node.h (module 'network'): ns3::Node::Node() [constructor]
- cls.add_constructor([])
- ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor]
- cls.add_constructor([param('uint32_t', 'systemId')])
- ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function]
- cls.add_method('AddApplication',
- 'uint32_t',
- [param('ns3::Ptr< ns3::Application >', 'application')])
- ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('AddDevice',
- 'uint32_t',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')])
- ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function]
- cls.add_method('ChecksumEnabled',
- 'bool',
- [],
- is_static=True)
- ## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function]
- cls.add_method('GetApplication',
- 'ns3::Ptr< ns3::Application >',
- [param('uint32_t', 'index')],
- is_const=True)
- ## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function]
- cls.add_method('GetDevice',
- 'ns3::Ptr< ns3::NetDevice >',
- [param('uint32_t', 'index')],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function]
- cls.add_method('GetId',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function]
- cls.add_method('GetNApplications',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function]
- cls.add_method('GetNDevices',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function]
- cls.add_method('GetSystemId',
- 'uint32_t',
- [],
- is_const=True)
- ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function]
- cls.add_method('RegisterProtocolHandler',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')])
- ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function]
- cls.add_method('UnregisterProtocolHandler',
- 'void',
- [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')])
- ## node.h (module 'network'): void ns3::Node::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## node.h (module 'network'): void ns3::Node::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='protected', is_virtual=True)
- ## node.h (module 'network'): void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
- cls.add_method('NotifyDeviceAdded',
- 'void',
- [param('ns3::Ptr< ns3::NetDevice >', 'device')],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')])
- return
-
-def register_Ns3ObjectFactoryValue_methods(root_module, cls):
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor]
- cls.add_constructor([])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')])
- ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor]
- cls.add_constructor([param('ns3::ObjectFactory const &', 'value')])
- ## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::ObjectFactory',
- [],
- is_const=True)
- ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::ObjectFactory const &', 'value')])
- return
-
-def register_Ns3Packet_methods(root_module, cls):
- cls.add_output_stream_operator()
- ## packet.h (module 'network'): ns3::Packet::Packet() [constructor]
- cls.add_constructor([])
- ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
- cls.add_constructor([param('ns3::Packet const &', 'o')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor]
- cls.add_constructor([param('uint32_t', 'size')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor]
- cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')])
- ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
- cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
- cls.add_method('AddAtEnd',
- 'void',
- [param('ns3::Ptr< ns3::Packet const >', 'packet')])
- ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
- cls.add_method('AddByteTag',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
- cls.add_method('AddHeader',
- 'void',
- [param('ns3::Header const &', 'header')])
- ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
- cls.add_method('AddPacketTag',
- 'void',
- [param('ns3::Tag const &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
- cls.add_method('AddPaddingAtEnd',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
- cls.add_method('AddTrailer',
- 'void',
- [param('ns3::Trailer const &', 'trailer')])
- ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
- cls.add_method('BeginItem',
- 'ns3::PacketMetadata::ItemIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::Packet >',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function]
- cls.add_method('CopyData',
- 'void',
- [param('std::ostream *', 'os'), param('uint32_t', 'size')],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
- cls.add_method('CreateFragment',
- 'ns3::Ptr< ns3::Packet >',
- [param('uint32_t', 'start'), param('uint32_t', 'length')],
- is_const=True)
- ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function]
- cls.add_method('EnableChecking',
- 'void',
- [],
- is_static=True)
- ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function]
- cls.add_method('EnablePrinting',
- 'void',
- [],
- is_static=True)
- ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
- cls.add_method('FindFirstMatchingByteTag',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
- cls.add_method('GetByteTagIterator',
- 'ns3::ByteTagIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function]
- cls.add_method('GetNixVector',
- 'ns3::Ptr< ns3::NixVector >',
- [],
- is_const=True)
- ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
- cls.add_method('GetPacketTagIterator',
- 'ns3::PacketTagIterator',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
- cls.add_method('GetSerializedSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function]
- cls.add_method('GetSize',
- 'uint32_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function]
- cls.add_method('GetUid',
- 'uint64_t',
- [],
- is_const=True)
- ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function]
- cls.add_method('PeekData',
- 'uint8_t const *',
- [],
- deprecated=True, is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
- cls.add_method('PeekHeader',
- 'uint32_t',
- [param('ns3::Header &', 'header')],
- is_const=True)
- ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
- cls.add_method('PeekPacketTag',
- 'bool',
- [param('ns3::Tag &', 'tag')],
- is_const=True)
- ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
- cls.add_method('PeekTrailer',
- 'uint32_t',
- [param('ns3::Trailer &', 'trailer')])
- ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function]
- cls.add_method('Print',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
- cls.add_method('PrintByteTags',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
- cls.add_method('PrintPacketTags',
- 'void',
- [param('std::ostream &', 'os')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function]
- cls.add_method('RemoveAllByteTags',
- 'void',
- [])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function]
- cls.add_method('RemoveAllPacketTags',
- 'void',
- [])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
- cls.add_method('RemoveAtEnd',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
- cls.add_method('RemoveAtStart',
- 'void',
- [param('uint32_t', 'size')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
- cls.add_method('RemoveHeader',
- 'uint32_t',
- [param('ns3::Header &', 'header')])
- ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
- cls.add_method('RemovePacketTag',
- 'bool',
- [param('ns3::Tag &', 'tag')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
- cls.add_method('RemoveTrailer',
- 'uint32_t',
- [param('ns3::Trailer &', 'trailer')])
- ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
- cls.add_method('Serialize',
- 'uint32_t',
- [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
- is_const=True)
- ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> arg0) [member function]
- cls.add_method('SetNixVector',
- 'void',
- [param('ns3::Ptr< ns3::NixVector >', 'arg0')])
- return
-
-def register_Ns3RvBatteryModel_methods(root_module, cls):
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')])
- ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel() [constructor]
- cls.add_constructor([])
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetAlpha() const [member function]
- cls.add_method('GetAlpha',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBatteryLevel() [member function]
- cls.add_method('GetBatteryLevel',
- 'double',
- [])
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBeta() const [member function]
- cls.add_method('GetBeta',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetCutoffVoltage() const [member function]
- cls.add_method('GetCutoffVoltage',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function]
- cls.add_method('GetLifetime',
- 'ns3::Time',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): int ns3::RvBatteryModel::GetNumOfTerms() const [member function]
- cls.add_method('GetNumOfTerms',
- 'int',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function]
- cls.add_method('GetOpenCircuitVoltage',
- 'double',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function]
- cls.add_method('GetSamplingInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## rv-battery-model.h (module 'energy'): static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetAlpha(double alpha) [member function]
- cls.add_method('SetAlpha',
- 'void',
- [param('double', 'alpha')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetBeta(double beta) [member function]
- cls.add_method('SetBeta',
- 'void',
- [param('double', 'beta')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function]
- cls.add_method('SetCutoffVoltage',
- 'void',
- [param('double', 'voltage')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function]
- cls.add_method('SetNumOfTerms',
- 'void',
- [param('int', 'num')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function]
- cls.add_method('SetOpenCircuitVoltage',
- 'void',
- [param('double', 'voltage')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function]
- cls.add_method('SetSamplingInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_Ns3SimpleDeviceEnergyModel_methods(root_module, cls):
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel(ns3::SimpleDeviceEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::SimpleDeviceEnergyModel const &', 'arg0')])
- ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel() [constructor]
- cls.add_constructor([])
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::SimpleDeviceEnergyModel::GetNode() const [member function]
- cls.add_method('GetNode',
- 'ns3::Ptr< ns3::Node >',
- [],
- is_const=True, is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): static ns3::TypeId ns3::SimpleDeviceEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetCurrentA(double current) [member function]
- cls.add_method('SetCurrentA',
- 'void',
- [param('double', 'current')])
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetNode(ns3::Ptr<ns3::Node> node) [member function]
- cls.add_method('SetNode',
- 'void',
- [param('ns3::Ptr< ns3::Node >', 'node')],
- is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3TimeChecker_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')])
- return
-
-def register_Ns3TimeValue_methods(root_module, cls):
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor]
- cls.add_constructor([])
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TimeValue const &', 'arg0')])
- ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor]
- cls.add_constructor([param('ns3::Time const &', 'value')])
- ## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Time',
- [],
- is_const=True)
- ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Time const &', 'value')])
- return
-
-def register_Ns3TypeIdChecker_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')])
- return
-
-def register_Ns3TypeIdValue_methods(root_module, cls):
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor]
- cls.add_constructor([])
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')])
- ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor]
- cls.add_constructor([param('ns3::TypeId const &', 'value')])
- ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::TypeId',
- [],
- is_const=True)
- ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::TypeId const &', 'value')])
- return
-
-def register_Ns3UintegerValue_methods(root_module, cls):
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue() [constructor]
- cls.add_constructor([])
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(ns3::UintegerValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::UintegerValue const &', 'arg0')])
- ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(uint64_t const & value) [constructor]
- cls.add_constructor([param('uint64_t const &', 'value')])
- ## uinteger.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::UintegerValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## uinteger.h (module 'core'): bool ns3::UintegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## uinteger.h (module 'core'): uint64_t ns3::UintegerValue::Get() const [member function]
- cls.add_method('Get',
- 'uint64_t',
- [],
- is_const=True)
- ## uinteger.h (module 'core'): std::string ns3::UintegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## uinteger.h (module 'core'): void ns3::UintegerValue::Set(uint64_t const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('uint64_t const &', 'value')])
- return
-
-def register_Ns3WifiModeChecker_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')])
- return
-
-def register_Ns3WifiModeValue_methods(root_module, cls):
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue() [constructor]
- cls.add_constructor([])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')])
- ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor]
- cls.add_constructor([param('ns3::WifiMode const &', 'value')])
- ## wifi-mode.h (module 'wifi'): ns3::Ptr<ns3::AttributeValue> ns3::WifiModeValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## wifi-mode.h (module 'wifi'): bool ns3::WifiModeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## wifi-mode.h (module 'wifi'): ns3::WifiMode ns3::WifiModeValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::WifiMode',
- [],
- is_const=True)
- ## wifi-mode.h (module 'wifi'): std::string ns3::WifiModeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## wifi-mode.h (module 'wifi'): void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::WifiMode const &', 'value')])
- return
-
-def register_Ns3WifiRadioEnergyModel_methods(root_module, cls):
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel(ns3::WifiRadioEnergyModel const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::WifiRadioEnergyModel const &', 'arg0')])
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel() [constructor]
- cls.add_constructor([])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::ChangeState(int newState) [member function]
- cls.add_method('ChangeState',
- 'void',
- [param('int', 'newState')],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function]
- cls.add_method('GetCcaBusyCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function]
- cls.add_method('GetCurrentState',
- 'ns3::WifiPhy::State',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function]
- cls.add_method('GetIdleCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function]
- cls.add_method('GetPhyListener',
- 'ns3::WifiRadioEnergyModelPhyListener *',
- [])
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function]
- cls.add_method('GetRxCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function]
- cls.add_method('GetSwitchingCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTotalEnergyConsumption() const [member function]
- cls.add_method('GetTotalEnergyConsumption',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTxCurrentA() const [member function]
- cls.add_method('GetTxCurrentA',
- 'double',
- [],
- is_const=True)
- ## wifi-radio-energy-model.h (module 'energy'): static ns3::TypeId ns3::WifiRadioEnergyModel::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::HandleEnergyDepletion() [member function]
- cls.add_method('HandleEnergyDepletion',
- 'void',
- [],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function]
- cls.add_method('SetCcaBusyCurrentA',
- 'void',
- [param('double', 'ccaBusyCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
- cls.add_method('SetEnergyDepletionCallback',
- 'void',
- [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
- cls.add_method('SetEnergySource',
- 'void',
- [param('ns3::Ptr< ns3::EnergySource >', 'source')],
- is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetIdleCurrentA(double idleCurrentA) [member function]
- cls.add_method('SetIdleCurrentA',
- 'void',
- [param('double', 'idleCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function]
- cls.add_method('SetRxCurrentA',
- 'void',
- [param('double', 'rxCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function]
- cls.add_method('SetSwitchingCurrentA',
- 'void',
- [param('double', 'switchingCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function]
- cls.add_method('SetTxCurrentA',
- 'void',
- [param('double', 'txCurrentA')])
- ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::DoGetCurrentA() const [member function]
- cls.add_method('DoGetCurrentA',
- 'double',
- [],
- is_const=True, visibility='private', is_virtual=True)
- return
-
-def register_Ns3AddressChecker_methods(root_module, cls):
- ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')])
- return
-
-def register_Ns3AddressValue_methods(root_module, cls):
- ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor]
- cls.add_constructor([])
- ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::AddressValue const &', 'arg0')])
- ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor]
- cls.add_constructor([param('ns3::Address const &', 'value')])
- ## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function]
- cls.add_method('Copy',
- 'ns3::Ptr< ns3::AttributeValue >',
- [],
- is_const=True, is_virtual=True)
- ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
- cls.add_method('DeserializeFromString',
- 'bool',
- [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_virtual=True)
- ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function]
- cls.add_method('Get',
- 'ns3::Address',
- [],
- is_const=True)
- ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
- cls.add_method('SerializeToString',
- 'std::string',
- [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
- is_const=True, is_virtual=True)
- ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function]
- cls.add_method('Set',
- 'void',
- [param('ns3::Address const &', 'value')])
- return
-
-def register_Ns3BasicEnergySource_methods(root_module, cls):
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource(ns3::BasicEnergySource const & arg0) [copy constructor]
- cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')])
- ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource() [constructor]
- cls.add_constructor([])
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetEnergyFraction() [member function]
- cls.add_method('GetEnergyFraction',
- 'double',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): ns3::Time ns3::BasicEnergySource::GetEnergyUpdateInterval() const [member function]
- cls.add_method('GetEnergyUpdateInterval',
- 'ns3::Time',
- [],
- is_const=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetInitialEnergy() const [member function]
- cls.add_method('GetInitialEnergy',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetRemainingEnergy() [member function]
- cls.add_method('GetRemainingEnergy',
- 'double',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetSupplyVoltage() const [member function]
- cls.add_method('GetSupplyVoltage',
- 'double',
- [],
- is_const=True, is_virtual=True)
- ## basic-energy-source.h (module 'energy'): static ns3::TypeId ns3::BasicEnergySource::GetTypeId() [member function]
- cls.add_method('GetTypeId',
- 'ns3::TypeId',
- [],
- is_static=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
- cls.add_method('SetEnergyUpdateInterval',
- 'void',
- [param('ns3::Time', 'interval')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
- cls.add_method('SetInitialEnergy',
- 'void',
- [param('double', 'initialEnergyJ')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetSupplyVoltage(double supplyVoltageV) [member function]
- cls.add_method('SetSupplyVoltage',
- 'void',
- [param('double', 'supplyVoltageV')])
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::UpdateEnergySource() [member function]
- cls.add_method('UpdateEnergySource',
- 'void',
- [],
- is_virtual=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoDispose() [member function]
- cls.add_method('DoDispose',
- 'void',
- [],
- visibility='private', is_virtual=True)
- ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoStart() [member function]
- cls.add_method('DoStart',
- 'void',
- [],
- visibility='private', is_virtual=True)
- return
-
-def register_functions(root_module):
- module = root_module
- register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
- register_functions_ns3_internal(module.get_submodule('internal'), root_module)
- return
-
-def register_functions_ns3_FatalImpl(module, root_module):
- return
-
-def register_functions_ns3_internal(module, root_module):
- return
-
-def main():
- out = FileCodeSink(sys.stdout)
- root_module = module_init()
- register_types(root_module)
- register_methods(root_module)
- register_functions(root_module)
- root_module.generate(out)
-
-if __name__ == '__main__':
- main()
-
--- a/src/contrib/energy/examples/li-ion-energy-source.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Andrea Sacco
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andrea Sacco <andrea.sacco85@gmail.com>
- */
-
-#include "ns3/log.h"
-#include "ns3/simulator.h"
-#include "ns3/simple-device-energy-model.h"
-#include "ns3/li-ion-energy-source.h"
-#include "ns3/energy-source-container.h"
-
-using namespace ns3;
-
-/**
- * In this simple example, we show how to create and drain energy from a
- * LiIonEnergySource.
- * We make a series of discharge calls to the energy source class with
- * different current drain and duration until all the energy is depleted
- * from the cell.
- *
- * Every 20 seconds it is printed out the actual cell voltage to verify
- * that it follows the discharge curve of the datasheet [1].
- *
- * At the end of the example it is verified that after the energy depletion
- * call, the cell voltage is below the threshold voltage.
- *
- * References:
- * [1] Panasonic CGR18650DA Datasheet, http://www.panasonic.com/industrial/includes/pdf/Panasonic_LiIon_CGR18650DA.pdf
- */
-
-static void
-PrintCellInfo (Ptr<LiIonEnergySource> es)
-{
- std::cout << "At " << Simulator::Now ().GetSeconds () << " Cell voltage: " << es->GetSupplyVoltage () << " V Remaining Capacity: " <<
- es->GetRemainingEnergy () / (3.6 * 3600) << " Ah" << std::endl;
-
- if (!Simulator::IsFinished ())
- {
- Simulator::Schedule (Seconds (20),
- &PrintCellInfo,
- es);
- }
-}
-
-int
-main (int argc, char **argv)
-{
- // uncomment below to see the energy consumption details
- // LogComponentEnable ("LiIonEnergySource", LOG_LEVEL_DEBUG);
-
- Ptr<Node> node = CreateObject<Node> ();
-
- Ptr<SimpleDeviceEnergyModel> sem = CreateObject<SimpleDeviceEnergyModel> ();
- Ptr<EnergySourceContainer> esCont = CreateObject<EnergySourceContainer> ();
- Ptr<LiIonEnergySource> es = CreateObject<LiIonEnergySource> ();
- esCont->Add (es);
- es->SetNode (node);
- sem->SetEnergySource (es);
- es->AppendDeviceEnergyModel (sem);
- sem->SetNode (node);
- node->AggregateObject (esCont);
-
- Time now = Simulator::Now ();
-
- // discharge at 2.33 A for 1700 seconds
- sem->SetCurrentA (2.33);
- now += Seconds (1701);
-
-
- // discharge at 4.66 A for 628 seconds
- Simulator::Schedule (now,
- &SimpleDeviceEnergyModel::SetCurrentA,
- sem,
- 4.66);
- now += Seconds (600);
-
- PrintCellInfo (es);
-
- Simulator::Stop (now);
- Simulator::Run ();
- Simulator::Destroy ();
-
- // the cell voltage should be under 3.3v
- DoubleValue v;
- es->GetAttribute ("ThresholdVoltage", v);
- NS_ASSERT (es->GetSupplyVoltage () <= v.Get ());
-}
--- a/src/contrib/energy/examples/wscript Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-def build(bld):
- obj = bld.create_ns3_program('li-ion-energy-source', ['core', 'energy'])
- obj.source = 'li-ion-energy-source.cc'
--- a/src/contrib/energy/helper/basic-energy-source-helper.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "basic-energy-source-helper.h"
-#include "ns3/energy-source.h"
-
-namespace ns3 {
-
-BasicEnergySourceHelper::BasicEnergySourceHelper ()
-{
- m_basicEnergySource.SetTypeId ("ns3::BasicEnergySource");
-}
-
-BasicEnergySourceHelper::~BasicEnergySourceHelper ()
-{
-}
-
-void
-BasicEnergySourceHelper::Set (std::string name, const AttributeValue &v)
-{
- m_basicEnergySource.Set (name, v);
-}
-
-Ptr<EnergySource>
-BasicEnergySourceHelper::DoInstall (Ptr<Node> node) const
-{
- NS_ASSERT (node != NULL);
- // check if energy source already exists
- Ptr<EnergySource> source = node->GetObject<EnergySource> ();
- if (source != NULL)
- {
- NS_FATAL_ERROR ("Energy source already installed!");
- }
- source = m_basicEnergySource.Create<EnergySource> ();
- NS_ASSERT (source != NULL);
- source->SetNode (node);
- return source;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/helper/basic-energy-source-helper.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef BASIC_ENERGY_SOURCE_HELPER_H
-#define BASIC_ENERGY_SOURCE_HELPER_H
-
-#include "energy-model-helper.h"
-#include "ns3/node.h"
-
-namespace ns3 {
-
-/**
- * \brief Creates a BasicEnergySource object.
- */
-class BasicEnergySourceHelper : public EnergySourceHelper
-{
-public:
- BasicEnergySourceHelper ();
- ~BasicEnergySourceHelper ();
-
- void Set (std::string name, const AttributeValue &v);
-
-private:
- virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const;
-
-private:
- ObjectFactory m_basicEnergySource;
-
-};
-
-} // namespace ns3
-
-#endif /* BASIC_ENERGY_SOURCE_HELPER_H */
--- a/src/contrib/energy/helper/energy-model-helper.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "energy-model-helper.h"
-#include "ns3/config.h"
-#include "ns3/names.h"
-
-namespace ns3 {
-
-/*
- * EnergySourceHelper
- */
-EnergySourceHelper::~EnergySourceHelper ()
-{
-}
-
-EnergySourceContainer
-EnergySourceHelper::Install (Ptr<Node> node) const
-{
- return Install (NodeContainer (node));
-}
-
-EnergySourceContainer
-EnergySourceHelper::Install (NodeContainer c) const
-{
- EnergySourceContainer container;
- for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i)
- {
- Ptr<EnergySource> src = DoInstall (*i);
- container.Add (src);
- /*
- * Check if EnergySourceContainer is already aggregated to target node. If
- * not, create a new EnergySourceContainer and aggregate it to node.
- */
- Ptr<EnergySourceContainer> EnergySourceContrainerOnNode =
- (*i)->GetObject<EnergySourceContainer> ();
- if (EnergySourceContrainerOnNode == NULL)
- {
- ObjectFactory fac;
- fac.SetTypeId ("ns3::EnergySourceContainer");
- EnergySourceContrainerOnNode = fac.Create<EnergySourceContainer> ();
- EnergySourceContrainerOnNode->Add (src);
- (*i)->AggregateObject (EnergySourceContrainerOnNode);
- }
- else
- {
- EnergySourceContrainerOnNode->Add (src); // append new EnergySource
- }
- }
- return container;
-}
-
-EnergySourceContainer
-EnergySourceHelper::Install (std::string nodeName) const
-{
- Ptr<Node> node = Names::Find<Node> (nodeName);
- return Install (node);
-}
-
-EnergySourceContainer
-EnergySourceHelper::InstallAll (void) const
-{
- return Install (NodeContainer::GetGlobal ());
-}
-
-/*
- * DeviceEnergyModelHelper
- */
-DeviceEnergyModelHelper::~DeviceEnergyModelHelper ()
-{
-}
-
-DeviceEnergyModelContainer
-DeviceEnergyModelHelper::Install (Ptr<NetDevice> device,
- Ptr<EnergySource> source) const
-{
- NS_ASSERT (device != NULL);
- NS_ASSERT (source != NULL);
- // check to make sure source and net device are on the same node
- NS_ASSERT (device->GetNode () == source->GetNode ());
- DeviceEnergyModelContainer container (DoInstall (device, source));
- return container;
-}
-
-DeviceEnergyModelContainer
-DeviceEnergyModelHelper::Install (NetDeviceContainer deviceContainer,
- EnergySourceContainer sourceContainer) const
-{
- NS_ASSERT (deviceContainer.GetN () <= sourceContainer.GetN ());
- DeviceEnergyModelContainer container;
- NetDeviceContainer::Iterator dev = deviceContainer.Begin ();
- EnergySourceContainer::Iterator src = sourceContainer.Begin ();
- while (dev != deviceContainer.End ())
- {
- // check to make sure source and net device are on the same node
- NS_ASSERT ((*dev)->GetNode () == (*src)->GetNode ());
- Ptr<DeviceEnergyModel> model = DoInstall (*dev, *src);
- container.Add (model);
- dev++;
- src++;
- }
- return container;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/helper/energy-model-helper.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,168 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef ENERGY_MODEL_HELPER_H
-#define ENERGY_MODEL_HELPER_H
-
-#include "ns3/attribute.h"
-#include "ns3/object-factory.h"
-#include "ns3/node-container.h"
-#include "ns3/ptr.h"
-#include "ns3/net-device.h"
-#include "ns3/net-device-container.h"
-#include "ns3/energy-source.h"
-#include "ns3/device-energy-model.h"
-#include "ns3/device-energy-model-container.h"
-#include "energy-source-container.h"
-
-namespace ns3 {
-
-/**
- * \brief Creates EnergySource objects.
- *
- * This class creates and installs an energy source onto network nodes. Only a
- * single source can exist on a network node.
- */
-class EnergySourceHelper
-{
-public:
- virtual ~EnergySourceHelper ();
-
- /**
- * \param name Name of attribute to set.
- * \param v Value of the attribute.
- *
- * Sets one of the attributes of underlying EnergySource.
- */
- virtual void Set (std::string name, const AttributeValue &v) = 0;
-
- /**
- * \param node Pointer to the node where EnergySource will be installed.
- * \returns An EnergySourceContainer which contains all the EnergySources.
- *
- * This function installs an EnergySource onto a node.
- */
- EnergySourceContainer Install (Ptr<Node> node) const;
-
- /**
- * \param c List of nodes where EnergySource will be installed.
- * \returns An EnergySourceContainer which contains all the EnergySources.
- *
- * This function installs an EnergySource onto a list of nodes.
- */
- EnergySourceContainer Install (NodeContainer c) const;
-
- /**
- * \param nodeName Name of node where EnergySource will be installed.
- * \returns An EnergySourceContainer which contains all the EnergySources.
- *
- * This function installs an EnergySource onto a node.
- */
- EnergySourceContainer Install (std::string nodeName) const;
-
- /**
- * \brief This function installs an EnergySource on all nodes in simulation.
- *
- * \returns An EnergySourceContainer which contains all the EnergySources.
- */
- EnergySourceContainer InstallAll (void) const;
-
-
-private:
- /**
- * \param node Pointer to node where the energy source is to be installed.
- * \returns Pointer to the created EnergySource.
- *
- * Child classes of EnergySourceHelper only have to implement this function,
- * to create and aggregate an EnergySource object onto a single node. Rest of
- * the installation process (eg. installing EnergySource on set of nodes) is
- * implemented in the EnergySourceHelper base class.
- */
- virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const = 0;
-
-};
-
-
-/**
- * \brief Creates DeviceEnergyModel objects.
- *
- * This class helps to create and install DeviceEnergyModel onto NetDevice. A
- * DeviceEnergyModel is connected to a NetDevice (or PHY object) by callbacks.
- * Note that DeviceEnergyModel objects are *not* aggregated onto the node. They
- * can be accessed through the EnergySource object, which *is* aggregated onto
- * the node.
- */
-class DeviceEnergyModelHelper
-{
-public:
- virtual ~DeviceEnergyModelHelper ();
-
- /**
- * \param name Name of attribute to set.
- * \param v Value of the attribute.
- *
- * Sets one of the attributes of underlying DeviceEnergyModel.
- */
- virtual void Set (std::string name, const AttributeValue &v) = 0;
-
- /**
- * \param device Pointer to the NetDevice to install DeviceEnergyModel.
- * \param source The EnergySource the DeviceEnergyModel will be using.
- * \returns An DeviceEnergyModelContainer contains all the DeviceEnergyModels.
- *
- * Installs an DeviceEnergyModel with a specified EnergySource onto a
- * xNetDevice.
- */
- DeviceEnergyModelContainer Install (Ptr<NetDevice> device,
- Ptr<EnergySource> source) const;
-
- /**
- * \param deviceContainer List of NetDevices to be install DeviceEnergyModel
- * objects.
- * \param sourceContainer List of EnergySource the DeviceEnergyModel will be
- * using.
- * \returns An DeviceEnergyModelContainer contains all the DeviceEnergyModels.
- *
- * Installs DeviceEnergyModels with specified EnergySources onto a list of
- * NetDevices.
- */
- DeviceEnergyModelContainer Install (NetDeviceContainer deviceContainer,
- EnergySourceContainer sourceContainer) const;
-
-
-private:
- /**
- * \param device The net device corresponding to DeviceEnergyModel object.
- * \param source The EnergySource the DeviceEnergyModel will be using.
- * \returns Pointer to the created DeviceEnergyModel.
- *
- * Child classes of DeviceEnergyModelHelper only have to implement this
- * function, to create and aggregate an DeviceEnergyModel object onto a single
- * node. The rest of the installation process (eg. installing EnergySource on
- * set of nodes) is implemented in the DeviceEnergyModelHelper base class.
- */
- virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device,
- Ptr<EnergySource> source) const = 0;
-
-};
-
-} // namespace ns3
-
-#endif /* ENERGY_MODEL_HELPER_H */
--- a/src/contrib/energy/helper/energy-source-container.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,143 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2008 INRIA
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
- * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "energy-source-container.h"
-#include "ns3/names.h"
-
-namespace ns3 {
-
-TypeId
-EnergySourceContainer::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::EnergySourceContainer")
- .SetParent<Object> ()
- .AddConstructor<EnergySourceContainer> ()
- ;
- return tid;
-}
-
-EnergySourceContainer::EnergySourceContainer ()
-{
-}
-
-EnergySourceContainer::~EnergySourceContainer ()
-{
-}
-
-EnergySourceContainer::EnergySourceContainer (Ptr<EnergySource> source)
-{
- NS_ASSERT (source != NULL);
- m_sources.push_back (source);
-}
-
-EnergySourceContainer::EnergySourceContainer (std::string sourceName)
-{
- Ptr<EnergySource> source = Names::Find<EnergySource> (sourceName);
- NS_ASSERT (source != NULL);
- m_sources.push_back (source);
-}
-
-EnergySourceContainer::EnergySourceContainer (const EnergySourceContainer &a,
- const EnergySourceContainer &b)
-{
- *this = a;
- Add (b);
-}
-
-EnergySourceContainer::Iterator
-EnergySourceContainer::Begin (void) const
-{
- return m_sources.begin ();
-}
-
-EnergySourceContainer::Iterator
-EnergySourceContainer::End (void) const
-{
- return m_sources.end ();
-}
-
-uint32_t
-EnergySourceContainer::GetN (void) const
-{
- return m_sources.size ();
-}
-
-Ptr<EnergySource>
-EnergySourceContainer::Get (uint32_t i) const
-{
- return m_sources[i];
-}
-
-void
-EnergySourceContainer::Add (EnergySourceContainer container)
-{
- for (Iterator i = container.Begin (); i != container.End (); i++)
- {
- m_sources.push_back (*i);
- }
-}
-
-void
-EnergySourceContainer::Add (Ptr<EnergySource> source)
-{
- NS_ASSERT (source != NULL);
- m_sources.push_back (source);
-}
-
-void
-EnergySourceContainer::Add (std::string sourceName)
-{
- Ptr<EnergySource> source = Names::Find<EnergySource> (sourceName);
- NS_ASSERT (source != NULL);
- m_sources.push_back (source);
-}
-
-/*
- * Private functions start here.
- */
-
-void
-EnergySourceContainer::DoDispose (void)
-{
- // call Object::Dispose for all EnergySource objects
- for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin ();
- i != m_sources.end (); i++)
- {
- (*i)->DisposeDeviceModels ();
- (*i)->Dispose ();
- }
- m_sources.clear ();
-}
-
-void
-EnergySourceContainer::DoStart (void)
-{
- // call Object::Start for all EnergySource objects
- for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin ();
- i != m_sources.end (); i++)
- {
- (*i)->Start ();
- (*i)->StartDeviceModels ();
- }
-}
-
-} // namespace ns3
--- a/src/contrib/energy/helper/energy-source-container.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,180 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2008 INRIA
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
- * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef ENERGY_SOURCE_CONTAINER_H
-#define ENERGY_SOURCE_CONTAINER_H
-
-#include "ns3/energy-source.h"
-#include "ns3/object.h"
-#include <vector>
-#include <stdint.h>
-
-namespace ns3 {
-
-/**
- * \brief Holds a vector of ns3::EnergySource pointers.
- *
- * EnergySourceHelper returns a list of EnergySource pointers installed onto a
- * node. Users can use this list to access EnergySource objects to obtain total
- * energy consumption on a node easily.
- *
- * \see NetDeviceContainer
- */
-class EnergySourceContainer : public Object
-{
-public:
- typedef std::vector< Ptr<EnergySource> >::const_iterator Iterator;
-
-public:
- static TypeId GetTypeId (void);
- /**
- * Creates an empty EnergySourceContainer.
- */
- EnergySourceContainer ();
- ~EnergySourceContainer ();
-
- /**
- * \param source Pointer to an EnergySource.
- *
- * Creates an EnergySourceContianer with exactly one EnergySource previously
- * instantiated.
- */
- EnergySourceContainer (Ptr<EnergySource> source);
-
- /**
- * \param sourceName Name of EnergySource.
- *
- * Creates an EnergySourceContainer with exactly one EnergySource previously
- * instantiated and assigned a name using the Object name service. This
- * EnergySource is specified by its assigned name.
- */
- EnergySourceContainer (std::string sourceName);
-
- /**
- * \param a A EnergySourceContainer.
- * \param b Another EnergySourceContainer.
- *
- * Creates an EnergySourceContainer by concatenating EnergySourceContainer b
- * to EnergySourceContainer a.
- *
- * \note Can be used to concatenate 2 Ptr<EnergySource> directly. C++ will be
- * calling EnergySourceContainer constructor with Ptr<EnergySource> first.
- */
- EnergySourceContainer (const EnergySourceContainer &a,
- const EnergySourceContainer &b);
-
- /**
- * \brief Get an iterator which refers to the first EnergySource pointer in
- * the container.
- *
- * \returns An iterator which refers to the first EnergySource in container.
- *
- * EnergySources can be retrieved from the container in two ways. First,
- * directly by an index into the container, and second, using an iterator.
- * This method is used in the iterator method and is typically used in a
- * for-loop to run through the EnergySources.
- *
- * \code
- * EnergySourceContainer::Iterator i;
- * for (i = container.Begin (); i != container.End (); ++i)
- * {
- * (*i)->method (); // some EnergySource method
- * }
- * \endcode
- */
- Iterator Begin (void) const;
-
- /**
- * \brief Get an iterator which refers to the last EnergySource pointer in
- * the container.
- *
- * \returns An iterator which refers to the last EnergySource in container.
- *
- * EnergySources can be retrieved from the container in two ways. First,
- * directly by an index into the container, and second, using an iterator.
- * This method is used in the iterator method and is typically used in a
- * for-loop to run through the EnergySources.
- *
- * \code
- * EnergySourceContainer::Iterator i;
- * for (i = container.Begin (); i != container.End (); ++i)
- * {
- * (*i)->method (); // some EnergySource method
- * }
- * \endcode
- */
- Iterator End (void) const;
-
- /**
- * \brief Get the number of Ptr<EnergySource> stored in this container.
- *
- * \returns The number of Ptr<EnergySource> stored in this container.
- */
- uint32_t GetN (void) const;
-
- /**
- * \brief Get the i-th Ptr<EnergySource> stored in this container.
- *
- * \param i Index of the requested Ptr<EnergySource>.
- * \returns The requested Ptr<EnergySource>.
- */
- Ptr<EnergySource> Get (uint32_t i) const;
-
- /**
- * \param container Another EnergySourceContainer to append.
- *
- * Appends the contents of another EnergySourceContainer to the end of this
- * EnergySourceContainer.
- */
- void Add (EnergySourceContainer container);
-
- /**
- * \brief Append a single Ptr<EnergySource> to the end of this container.
- *
- * \param source Pointer to an EnergySource.
- */
- void Add (Ptr<EnergySource> source);
-
- /**
- * \brief Append a single Ptr<EnergySource> referred to by its object name to
- * the end of this container.
- *
- * \param sourceName Name of EnergySource object.
- */
- void Add (std::string sourceName);
-
-private:
- virtual void DoDispose (void);
-
- /**
- * \brief Calls Object::Start () for all EnergySource objects.
- */
- virtual void DoStart (void);
-
-private:
- std::vector< Ptr<EnergySource> > m_sources;
-
-};
-
-} // namespace ns3
-
-#endif /* ENERGY_SOURCE_CONTAINER_H */
--- a/src/contrib/energy/helper/rv-battery-model-helper.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "rv-battery-model-helper.h"
-#include "ns3/energy-source.h"
-
-namespace ns3 {
-
-RvBatteryModelHelper::RvBatteryModelHelper ()
-{
- m_rvBatteryModel.SetTypeId ("ns3::RvBatteryModel");
-}
-
-RvBatteryModelHelper::~RvBatteryModelHelper ()
-{
-}
-
-void
-RvBatteryModelHelper::Set (std::string name, const AttributeValue &v)
-{
- m_rvBatteryModel.Set (name, v);
-}
-
-Ptr<EnergySource>
-RvBatteryModelHelper::DoInstall (Ptr<Node> node) const
-{
- NS_ASSERT (node != NULL);
- // check if energy source already exists
- Ptr<EnergySource> source = node->GetObject<EnergySource> ();
- if (source != NULL)
- {
- NS_FATAL_ERROR ("Energy source already installed!");
- }
- source = m_rvBatteryModel.Create<EnergySource> ();
- NS_ASSERT (source != NULL);
- source->SetNode (node);
- return source;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/helper/rv-battery-model-helper.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef RV_BATTERY_MODEL_HELPER_H
-#define RV_BATTERY_MODEL_HELPER_H
-
-#include "energy-model-helper.h"
-#include "ns3/node.h"
-
-namespace ns3 {
-
-/**
- * \brief Creates a RvBatteryModel object.
- */
-class RvBatteryModelHelper : public EnergySourceHelper
-{
-public:
- RvBatteryModelHelper ();
- ~RvBatteryModelHelper ();
-
- void Set (std::string name, const AttributeValue &v);
-
-private:
- virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const;
-
-private:
- ObjectFactory m_rvBatteryModel;
-
-};
-
-} // namespace ns3
-
-#endif /* RV_BATTERY_MODEL_HELPER_H */
--- a/src/contrib/energy/helper/wifi-radio-energy-model-helper.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "wifi-radio-energy-model-helper.h"
-#include "basic-energy-source-helper.h"
-#include "ns3/wifi-phy.h"
-#include "ns3/wifi-net-device.h"
-#include "ns3/config.h"
-#include "ns3/names.h"
-
-namespace ns3 {
-
-WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper ()
-{
- m_radioEnergy.SetTypeId ("ns3::WifiRadioEnergyModel");
- m_depletionCallback.Nullify ();
-}
-
-WifiRadioEnergyModelHelper::~WifiRadioEnergyModelHelper ()
-{
-}
-
-void
-WifiRadioEnergyModelHelper::Set (std::string name, const AttributeValue &v)
-{
- m_radioEnergy.Set (name, v);
-}
-
-void
-WifiRadioEnergyModelHelper::SetDepletionCallback (
- WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback)
-{
- m_depletionCallback = callback;
-}
-
-/*
- * Private function starts here.
- */
-
-Ptr<DeviceEnergyModel>
-WifiRadioEnergyModelHelper::DoInstall (Ptr<NetDevice> device,
- Ptr<EnergySource> source) const
-{
- NS_ASSERT (device != NULL);
- NS_ASSERT (source != NULL);
- // check if device is WifiNetDevice
- std::string deviceName = device->GetInstanceTypeId ().GetName ();
- if (deviceName.compare ("ns3::WifiNetDevice") != 0)
- {
- NS_FATAL_ERROR ("NetDevice type is not WifiNetDevice!");
- }
- Ptr<Node> node = device->GetNode ();
- Ptr<WifiRadioEnergyModel> model = m_radioEnergy.Create ()->GetObject<WifiRadioEnergyModel> ();
- NS_ASSERT (model != NULL);
- // set energy source pointer
- model->SetEnergySource (source);
- // set energy depletion callback
- model->SetEnergyDepletionCallback (m_depletionCallback);
- // add model to device model list in energy source
- source->AppendDeviceEnergyModel (model);
- // create and register energy model phy listener
- Ptr<WifiNetDevice> wifiDevice = DynamicCast<WifiNetDevice> (device);
- Ptr<WifiPhy> wifiPhy = wifiDevice->GetPhy ();
- wifiPhy->RegisterListener (model->GetPhyListener ());
- return model;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/helper/wifi-radio-energy-model-helper.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
-* Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
-*
-* This program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License version 2 as
-* published by the Free Software Foundation;
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*
-* Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
-*/
-
-#ifndef WIFI_RADIO_ENERGY_MODEL_HELPER_H
-#define WIFI_RADIO_ENERGY_MODEL_HELPER_H
-
-#include "energy-model-helper.h"
-#include "ns3/wifi-radio-energy-model.h"
-
-namespace ns3 {
-
-/**
- * \brief Assign WifiRadioEnergyModel to wifi devices.
- *
- * This installer installs WifiRadioEnergyModel for only WifiNetDevice objects.
- */
-class WifiRadioEnergyModelHelper : public DeviceEnergyModelHelper
-{
-public:
- /**
- * Construct a helper which is used to add a radio energy model to a node
- */
- WifiRadioEnergyModelHelper ();
-
- /**
- * Destroy a RadioEnergy Helper
- */
- ~WifiRadioEnergyModelHelper ();
-
- /**
- * \param name the name of the attribute to set
- * \param v the value of the attribute
- *
- * Sets an attribute of the underlying PHY object.
- */
- void Set (std::string name, const AttributeValue &v);
-
- /**
- * \param callback Callback function for energy depletion handling.
- *
- * Sets the callback to be invoked when energy is depleted.
- */
- void SetDepletionCallback (
- WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback);
-
-
-private:
- /**
- * \param device Pointer to the NetDevice to install DeviceEnergyModel.
- *
- * Implements DeviceEnergyModel::Install.
- */
- virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device,
- Ptr<EnergySource> source) const;
-
-private:
- ObjectFactory m_radioEnergy;
- WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback m_depletionCallback;
-
-};
-
-} // namespace ns3
-
-#endif /* WIFI_RADIO_ENERGY_MODEL_HELPER_H */
--- a/src/contrib/energy/model/basic-energy-source.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,202 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "basic-energy-source.h"
-#include "ns3/log.h"
-#include "ns3/assert.h"
-#include "ns3/double.h"
-#include "ns3/trace-source-accessor.h"
-#include "ns3/simulator.h"
-
-NS_LOG_COMPONENT_DEFINE ("BasicEnergySource");
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (BasicEnergySource);
-
-TypeId
-BasicEnergySource::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::BasicEnergySource")
- .SetParent<EnergySource> ()
- .AddConstructor<BasicEnergySource> ()
- .AddAttribute ("BasicEnergySourceInitialEnergyJ",
- "Initial energy stored in basic energy source.",
- DoubleValue (10), // in Joules
- MakeDoubleAccessor (&BasicEnergySource::SetInitialEnergy,
- &BasicEnergySource::GetInitialEnergy),
- MakeDoubleChecker<double> ())
- .AddAttribute ("BasicEnergySupplyVoltageV",
- "Initial supply voltage for basic energy source.",
- DoubleValue (3.0), // in Volts
- MakeDoubleAccessor (&BasicEnergySource::SetSupplyVoltage,
- &BasicEnergySource::GetSupplyVoltage),
- MakeDoubleChecker<double> ())
- .AddAttribute ("PeriodicEnergyUpdateInterval",
- "Time between two consecutive periodic energy updates.",
- TimeValue (Seconds (1.0)),
- MakeTimeAccessor (&BasicEnergySource::SetEnergyUpdateInterval,
- &BasicEnergySource::GetEnergyUpdateInterval),
- MakeTimeChecker ())
- .AddTraceSource ("RemainingEnergy",
- "Remaining energy at BasicEnergySource.",
- MakeTraceSourceAccessor (&BasicEnergySource::m_remainingEnergyJ))
- ;
- return tid;
-}
-
-BasicEnergySource::BasicEnergySource ()
-{
- m_lastUpdateTime = Seconds (0.0);
-}
-
-BasicEnergySource::~BasicEnergySource ()
-{
-}
-
-void
-BasicEnergySource::SetInitialEnergy (double initialEnergyJ)
-{
- NS_LOG_FUNCTION (this << initialEnergyJ);
- NS_ASSERT (initialEnergyJ >= 0);
- m_initialEnergyJ = initialEnergyJ;
- m_remainingEnergyJ = m_initialEnergyJ;
-}
-
-void
-BasicEnergySource::SetSupplyVoltage (double supplyVoltageV)
-{
- NS_LOG_FUNCTION (this << supplyVoltageV);
- m_supplyVoltageV = supplyVoltageV;
-}
-
-void
-BasicEnergySource::SetEnergyUpdateInterval (Time interval)
-{
- NS_LOG_FUNCTION (this << interval);
- m_energyUpdateInterval = interval;
-}
-
-Time
-BasicEnergySource::GetEnergyUpdateInterval (void) const
-{
- return m_energyUpdateInterval;
-}
-
-double
-BasicEnergySource::GetSupplyVoltage (void) const
-{
- return m_supplyVoltageV;
-}
-
-double
-BasicEnergySource::GetInitialEnergy (void) const
-{
- return m_initialEnergyJ;
-}
-
-double
-BasicEnergySource::GetRemainingEnergy (void)
-{
- NS_LOG_FUNCTION (this);
- // update energy source to get the latest remaining energy.
- UpdateEnergySource ();
- return m_remainingEnergyJ;
-}
-
-double
-BasicEnergySource::GetEnergyFraction (void)
-{
- NS_LOG_FUNCTION (this);
- // update energy source to get the latest remaining energy.
- UpdateEnergySource ();
- return m_remainingEnergyJ / m_initialEnergyJ;
-}
-
-void
-BasicEnergySource::UpdateEnergySource (void)
-{
- NS_LOG_FUNCTION (this);
- NS_LOG_DEBUG ("BasicEnergySource:Updating remaining energy.");
-
- // do not update if simulation has finished
- if (Simulator::IsFinished ())
- {
- return;
- }
-
- m_energyUpdateEvent.Cancel ();
-
- CalculateRemainingEnergy ();
-
- if (m_remainingEnergyJ <= 0)
- {
- HandleEnergyDrainedEvent ();
- return; // stop periodic update
- }
-
- m_lastUpdateTime = Simulator::Now ();
-
- m_energyUpdateEvent = Simulator::Schedule (m_energyUpdateInterval,
- &BasicEnergySource::UpdateEnergySource,
- this);
-}
-
-/*
- * Private functions start here.
- */
-
-void
-BasicEnergySource::DoStart (void)
-{
- NS_LOG_FUNCTION (this);
- UpdateEnergySource (); // start periodic update
-}
-
-void
-BasicEnergySource::DoDispose (void)
-{
- NS_LOG_FUNCTION (this);
- BreakDeviceEnergyModelRefCycle (); // break reference cycle
-}
-
-void
-BasicEnergySource::HandleEnergyDrainedEvent (void)
-{
- NS_LOG_FUNCTION (this);
- NS_LOG_DEBUG ("BasicEnergySource:Energy depleted!");
- NotifyEnergyDrained (); // notify DeviceEnergyModel objects
- m_remainingEnergyJ = 0; // energy never goes below 0
-}
-
-void
-BasicEnergySource::CalculateRemainingEnergy (void)
-{
- NS_LOG_FUNCTION (this);
- double totalCurrentA = CalculateTotalCurrent ();
- Time duration = Simulator::Now () - m_lastUpdateTime;
- NS_ASSERT (duration.GetSeconds () >= 0);
- // energy = current * voltage * time
- double energyToDecreaseJ = totalCurrentA * m_supplyVoltageV * duration.GetSeconds ();
- m_remainingEnergyJ -= energyToDecreaseJ;
- NS_LOG_DEBUG ("BasicEnergySource:Remaining energy = " << m_remainingEnergyJ);
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/basic-energy-source.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,140 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef BASIC_ENERGY_SOURCE_H
-#define BASIC_ENERGY_SOURCE_H
-
-#include "ns3/traced-value.h"
-#include "ns3/nstime.h"
-#include "ns3/event-id.h"
-#include "energy-source.h"
-
-namespace ns3 {
-
-/**
- * BasicEnergySource decreases/increases remaining energy stored in itself in
- * linearly.
- */
-class BasicEnergySource : public EnergySource
-{
-public:
- static TypeId GetTypeId (void);
- BasicEnergySource ();
- virtual ~BasicEnergySource ();
-
- /**
- * \return Initial energy stored in energy source, in Joules.
- *
- * Implements GetInitialEnergy.
- */
- virtual double GetInitialEnergy (void) const;
-
- /**
- * \returns Supply voltage at the energy source.
- *
- * Implements GetSupplyVoltage.
- */
- virtual double GetSupplyVoltage (void) const;
-
- /**
- * \return Remaining energy in energy source, in Joules
- *
- * Implements GetRemainingEnergy.
- */
- virtual double GetRemainingEnergy (void);
-
- /**
- * \returns Energy fraction.
- *
- * Implements GetEnergyFraction.
- */
- virtual double GetEnergyFraction (void);
-
- /**
- * Implements UpdateEnergySource.
- */
- virtual void UpdateEnergySource (void);
-
- /**
- * \param initialEnergyJ Initial energy, in Joules
- *
- * Sets initial energy stored in the energy source. Note that initial energy
- * is assumed to be set before simulation starts and is set only once per
- * simulation.
- */
- void SetInitialEnergy (double initialEnergyJ);
-
- /**
- * \param supplyVoltageV Supply voltage at the energy source, in Volts.
- *
- * Sets supply voltage of the energy source.
- */
- void SetSupplyVoltage (double supplyVoltageV);
-
- /**
- * \param interval Energy update interval.
- *
- * This function sets the interval between each energy update.
- */
- void SetEnergyUpdateInterval (Time interval);
-
- /**
- * \returns The interval between each energy update.
- */
- Time GetEnergyUpdateInterval (void) const;
-
-
-private:
- /// Defined in ns3::Object
- void DoStart (void);
-
- /// Defined in ns3::Object
- void DoDispose (void);
-
- /**
- * Handles the remaining energy going to zero event. This function notifies
- * all the energy models aggregated to the node about the energy being
- * depleted. Each energy model is then responsible for its own handler.
- */
- void HandleEnergyDrainedEvent (void);
-
- /**
- * Calculates remaining energy. This function uses the total current from all
- * device models to calculate the amount of energy to decrease. The energy to
- * decrease is given by:
- * energy to decrease = total current * supply voltage * time duration
- * This function subtracts the calculated energy to decrease from remaining
- * energy.
- */
- void CalculateRemainingEnergy (void);
-
-private:
- double m_initialEnergyJ; // initial energy, in Joules
- double m_supplyVoltageV; // supply voltage, in Volts
- TracedValue<double> m_remainingEnergyJ; // remaining energy, in Joules
- EventId m_energyUpdateEvent; // energy update event
- Time m_lastUpdateTime; // last update time
- Time m_energyUpdateInterval; // energy update interval
-
-};
-
-} // namespace ns3
-
-#endif /* BASIC_ENERGY_SOURCE_H */
--- a/src/contrib/energy/model/device-energy-model-container.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2008 INRIA
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
- * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "device-energy-model-container.h"
-#include "ns3/names.h"
-
-namespace ns3 {
-
-DeviceEnergyModelContainer::DeviceEnergyModelContainer ()
-{
-}
-
-DeviceEnergyModelContainer::DeviceEnergyModelContainer (Ptr<DeviceEnergyModel> model)
-{
- NS_ASSERT (model != NULL);
- m_models.push_back (model);
-}
-
-DeviceEnergyModelContainer::DeviceEnergyModelContainer (std::string modelName)
-{
- Ptr<DeviceEnergyModel> model = Names::Find<DeviceEnergyModel> (modelName);
- NS_ASSERT (model != NULL);
- m_models.push_back (model);
-}
-
-DeviceEnergyModelContainer::DeviceEnergyModelContainer (const DeviceEnergyModelContainer &a,
- const DeviceEnergyModelContainer &b)
-{
- *this = a;
- Add (b);
-}
-
-DeviceEnergyModelContainer::Iterator
-DeviceEnergyModelContainer::Begin (void) const
-{
- return m_models.begin ();
-}
-
-DeviceEnergyModelContainer::Iterator
-DeviceEnergyModelContainer::End (void) const
-{
- return m_models.end ();
-}
-
-uint32_t
-DeviceEnergyModelContainer::GetN (void) const
-{
- return m_models.size ();
-}
-
-Ptr<DeviceEnergyModel>
-DeviceEnergyModelContainer::Get (uint32_t i) const
-{
- return m_models[i];
-}
-
-void
-DeviceEnergyModelContainer::Add (DeviceEnergyModelContainer container)
-{
- for (Iterator i = container.Begin (); i != container.End (); i++)
- {
- m_models.push_back (*i);
- }
-}
-
-void
-DeviceEnergyModelContainer::Add (Ptr<DeviceEnergyModel> model)
-{
- NS_ASSERT (model != NULL);
- m_models.push_back (model);
-}
-
-void
-DeviceEnergyModelContainer::Add (std::string modelName)
-{
- Ptr<DeviceEnergyModel> model = Names::Find<DeviceEnergyModel> (modelName);
- NS_ASSERT (model != NULL);
- m_models.push_back (model);
-}
-
-void
-DeviceEnergyModelContainer::Clear (void)
-{
- m_models.clear ();
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/device-energy-model-container.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,175 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2008 INRIA
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
- * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef DEVICE_ENERGY_MODEL_CONTAINER_H
-#define DEVICE_ENERGY_MODEL_CONTAINER_H
-
-#include "ns3/device-energy-model.h"
-#include <vector>
-#include <stdint.h>
-
-namespace ns3 {
-
-/**
- * \brief Holds a vector of ns3::DeviceEnergyModel pointers.
- *
- * DeviceEnergyModelContainer returns a list of DeviceEnergyModel pointers
- * installed on a node. Users can use this list to access DeviceEnergyModel
- * objects to obtain total device energy consumption on a node easily.
- *
- * \see NetDeviceContainer
- */
-class DeviceEnergyModelContainer
-{
-public:
- typedef std::vector< Ptr<DeviceEnergyModel> >::const_iterator Iterator;
-
-public:
- /**
- * Creates an empty DeviceEnergyModelContainer.
- */
- DeviceEnergyModelContainer ();
-
- /**
- * \param model Pointer to a DeviceEnergyModel.
- *
- * Creates a DeviceEnergyModelContainer with exactly one DeviceEnergyModel
- * previously instantiated.
- */
- DeviceEnergyModelContainer (Ptr<DeviceEnergyModel> model);
-
- /**
- * \param modelName Name of DeviceEnergyModel.
- *
- * Creates an DeviceEnergyModelContainer with exactly one DeviceEnergyModel
- * previously instantiated and assigned a name using the Object name service.
- * This DeviceEnergyModel is specified by its assigned name.
- */
- DeviceEnergyModelContainer (std::string modelName);
-
- /**
- * \param a A DeviceEnergyModelContainer.
- * \param b Another DeviceEnergyModelContainer.
- *
- * Creates a DeviceEnergyModelContainer by concatenating DeviceEnergyModelContainer b
- * to DeviceEnergyModelContainer a.
- *
- * \note Can be used to concatenate 2 Ptr<DeviceEnergyModel> directly. C++
- * will be calling DeviceEnergyModelContainer constructor with Ptr<DeviceEnergyModel>
- * first.
- */
- DeviceEnergyModelContainer (const DeviceEnergyModelContainer &a,
- const DeviceEnergyModelContainer &b);
-
- /**
- * \brief Get an iterator which refers to the first DeviceEnergyModel pointer
- * in the container.
- *
- * \returns An iterator which refers to the first DeviceEnergyModel in container.
- *
- * DeviceEnergyModels can be retrieved from the container in two ways. First,
- * directly by an index into the container, and second, using an iterator.
- * This method is used in the iterator method and is typically used in a
- * for-loop to run through the DeviceEnergyModels.
- *
- * \code
- * DeviceEnergyModelContainer::Iterator i;
- * for (i = container.Begin (); i != container.End (); ++i)
- * {
- * (*i)->method (); // some DeviceEnergyModel method
- * }
- * \endcode
- */
- Iterator Begin (void) const;
-
- /**
- * \brief Get an iterator which refers to the last DeviceEnergyModel pointer
- * in the container.
- *
- * \returns An iterator which refers to the last DeviceEnergyModel in container.
- *
- * DeviceEnergyModels can be retrieved from the container in two ways. First,
- * directly by an index into the container, and second, using an iterator.
- * This method is used in the iterator method and is typically used in a
- * for-loop to run through the DeviceEnergyModels.
- *
- * \code
- * DeviceEnergyModelContainer::Iterator i;
- * for (i = container.Begin (); i != container.End (); ++i)
- * {
- * (*i)->method (); // some DeviceEnergyModel method
- * }
- * \endcode
- */
- Iterator End (void) const;
-
- /**
- * \brief Get the number of Ptr<DeviceEnergyModel> stored in this container.
- *
- * \returns The number of Ptr<DeviceEnergyModel> stored in this container.
- */
- uint32_t GetN (void) const;
-
- /**
- * \brief Get the i-th Ptr<DeviceEnergyModel> stored in this container.
- *
- * \param i Index of the requested Ptr<DeviceEnergyModel>.
- * \returns The requested Ptr<DeviceEnergyModel>.
- */
- Ptr<DeviceEnergyModel> Get (uint32_t i) const;
-
- /**
- * \param container Another DeviceEnergyModelContainer.
- *
- * Appends the contents of another DeviceEnergyModelContainer to the end of
- * this DeviceEnergyModelContainer.
- */
- void Add (DeviceEnergyModelContainer container);
-
- /**
- * \brief Append a single Ptr<DeviceEnergyModel> to the end of this container.
- *
- * \param model Pointer to an DeviceEnergyModel.
- */
- void Add (Ptr<DeviceEnergyModel> model);
-
- /**
- * \brief Append a single Ptr<DeviceEnergyModel> referred to by its object
- * name to the end of this container.
- *
- * \param modelName Name of DeviceEnergyModel object.
- */
- void Add (std::string modelName);
-
- /**
- * \brief Removes all elements in the container.
- */
- void Clear (void);
-
-private:
- std::vector< Ptr<DeviceEnergyModel> > m_models;
-
-};
-
-} // namespace ns3
-
-#endif /* DEVICE_ENERGY_MODEL_CONTAINER_H */
--- a/src/contrib/energy/model/device-energy-model.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "device-energy-model.h"
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (DeviceEnergyModel);
-
-TypeId
-DeviceEnergyModel::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::DeviceEnergyModel")
- .SetParent<Object> ()
- ;
- return tid;
-}
-
-DeviceEnergyModel::DeviceEnergyModel ()
-{
-}
-
-DeviceEnergyModel::~DeviceEnergyModel ()
-{
-}
-
-double
-DeviceEnergyModel::GetCurrentA (void) const
-{
- return DoGetCurrentA ();
-}
-
-/*
- * Private function starts here.
- */
-
-double
-DeviceEnergyModel::DoGetCurrentA (void) const
-{
- return 0.0;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/device-energy-model.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,110 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef DEVICE_ENERGY_MODEL_H
-#define DEVICE_ENERGY_MODEL_H
-
-#include "ns3/object.h"
-#include "ns3/ptr.h"
-#include "ns3/type-id.h"
-#include "ns3/node.h"
-
-namespace ns3 {
-
-class EnergySource;
-
-/**
- * \brief Base class for device energy models.
- *
- * A device energy model should represent the energy consumption behavior of a
- * specific device. It will update remaining energy stored in the EnergySource
- * object installed on node. When energy is depleted, each DeviceEnergyModel
- * object installed on the same node will be informed by the EnergySource.
- */
-class DeviceEnergyModel : public Object
-{
-public:
- /**
- * Callback type for ChangeState function. Devices uses this state to notify
- * DeviceEnergyModel of a state change.
- */
- typedef Callback<void, int> ChangeStateCallback;
-
-public:
- static TypeId GetTypeId (void);
- DeviceEnergyModel ();
- virtual ~DeviceEnergyModel ();
-
- /**
- * \param source Pointer to energy source installed on node.
- *
- * This function sets the pointer to energy source installed on node. Should
- * be called only by DeviceEnergyModel helper classes.
- */
- virtual void SetEnergySource (Ptr<EnergySource> source) = 0;
-
- /**
- * \returns Total energy consumption of the device.
- *
- * DeviceEnergyModel records its own energy consumption during simulation.
- */
- virtual double GetTotalEnergyConsumption (void) const = 0;
-
- /**
- * \param newState New state the device is in.
- *
- * DeviceEnergyModel is a state based model. This function is implemented by
- * all child of DeviceEnergyModel to change the model's state. States are to
- * be defined by each child using an enum (int).
- */
- virtual void ChangeState (int newState) = 0;
-
- /**
- * \returns Current draw of the device, in Ampere.
- *
- * This function returns the current draw at the device in its current state.
- * This function is called from the EnergySource to obtain the total current
- * draw at any given time during simulation.
- */
- double GetCurrentA (void) const;
-
- /**
- * This function is called by the EnergySource object when energy stored in
- * the energy source is depleted. Should be implemented by child classes.
- */
- virtual void HandleEnergyDepletion (void) = 0;
-
-
-private:
- /**
- * \returns 0.0 as the current value, in Ampere.
- *
- * Child class does not have to implement this method if current draw for its
- * states are not know. This default method will always return 0.0A. For the
- * devices who does know the current draw of its states, this method must be
- * overwritten.
- */
- virtual double DoGetCurrentA (void) const;
-
-};
-
-}
-
-#endif /* DEVICE_ENERGY_MODEL_H */
--- a/src/contrib/energy/model/energy-source.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,176 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "energy-source.h"
-#include "ns3/log.h"
-
-NS_LOG_COMPONENT_DEFINE ("EnergySource");
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (EnergySource);
-
-TypeId
-EnergySource::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::EnergySource")
- .SetParent<Object> ()
- ;
- return tid;
-}
-
-EnergySource::EnergySource ()
-{
-}
-
-EnergySource::~EnergySource ()
-{
-}
-
-void
-EnergySource::SetNode (Ptr<Node> node)
-{
- NS_ASSERT (node != NULL);
- m_node = node;
-}
-
-Ptr<Node>
-EnergySource::GetNode (void) const
-{
- return m_node;
-}
-
-void
-EnergySource::AppendDeviceEnergyModel (Ptr<DeviceEnergyModel> deviceEnergyModelPtr)
-{
- NS_LOG_FUNCTION (this << deviceEnergyModelPtr);
- NS_ASSERT (deviceEnergyModelPtr != NULL); // model must exist
- m_models.Add (deviceEnergyModelPtr);
-}
-
-DeviceEnergyModelContainer
-EnergySource::FindDeviceEnergyModels (TypeId tid)
-{
- NS_LOG_FUNCTION (this << tid);
- DeviceEnergyModelContainer container;
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- if ((*i)->GetInstanceTypeId () == tid)
- {
- container.Add (*i);
- }
- }
- return container;
-}
-
-DeviceEnergyModelContainer
-EnergySource::FindDeviceEnergyModels (std::string name)
-{
- NS_LOG_FUNCTION (this << name);
- DeviceEnergyModelContainer container;
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- if ((*i)->GetInstanceTypeId ().GetName ().compare (name) == 0)
- {
- container.Add (*i);
- }
- }
- return container;
-}
-
-void
-EnergySource::StartDeviceModels (void)
-{
- /*
- * Device models are not aggregated to the node, hence we have to manually
- * call dispose method here.
- */
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- (*i)->Start ();
- }
-}
-
-void
-EnergySource::DisposeDeviceModels (void)
-{
- /*
- * Device models are not aggregated to the node, hence we have to manually
- * call dispose method here.
- */
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- (*i)->Dispose ();
- }
-}
-
-/*
- * Private function starts here.
- */
-
-void
-EnergySource::DoDispose (void)
-{
- NS_LOG_FUNCTION (this);
- BreakDeviceEnergyModelRefCycle ();
-}
-
-/*
- * Protected functions start here.
- */
-
-double
-EnergySource::CalculateTotalCurrent (void)
-{
- NS_LOG_FUNCTION (this);
- double totalCurrentA = 0.0;
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- totalCurrentA += (*i)->GetCurrentA ();
- }
- return totalCurrentA;
-}
-
-void
-EnergySource::NotifyEnergyDrained (void)
-{
- NS_LOG_FUNCTION (this);
- // notify all device energy models installed on node
- DeviceEnergyModelContainer::Iterator i;
- for (i = m_models.Begin (); i != m_models.End (); i++)
- {
- (*i)->HandleEnergyDepletion ();
- }
-}
-
-void
-EnergySource::BreakDeviceEnergyModelRefCycle (void)
-{
- NS_LOG_FUNCTION (this);
- m_models.Clear ();
- m_node = NULL;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/energy-source.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,205 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef ENERGY_SOURCE_H
-#define ENERGY_SOURCE_H
-
-#include "ns3/object.h"
-#include "ns3/ptr.h"
-#include "ns3/type-id.h"
-#include "ns3/node.h"
-#include "device-energy-model-container.h" // #include "device-energy-model.h"
-
-namespace ns3 {
-
-/**
- * \brief Energy source base class.
- *
- * This is the base class for energy sources. Energy sources keep track of
- * remaining energy. Device energy models will be updating the remaining energy
- * in the energy source. The energy source itself does not update the remaining
- * energy. Energy source also keeps a list of device energy models installed on
- * the same node. When the remaining energy level reaches 0, the energy source
- * will notify all device energy models stored in the list.
- *
- * EnergySource provides 2 types of interfaces for DeviceEnergyModels to update
- * the remaining energy stored in EnergySource:
- * -Direct energy update interface (Joules):
- * DecreaseRemainingEnergy
- * IncreaseRemainingEnergy
- * -Indirect energy update interface (Current):
- * UpdateEnergySource
- * Direct energy update interface will decrease/increase energy from the source
- * directly (in Joules). Direct energy update interface is typically used by
- * simple DeviceEnergyModel which knows only average power consumption for each
- * of its state.
- * Indirect energy update interface uses the total current cumulated from all
- * DeviceEnergyModel to calculate energy to decrease from the source. Indirect
- * energy update interface is typically used by DeviceEnergyModel who knows its
- * current draw for each of its states. Nonlinear EnergySource also uses this
- * interface.
- *
- * Unit of energy is chosen as Joules since energy models typically calculate
- * energy as (time in seconds * power in Watts). If the energy source stores
- * energy in different units (eg. kWh), a simple converter function should
- * suffice.
- */
-class EnergySource : public Object
-{
-public:
- static TypeId GetTypeId (void);
- EnergySource ();
- virtual ~EnergySource ();
-
- /**
- * \returns Supply voltage of the energy source.
- *
- * Set method is to be defined in child class only if necessary. For sources
- * with a fixed supply voltage, set method is not needed.
- */
- virtual double GetSupplyVoltage (void) const = 0;
-
- /**
- * \returns Initial energy (capacity) of the energy source.
- *
- * Set method is to be defined in child class only if necessary. For sources
- * with a fixed initial energy (energy capacity), set method is not needed.
- */
- virtual double GetInitialEnergy (void) const = 0;
-
- /**
- * \returns Remaining energy at the energy source.
- */
- virtual double GetRemainingEnergy (void) = 0;
-
- /**
- * \return Energy fraction = remaining energy / initial energy [0, 1]
- *
- * This function returns the percentage of energy left in the energy source.
- */
- virtual double GetEnergyFraction (void) = 0;
-
- /**
- * This function goes through the list of DeviceEnergyModels to obtain total
- * current draw at the energy source and updates remaining energy. Called by
- * DeviceEnergyModels to inform EnergySource of a state change.
- */
- virtual void UpdateEnergySource (void) = 0;
-
- /**
- * \brief Sets pointer to node containing this EnergySource.
- *
- * \param node Pointer to node containing this EnergySource.
- */
- void SetNode (Ptr<Node> node);
-
- /**
- * \returns Pointer to node containing this EnergySource.
- *
- * When a subclass needs to get access to the underlying node base class to
- * print the nodeId for example, it can invoke this method.
- */
- Ptr<Node> GetNode (void) const;
-
- /**
- * \param deviceEnergyModelPtr Pointer to device energy model.
- *
- * This function appends a device energy model to the end of a list of
- * DeviceEnergyModelInfo structs.
- */
- void AppendDeviceEnergyModel (Ptr<DeviceEnergyModel> deviceEnergyModelPtr);
-
- /**
- * \param tid TypeId of the DeviceEnergyModel we are searching for.
- * \returns List of pointers to DeviceEnergyModel objects installed on node.
- */
- DeviceEnergyModelContainer FindDeviceEnergyModels (TypeId tid);
-
- /**
- * \param name name of the DeviceEnergyModel we are searching for.
- * \returns List of pointers to DeviceEnergyModel objects installed on node.
- */
- DeviceEnergyModelContainer FindDeviceEnergyModels (std::string name);
-
- /**
- * Calls Start () method of the device energy models. Device energy models are
- * not aggregated to the node, therefore we need to manually start them here.
- * Called by EnergySourceContainer, which is aggregated to the node.
- */
- void StartDeviceModels (void);
-
- /**
- * Calls Dispose () method of the device energy models. Device energy models
- * are not aggregated to the node, therefore we need to manually start them
- * here. Called by EnergySourceContainer, which is aggregated to the node.
- */
- void DisposeDeviceModels (void);
-
-
-private:
- /**
- * All child's implementation must call BreakDeviceEnergyModelRefCycle to
- * ensure reference cycles to DeviceEnergyModel objects are broken.
- *
- * Defined in ns3::Object
- */
- virtual void DoDispose (void);
-
-private:
- /**
- * List of device energy models installed on the same node.
- */
- DeviceEnergyModelContainer m_models;
-
- /**
- * Pointer to node containing this EnergySource. Used by helper class to make
- * sure device models are installed onto the corresponding node.
- */
- Ptr<Node> m_node;
-
-
-protected:
- /**
- * \returns Total current draw from all DeviceEnergyModels.
- */
- double CalculateTotalCurrent (void);
-
- /**
- * This function notifies all DeviceEnergyModel of energy depletion event. It
- * is called by the child EnergySource class when energy depletion happens.
- */
- void NotifyEnergyDrained (void);
-
- /**
- * This function is called to break reference cycle between EnergySource and
- * DeviceEnergyModel. Child of the EnergySource base class must call this
- * function in their implementation of DoDispose to make sure the reference
- * cycle is broken.
- *
- * Normally this work will be completed by the DoDispose function. However it
- * will be overridden in the child class. Hence we introduced this function.
- */
- void BreakDeviceEnergyModelRefCycle (void);
-
-};
-
-} // namespace ns3
-
-#endif /* ENERGY_SOURCE_H */
--- a/src/contrib/energy/model/li-ion-energy-source.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,307 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Andrea Sacco
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andrea Sacco <andrea.sacco85@gmail.com>
- */
-
-#include "li-ion-energy-source.h"
-#include "ns3/log.h"
-#include "ns3/assert.h"
-#include "ns3/double.h"
-#include "ns3/trace-source-accessor.h"
-#include "ns3/simulator.h"
-
-#include <cmath>
-
-NS_LOG_COMPONENT_DEFINE ("LiIonEnergySource");
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (LiIonEnergySource);
-
-TypeId
-LiIonEnergySource::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::LiIonEnergySource")
- .SetParent<EnergySource> ()
- .AddConstructor<LiIonEnergySource> ()
- .AddAttribute ("LiIonEnergySourceInitialEnergyJ",
- "Initial energy stored in basic energy source.",
- DoubleValue (31752.0), // in Joules
- MakeDoubleAccessor (&LiIonEnergySource::SetInitialEnergy,
- &LiIonEnergySource::GetInitialEnergy),
- MakeDoubleChecker<double> ())
- .AddAttribute ("IntialCellVoltage",
- "Initial (maximum) voltage of the cell (fully charged).",
- DoubleValue (4.05), // in Volts
- MakeDoubleAccessor (&LiIonEnergySource::SetInitialSupplyVoltage,
- &LiIonEnergySource::GetSupplyVoltage),
- MakeDoubleChecker<double> ())
- .AddAttribute ("NominalCellVoltage",
- "Nominal voltage of the cell.",
- DoubleValue (3.6), // in Volts
- MakeDoubleAccessor (&LiIonEnergySource::m_eNom),
- MakeDoubleChecker<double> ())
- .AddAttribute ("ExpCellVoltage",
- "Cell voltage at the end of the exponential zone.",
- DoubleValue (3.6), // in Volts
- MakeDoubleAccessor (&LiIonEnergySource::m_eExp),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RatedCapacity",
- "Rated capacity of the cell.",
- DoubleValue (2.45), // in Ah
- MakeDoubleAccessor (&LiIonEnergySource::m_qRated),
- MakeDoubleChecker<double> ())
- .AddAttribute ("NomCapacity",
- "Cell capacity at the end of the nominal zone.",
- DoubleValue (1.1), // in Ah
- MakeDoubleAccessor (&LiIonEnergySource::m_qNom),
- MakeDoubleChecker<double> ())
- .AddAttribute ("ExpCapacity",
- "Cell Capacity at the end of the exponential zone.",
- DoubleValue (1.2), // in Ah
- MakeDoubleAccessor (&LiIonEnergySource::m_qExp),
- MakeDoubleChecker<double> ())
- .AddAttribute ("InternalResistance",
- "Internal resistance of the cell",
- DoubleValue (0.083), // in Ohms
- MakeDoubleAccessor (&LiIonEnergySource::m_internalResistance),
- MakeDoubleChecker<double> ())
- .AddAttribute ("TypCurrent",
- "Typical discharge current used to fit the curves",
- DoubleValue (2.33), // in A
- MakeDoubleAccessor (&LiIonEnergySource::m_typCurrent),
- MakeDoubleChecker<double> ())
- .AddAttribute ("ThresholdVoltage",
- "Minimum threshold voltage to consider the battery depleted.",
- DoubleValue (3.3), // in Volts
- MakeDoubleAccessor (&LiIonEnergySource::m_minVoltTh),
- MakeDoubleChecker<double> ())
- .AddAttribute ("PeriodicEnergyUpdateInterval",
- "Time between two consecutive periodic energy updates.",
- TimeValue (Seconds (1.0)),
- MakeTimeAccessor (&LiIonEnergySource::SetEnergyUpdateInterval,
- &LiIonEnergySource::GetEnergyUpdateInterval),
- MakeTimeChecker ())
- .AddTraceSource ("RemainingEnergy",
- "Remaining energy at BasicEnergySource.",
- MakeTraceSourceAccessor (&LiIonEnergySource::m_remainingEnergyJ))
- ;
- return tid;
-}
-
-LiIonEnergySource::LiIonEnergySource ()
- : m_drainedCapacity (0.0),
- m_lastUpdateTime (Seconds (0.0))
-{
-}
-
-LiIonEnergySource::~LiIonEnergySource ()
-{
-}
-
-void
-LiIonEnergySource::SetInitialEnergy (double initialEnergyJ)
-{
- NS_LOG_FUNCTION (this << initialEnergyJ);
- NS_ASSERT (initialEnergyJ >= 0);
- m_initialEnergyJ = initialEnergyJ;
- // set remaining energy to be initial energy
- m_remainingEnergyJ = m_initialEnergyJ;
-}
-
-double
-LiIonEnergySource::GetInitialEnergy (void) const
-{
- NS_LOG_FUNCTION (this);
- return m_initialEnergyJ;
-}
-
-void
-LiIonEnergySource::SetInitialSupplyVoltage (double supplyVoltageV)
-{
- m_eFull = supplyVoltageV;
- m_supplyVoltageV = supplyVoltageV;
-}
-
-double
-LiIonEnergySource::GetSupplyVoltage (void) const
-{
- NS_LOG_FUNCTION (this);
- return m_supplyVoltageV;
-}
-
-void
-LiIonEnergySource::SetEnergyUpdateInterval (Time interval)
-{
- NS_LOG_FUNCTION (this);
- m_energyUpdateInterval = interval;
-}
-
-Time
-LiIonEnergySource::GetEnergyUpdateInterval (void) const
-{
- NS_LOG_FUNCTION (this);
- return m_energyUpdateInterval;
-}
-
-double
-LiIonEnergySource::GetRemainingEnergy (void)
-{
- NS_LOG_FUNCTION (this);
- // update energy source to get the latest remaining energy.
- UpdateEnergySource ();
- return m_remainingEnergyJ;
-}
-
-double
-LiIonEnergySource::GetEnergyFraction (void)
-{
- NS_LOG_FUNCTION (this);
- // update energy source to get the latest remaining energy.
- UpdateEnergySource ();
- return m_remainingEnergyJ / m_initialEnergyJ;
-}
-
-void
-LiIonEnergySource::DecreaseRemainingEnergy (double energyJ)
-{
- NS_LOG_FUNCTION (this << energyJ);
- NS_ASSERT (energyJ >= 0);
- m_remainingEnergyJ -= energyJ;
-
- // check if remaining energy is 0
- if (m_supplyVoltageV <= m_minVoltTh)
- {
- HandleEnergyDrainedEvent ();
- }
-}
-
-void
-LiIonEnergySource::IncreaseRemainingEnergy (double energyJ)
-{
- NS_LOG_FUNCTION (this << energyJ);
- NS_ASSERT (energyJ >= 0);
- m_remainingEnergyJ += energyJ;
-}
-
-void
-LiIonEnergySource::UpdateEnergySource (void)
-{
- NS_LOG_FUNCTION (this);
- NS_LOG_DEBUG ("LiIonEnergySource:Updating remaining energy at node #" <<
- GetNode ()->GetId ());
-
- // do not update if simulation has finished
- if (Simulator::IsFinished ())
- {
- return;
- }
-
- m_energyUpdateEvent.Cancel ();
-
- CalculateRemainingEnergy ();
-
- if (m_remainingEnergyJ <= 0)
- {
- HandleEnergyDrainedEvent ();
- return; // stop periodic update
- }
-
- m_lastUpdateTime = Simulator::Now ();
-
- m_energyUpdateEvent = Simulator::Schedule (m_energyUpdateInterval,
- &LiIonEnergySource::UpdateEnergySource,
- this);
-}
-
-/*
- * Private functions start here.
- */
-void
-LiIonEnergySource::DoStart (void)
-{
- NS_LOG_FUNCTION (this);
- UpdateEnergySource (); // start periodic update
-}
-
-void
-LiIonEnergySource::DoDispose (void)
-{
- NS_LOG_FUNCTION (this);
- // calculate remaining energy at the end of simulation
- CalculateRemainingEnergy ();
- BreakDeviceEnergyModelRefCycle (); // break reference cycle
-}
-
-
-void
-LiIonEnergySource::HandleEnergyDrainedEvent (void)
-{
- NS_LOG_FUNCTION (this);
- NS_LOG_DEBUG ("LiIonEnergySource:Energy depleted at node #" <<
- GetNode ()->GetId ());
- NotifyEnergyDrained (); // notify DeviceEnergyModel objects
- m_remainingEnergyJ = 0; // energy never goes below 0
-}
-
-
-void
-LiIonEnergySource::CalculateRemainingEnergy (void)
-{
- NS_LOG_FUNCTION (this);
- double totalCurrentA = CalculateTotalCurrent ();
- Time duration = Simulator::Now () - m_lastUpdateTime;
- NS_ASSERT (duration.GetSeconds () >= 0);
- // energy = current * voltage * time
- double energyToDecreaseJ = totalCurrentA * m_supplyVoltageV * duration.GetSeconds ();
- m_remainingEnergyJ -= energyToDecreaseJ;
- m_drainedCapacity += (totalCurrentA * duration.GetSeconds () / 3600);
- // update the supply voltage
- m_supplyVoltageV = GetVoltage (totalCurrentA);
- NS_LOG_DEBUG ("LiIonEnergySource:Remaining energy = " << m_remainingEnergyJ);
-}
-
-double
-LiIonEnergySource::GetVoltage (double i) const
-{
- NS_LOG_FUNCTION (this << i);
-
- // integral of i in dt, drained capacity in Ah
- double it = m_drainedCapacity;
-
- // empirical factors
- double A = m_eFull - m_eExp;
- double B = 3 / m_qExp;
-
- // slope of the polarization curve
- double K = std::abs ( (m_eFull - m_eNom + A * (exp (-B * m_qNom) - 1)) * (m_qRated - m_qNom) / m_qNom);
-
- // constant voltage
- double E0 = m_eFull + K + m_internalResistance * m_typCurrent - A;
-
- double E = E0 - K * m_qRated / (m_qRated - it) + A * exp (-B * it);
-
- // cell voltage
- double V = E - m_internalResistance * i;
-
- NS_LOG_DEBUG ("Voltage: " << V << " with E: " << E);
-
- return V;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/li-ion-energy-source.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,202 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Andrea Sacco
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andrea Sacco <andrea.sacco85@gmail.com>
- */
-
-#ifndef LI_ION_ENERGY_SOURCE
-#define LI_ION_ENERGY_SOURCE
-
-#include "ns3/traced-value.h"
-#include "ns3/energy-source.h"
-#include "ns3/nstime.h"
-#include "ns3/event-id.h"
-
-namespace ns3 {
-
-/**
- * \brief Model a generic Lithium Ion Battery basing on [1][2].
- *
- * The model can be fitted to any type of Li-Ion Battery, simply changing the
- * model parameters.
- * The default values are fitted for the Panasonic CGR18650DA Li-Ion Battery [3].
- *
- * The energy is drained as defined from the EnergySource interface but, this class
- * consider the non-linear behaviour of Li-Ion cell. Each time energy is drained from
- * the cell, the class evaluates the discharge curve to get the actual cell's voltage,
- * accordingly to State of Charge (SOC) and current's drain.
- *
- * If the actual voltage of the cell goes below the minimum threshold voltage, the
- * cell is considered depleted and the energy drained event fired up.
- *
- *
- * The model requires several parameters to approximates the discharge curves:
- * - IntialCellVoltage, maximum voltage of the fully charged cell
- * - NominalCellVoltage, nominal cell's voltage, is used to determine the end of the
- * nominal zone.
- * - ExpCellVoltage, cell's voltage at the end of the exponential zone
- * - RatedCapacity, rated capacity of the cell, in Ah
- * - NomCapacity, cell's capacity at the end of the nominal zone, in Ah
- * - ExpCapacity, cell's capacity at the end of the exponential zone, in Ah
- * - InternalResistance, internal resistance of the cell, in Ohms
- * - TypCurrent, typical discharge current value, used during the fitting process, in Ah
- * - ThresholdVoltage, minimum threshold voltage below which the cell is considered
- * depleted
- *
- * For a complete reference of the energy source model and model's fitting please refer
- * to <a href="http://www.nsnam.org/wiki/index.php/GSOC2010UANFramework">UAN Framework</a>
- * page and <a href="http://www.nsnam.org/wiki/index.php/Li-Ion_model_fitting">Li-Ion model
- * fitting</a> page.
- *
- * References:
- * [1] C. M. Shepherd, "Design of Primary and Secondary Cells - Part 3. Battery discharge equation," U.S. Naval Research Laboratory, 1963
- * [2] Tremblay, O.; Dessaint, L.-A.; Dekkiche, A.-I., "A Generic Battery Model for the Dynamic Simulation of Hybrid Electric Vehicles," Ecole de Technologie Superieure, Universite du Quebec, 2007
- * [3] http://www.panasonic.com/industrial/includes/pdf/Panasonic_LiIon_CGR18650DA.pdf
- */
-class LiIonEnergySource : public EnergySource
-{
-public:
- static TypeId GetTypeId (void);
- LiIonEnergySource ();
- virtual ~LiIonEnergySource ();
-
- /**
- * \return Initial energy stored in energy source, in Joules.
- *
- * Implements GetInitialEnergy.
- */
- virtual double GetInitialEnergy (void) const;
-
- /**
- * \param initialEnergyJ Initial energy, in Joules
- *
- * Implements SetInitialEnergy. Note that initial energy is assumed to be set
- * before simulation starts and is set only once per simulation.
- */
- void SetInitialEnergy (double initialEnergyJ);
-
- /**
- * \returns Supply voltage at the energy source.
- *
- * Implements GetSupplyVoltage.
- */
- virtual double GetSupplyVoltage (void) const;
-
- /**
- * \param supplyVoltageV Initial Supply voltage at the energy source, in Volts.
- *
- * Sets the initial supply voltage of the energy source.
- * To be called only once.
- */
- void SetInitialSupplyVoltage (double supplyVoltageV);
-
- /**
- * \return Remaining energy in energy source, in Joules
- *
- * Implements GetRemainingEnergy.
- */
- virtual double GetRemainingEnergy (void);
-
- /**
- * \returns Energy fraction.
- *
- * Implements GetEnergyFraction.
- */
- virtual double GetEnergyFraction (void);
-
- /**
- * \param energyJ Amount of energy (in Joules) to decrease from energy source.
- *
- * Implements DecreaseRemainingEnergy.
- */
- virtual void DecreaseRemainingEnergy (double energyJ);
-
- /**
- * \param energyJ Amount of energy (in Joules) to increase from energy source.
- *
- * Implements IncreaseRemainingEnergy.
- */
- virtual void IncreaseRemainingEnergy (double energyJ);
-
- /**
- * Implements UpdateEnergySource.
- */
- virtual void UpdateEnergySource (void);
-
- /**
- * \param interval Energy update interval.
- *
- * This function sets the interval between each energy update.
- */
- void SetEnergyUpdateInterval (Time interval);
-
- /**
- * \returns The interval between each energy update.
- */
- Time GetEnergyUpdateInterval (void) const;
-private:
- void DoStart (void);
- void DoDispose (void);
-
- /**
- * Handles the remaining energy going to zero event. This function notifies
- * all the energy models aggregated to the node about the energy being
- * depleted. Each energy model is then responsible for its own handler.
- */
- void HandleEnergyDrainedEvent (void);
-
- /**
- * Calculates remaining energy. This function uses the total current from all
- * device models to calculate the amount of energy to decrease. The energy to
- * decrease is given by:
- * energy to decrease = total current * supply voltage * time duration
- * This function subtracts the calculated energy to decrease from remaining
- * energy.
- */
- void CalculateRemainingEnergy (void);
-
- /**
- * \param current the actual discharge current value.
- *
- * Get the cell voltage in function of the discharge current.
- * It consider different discharge curves for different discharge currents
- * and the remaining energy of the cell.
- */
- double GetVoltage (double current) const;
-
-private:
- double m_initialEnergyJ; // initial energy, in Joules
- TracedValue<double> m_remainingEnergyJ; // remaining energy, in Joules
- double m_drainedCapacity; // capacity drained from the cell, in Ah
- double m_supplyVoltageV; // actual voltage of the cell
- EventId m_energyUpdateEvent; // energy update event
- Time m_lastUpdateTime; // last update time
- Time m_energyUpdateInterval; // energy update interval
- double m_eFull; // initial voltage of the cell, in Volts
- double m_eNom; // nominal voltage of the cell, in Volts
- double m_eExp; // cell voltage at the end of the exponential zone, in Volts
- double m_internalResistance; // internal resistance of the cell, in Ohms
- double m_qRated; // rated capacity of the cell, in Ah
- double m_qNom; // cell capacity at the end of the nominal zone, in Ah
- double m_qExp; // capacity value at the end of the exponential zone, in Ah
- double m_typCurrent; // typical discharge current used to fit the curves
- double m_minVoltTh; // minimum threshold voltage to consider the battery depleted
-};
-
-} // namespace ns3
-
-#endif /* LI_ION_ENERGY_SOURCE */
--- a/src/contrib/energy/model/rv-battery-model.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,367 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "rv-battery-model.h"
-#include "ns3/log.h"
-#include "ns3/assert.h"
-#include "ns3/double.h"
-#include "ns3/trace-source-accessor.h"
-#include "ns3/simulator.h"
-#include <math.h>
-
-NS_LOG_COMPONENT_DEFINE ("RvBatteryModel");
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (RvBatteryModel);
-
-TypeId
-RvBatteryModel::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::RvBatteryModel")
- .SetParent<EnergySource> ()
- .AddConstructor<RvBatteryModel> ()
- .AddAttribute ("RvBatteryModelPeriodicEnergyUpdateInterval",
- "RV battery model sampling interval.",
- TimeValue (Seconds (1.0)),
- MakeTimeAccessor (&RvBatteryModel::SetSamplingInterval,
- &RvBatteryModel::GetSamplingInterval),
- MakeTimeChecker ())
- .AddAttribute ("RvBatteryModelOpenCircuitVoltage",
- "RV battery model open circuit voltage.",
- DoubleValue (4.1),
- MakeDoubleAccessor (&RvBatteryModel::SetOpenCircuitVoltage,
- &RvBatteryModel::GetOpenCircuitVoltage),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RvBatteryModelCutoffVoltage",
- "RV battery model cutoff voltage.",
- DoubleValue (3.0),
- MakeDoubleAccessor (&RvBatteryModel::SetCutoffVoltage,
- &RvBatteryModel::GetCutoffVoltage),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RvBatteryModelAlphaValue",
- "RV battery model alpha value.",
- DoubleValue (35220.0),
- MakeDoubleAccessor (&RvBatteryModel::SetAlpha,
- &RvBatteryModel::GetAlpha),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RvBatteryModelBetaValue",
- "RV battery model beta value.",
- DoubleValue (0.637),
- MakeDoubleAccessor (&RvBatteryModel::SetBeta,
- &RvBatteryModel::GetBeta),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RvBatteryModelNumOfTerms",
- "The number of terms of the infinite sum for estimating battery level.",
- IntegerValue (10), // value used in paper
- MakeIntegerAccessor (&RvBatteryModel::SetNumOfTerms,
- &RvBatteryModel::GetNumOfTerms),
- MakeIntegerChecker<int> ())
- .AddTraceSource ("RvBatteryModelBatteryLevel",
- "RV battery model battery level.",
- MakeTraceSourceAccessor (&RvBatteryModel::m_batteryLevel))
- .AddTraceSource ("RvBatteryModelBatteryLifetime",
- "RV battery model battery lifetime.",
- MakeTraceSourceAccessor (&RvBatteryModel::m_lifetime))
- ;
- return tid;
-}
-
-RvBatteryModel::RvBatteryModel ()
-{
- m_lastSampleTime = Seconds (0.0);
- m_previousLoad = 0.0;
- m_batteryLevel = 1; // fully charged
- m_lifetime = Seconds (0.0);
-}
-
-RvBatteryModel::~RvBatteryModel ()
-{
-}
-
-double
-RvBatteryModel::GetInitialEnergy (void) const
-{
- return m_alpha * GetSupplyVoltage ();
-}
-
-double
-RvBatteryModel::GetSupplyVoltage (void) const
-{
- // average of Voc and Vcutoff
- return (m_openCircuitVoltage - m_cutoffVoltage) / 2 + m_cutoffVoltage;
-}
-
-double
-RvBatteryModel::GetRemainingEnergy (void)
-{
- NS_LOG_FUNCTION (this);
- UpdateEnergySource ();
- return m_alpha * GetSupplyVoltage () * m_batteryLevel;
-}
-
-double
-RvBatteryModel::GetEnergyFraction (void)
-{
- return GetBatteryLevel ();
-}
-
-void
-RvBatteryModel::UpdateEnergySource (void)
-{
- NS_LOG_FUNCTION (this);
-
- // do not update if battery is already dead
- if (m_batteryLevel <= 0)
- {
- NS_LOG_DEBUG ("RvBatteryModel:Battery is dead!");
- return;
- }
-
- // do not update if simulation has finished
- if (Simulator::IsFinished ())
- {
- return;
- }
-
- NS_LOG_DEBUG ("RvBatteryModel:Updating remaining energy!");
-
- m_currentSampleEvent.Cancel ();
-
- double currentLoad = CalculateTotalCurrent () * 1000; // must be in mA
- double calculatedAlpha = Discharge (currentLoad, Simulator::Now ());
-
- NS_LOG_DEBUG ("RvBatteryModel:Calculated alpha = " << calculatedAlpha <<
- " time = " << Simulator::Now ().GetSeconds ());
-
- // calculate battery level
- m_batteryLevel = 1 - (calculatedAlpha / m_alpha);
- if (m_batteryLevel < 0)
- {
- m_batteryLevel = 0;
- }
-
- // check if battery is dead.
- if (calculatedAlpha >= m_alpha)
- {
- m_lifetime = Simulator::Now ();
- NS_LOG_DEBUG ("RvBatteryModel:Battery is dead!");
- HandleEnergyDrainedEvent ();
- return; // stop periodic sampling
- }
-
- m_previousLoad = currentLoad;
- m_lastSampleTime = Simulator::Now ();
- m_currentSampleEvent = Simulator::Schedule (m_samplingInterval,
- &RvBatteryModel::UpdateEnergySource,
- this);
-}
-
-void
-RvBatteryModel::SetSamplingInterval (Time interval)
-{
- NS_LOG_FUNCTION (this << interval);
- m_samplingInterval = interval;
-}
-
-Time
-RvBatteryModel::GetSamplingInterval (void) const
-{
- return m_samplingInterval;
-}
-
-void
-RvBatteryModel::SetOpenCircuitVoltage (double voltage)
-{
- NS_LOG_FUNCTION (this << voltage);
- NS_ASSERT (voltage >= 0);
- m_openCircuitVoltage = voltage;
-}
-
-double
-RvBatteryModel::GetOpenCircuitVoltage (void) const
-{
- return m_openCircuitVoltage;
-}
-
-void
-RvBatteryModel::SetCutoffVoltage (double voltage)
-{
- NS_LOG_FUNCTION (this << voltage);
- NS_ASSERT (voltage <= m_openCircuitVoltage);
- m_cutoffVoltage = voltage;
-}
-
-double
-RvBatteryModel::GetCutoffVoltage (void) const
-{
- return m_cutoffVoltage;
-}
-
-void
-RvBatteryModel::SetAlpha (double alpha)
-{
- NS_LOG_FUNCTION (this << alpha);
- NS_ASSERT (alpha >= 0);
- m_alpha = alpha;
-}
-
-double
-RvBatteryModel::GetAlpha (void) const
-{
- return m_alpha;
-}
-
-void
-RvBatteryModel::SetBeta (double beta)
-{
- NS_LOG_FUNCTION (this << beta);
- NS_ASSERT (beta >= 0);
- m_beta = beta;
-}
-
-double
-RvBatteryModel::GetBeta (void) const
-{
- return m_beta;
-}
-
-double
-RvBatteryModel::GetBatteryLevel (void)
-{
- NS_LOG_FUNCTION (this);
- UpdateEnergySource ();
- return m_batteryLevel;
-}
-
-Time
-RvBatteryModel::GetLifetime (void) const
-{
- return m_lifetime;
-}
-
-void
-RvBatteryModel::SetNumOfTerms (int num)
-{
- NS_LOG_FUNCTION (this << num);
- m_numOfTerms = num;
-}
-
-int
-RvBatteryModel::GetNumOfTerms (void) const
-{
- return m_numOfTerms;
-}
-
-/*
- * Private functions start here.
- */
-
-void
-RvBatteryModel::DoStart (void)
-{
- NS_LOG_DEBUG ("RvBatteryModel:Starting battery level update!");
- UpdateEnergySource (); // start periodic sampling of load (total current)
-}
-
-void
-RvBatteryModel::DoDispose (void)
-{
- BreakDeviceEnergyModelRefCycle (); // break reference cycle
-}
-
-void
-RvBatteryModel::HandleEnergyDrainedEvent (void)
-{
- NS_LOG_FUNCTION (this);
- NS_LOG_DEBUG ("RvBatteryModel:Energy depleted!");
- NotifyEnergyDrained (); // notify DeviceEnergyModel objects
-}
-
-double
-RvBatteryModel::Discharge (double load, Time t)
-{
- NS_LOG_FUNCTION (this << load << t);
-
- // record only when load changes
- if (load != m_previousLoad)
- {
- m_load.push_back (load);
- m_previousLoad = load;
- if (t != Seconds (0.0))
- {
- m_timeStamps[m_timeStamps.size () - 1] = m_lastSampleTime;
- }
- else
- {
- m_timeStamps.push_back (Seconds (0.0));
- }
- m_timeStamps.push_back (t);
- }
- else
- {
- m_timeStamps[m_timeStamps.size () - 1] = t;
- }
-
- m_lastSampleTime = t;
-
- // calculate alpha for new t
- NS_ASSERT (m_load.size () == m_timeStamps.size () - 1); // size must be equal
- double calculatedAlpha = 0.0;
- if (m_timeStamps.size () == 1)
- {
- // constant load
- calculatedAlpha = m_load[0] * RvModelAFunction (t, t, Seconds(0.0),
- m_beta);
- }
- else
- {
- // changing load
- for (uint64_t i = 1; i < m_timeStamps.size (); i++)
- {
- calculatedAlpha += m_load[i - 1] * RvModelAFunction (t, m_timeStamps[i],
- m_timeStamps[i - 1],
- m_beta);
- }
- }
-
- return calculatedAlpha;
-}
-
-double
-RvBatteryModel::RvModelAFunction (Time t, Time sk, Time sk_1, double beta)
-{
- NS_LOG_FUNCTION (this << t << sk << sk_1 << beta);
-
- // everything is in minutes
- double firstDelta = (t.GetSeconds () - sk.GetSeconds ()) / 60;
- double secondDelta = (t.GetSeconds () - sk_1.GetSeconds ()) / 60;
- double delta = (sk.GetSeconds () - sk_1.GetSeconds ()) / 60;
-
- double sum = 0.0;
- for (int m = 1; m <= m_numOfTerms; m++)
- {
- double square = beta * beta * m * m;
- sum += (exp (- square * (firstDelta)) - exp (- square * (secondDelta))) / square;
- }
- return delta + 2 * sum;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/rv-battery-model.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,259 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef RV_BATTERY_MODEL_H
-#define RV_BATTERY_MODEL_H
-
-#include "ns3/traced-value.h"
-#include "ns3/nstime.h"
-#include "ns3/event-id.h"
-#include "energy-source.h"
-
-namespace ns3 {
-
-/**
- * \brief Rakhmatov Vrudhula non-linear battery model.
- *
- * This (energy source) model implements an analytical non-linear battery model.
- * It is capable of capturing load capacity and recovery effects of batteries.
- * Batteries are characterized by 2 parameters, alpha and beta, which can both
- * be obtained from the discharge curve of the batteries.
- *
- * The model is developed by Daler Rakhmatov & Sarma Vrudhula in: "Battery
- * Lifetime Prediction for Energy-Aware Computing" and "An Analytical High-Level
- * Battery Model for Use in Energy Management of Portable Electronic Systems".
- *
- * The real-time algorithm is developed by Matthias Handy & Dirk Timmermann in:
- * "Simulation of Mobile Wireless Networks with Accurate Modeling of non-linear
- * battery effects". The real-time algorithm is modified by the authors of this
- * code for improved accuracy and reduced computation (sampling) overhead.
- */
-class RvBatteryModel : public EnergySource
-{
-public:
- static TypeId GetTypeId (void);
- RvBatteryModel ();
- virtual ~RvBatteryModel ();
-
- /**
- * \return Initial energy stored (theoretical capacity) in the battery.
- *
- * Implements GetInitialEnergy.
- */
- virtual double GetInitialEnergy (void) const;
-
- /**
- * \returns Supply voltage at the energy source.
- *
- * Implements GetSupplyVoltage.
- */
- virtual double GetSupplyVoltage (void) const;
-
- /**
- * \return Remaining energy in energy source, in Joules
- *
- * Implements GetRemainingEnergy.
- */
- virtual double GetRemainingEnergy (void);
-
- /**
- * \returns Energy fraction.
- *
- * Implements GetEnergyFraction. For the RV battery model, energy fraction is
- * equivalent to battery level.
- */
- virtual double GetEnergyFraction (void);
-
- /**
- * Implements UpdateEnergySource. This function samples the total load (total
- * current) from all devices to discharge the battery.
- */
- virtual void UpdateEnergySource (void);
-
- /**
- * \param interval Energy update interval.
- *
- * This function sets the interval between each energy update.
- */
- void SetSamplingInterval (Time interval);
-
- /**
- * \returns The interval between each energy update.
- */
- Time GetSamplingInterval (void) const;
-
- /**
- * \brief Sets open circuit voltage of battery.
- *
- * \param voltage Open circuit voltage.
- */
- void SetOpenCircuitVoltage (double voltage);
-
- /**
- * \return Open circuit voltage of battery.
- */
- double GetOpenCircuitVoltage (void) const;
-
- /**
- * \brief Sets cutoff voltage of battery.
- *
- * \param voltage Cutoff voltage.
- */
- void SetCutoffVoltage (double voltage);
-
- /**
- * \returns Cutoff voltage of battery.
- */
- double GetCutoffVoltage (void) const;
-
- /**
- * \brief Sets the alpha value for the battery model.
- *
- * \param alpha Alpha.
- */
- void SetAlpha (double alpha);
-
- /**
- * \returns The alpha value used by the battery model.
- */
- double GetAlpha (void) const;
-
- /**
- * \brief Sets the beta value for the battery model.
- *
- * \param beta Beta.
- */
- void SetBeta (double beta);
-
- /**
- * \returns The beta value used by the battery model.
- */
- double GetBeta (void) const;
-
- /**
- * \returns Battery level [0, 1].
- */
- double GetBatteryLevel (void);
-
- /**
- * \returns Lifetime of the battery.
- */
- Time GetLifetime (void) const;
-
- /**
- * \brief Sets the number of terms of the infinite sum for estimating battery
- * level.
- *
- * \param num Number of terms.
- */
- void SetNumOfTerms (int num);
-
- /**
- * \returns The number of terms of the infinite sum for estimating battery
- * level.
- */
- int GetNumOfTerms (void) const;
-
-private:
- /// Defined in ns3::Object
- virtual void DoStart (void);
-
- /// Defined in ns3::Object
- virtual void DoDispose (void);
-
- /**
- * Handles the remaining energy going to zero event. This function notifies
- * all the energy models aggregated to the node about the energy being
- * depleted. Each energy model is then responsible for its own handler.
- */
- void HandleEnergyDrainedEvent (void);
-
- /**
- * \brief Discharges the battery.
- *
- * \param load Load value (total current form devices, in mA).
- * \param t Time stamp of the load value.
- * \returns Calculated alpha value.
- *
- * Discharge function calculates a value which is then compared to the alpha
- * value to determine if the battery is dead. It will also update the battery
- * level.
- *
- * Note that the load value passed to Discharge has to be in mA.
- */
- double Discharge (double load, Time t);
-
- /**
- * \brief RV model A function.
- *
- * \param t Current time.
- * \param sk Time stamp in array position k
- * \param sk_1 Time stamp in array position k-1
- * \param beta Beta value used by the battery model.
- * \returns Result of A function.
- *
- * This function computes alpha value using the recorded load profile.
- */
- double RvModelAFunction (Time t, Time sk, Time sk_1, double beta);
-
-private:
- double m_openCircuitVoltage;
- double m_cutoffVoltage;
- double m_alpha; // alpha value of RV model, in Coulomb
- double m_beta; // beta value of RV model, in second^-1
-
- double m_previousLoad; // load value (total current) of previous sampling
- std::vector<double> m_load; // load profile
- std::vector<Time> m_timeStamps; // time stamps of load profile
- Time m_lastSampleTime;
- uint64_t m_counter;
-
- int m_numOfTerms; // # of terms for infinite sum in battery level estimation
-
- /**
- * Battery level is defined as: output of Discharge function / alpha value
- *
- * The output of Discharge function is an estimated charge consumption of the
- * battery.
- *
- * The alpha value is the amount of charges stored in the battery, or battery
- * capacity (in Coulomb).
- *
- * When the battery is fully charged (no charge is consumed from the battery)
- * the battery level is 1. When the battery is fully discharged, the battery
- * level is 0.
- *
- * NOTE Note that the definition in Timmermann's paper is the inverse of this
- * definition. In the paper, battery level = 1 when the battery is drained.
- */
- TracedValue<double> m_batteryLevel;
-
- /**
- * (1 / sampling interval) = sampling frequency
- */
- Time m_samplingInterval;
- EventId m_currentSampleEvent;
-
- TracedValue<Time> m_lifetime; // time of death of the battery
-};
-
-} // namespace ns3
-
-#endif /* RV_BATTERY_MODEL_H */
--- a/src/contrib/energy/model/simple-device-energy-model.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,92 +0,0 @@
-#include "ns3/simulator.h"
-#include "ns3/trace-source-accessor.h"
-#include "ns3/energy-source.h"
-#include "simple-device-energy-model.h"
-
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (SimpleDeviceEnergyModel);
-
-TypeId
-SimpleDeviceEnergyModel::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::SimpleDeviceEnergyModel")
- .SetParent<DeviceEnergyModel> ()
- .AddConstructor<SimpleDeviceEnergyModel> ()
- .AddTraceSource ("TotalEnergyConsumption",
- "Total energy consumption of the radio device.",
- MakeTraceSourceAccessor (&SimpleDeviceEnergyModel::m_totalEnergyConsumption))
- ;
- return tid;
-}
-
-SimpleDeviceEnergyModel::SimpleDeviceEnergyModel ()
-{
- m_lastUpdateTime = Seconds (0.0);
- m_actualCurrentA = 0.0;
- m_source = 0;
-}
-
-SimpleDeviceEnergyModel::~SimpleDeviceEnergyModel ()
-{
-}
-
-void
-SimpleDeviceEnergyModel::SetEnergySource (Ptr<EnergySource> source)
-{
- NS_ASSERT (source != NULL);
- m_source = source;
-}
-
-void
-SimpleDeviceEnergyModel::SetNode (Ptr<Node> node)
-{
- NS_ASSERT (node != NULL);
- m_node = node;
-}
-
-Ptr<Node>
-SimpleDeviceEnergyModel::GetNode () const
-{
- return m_node;
-}
-
-double
-SimpleDeviceEnergyModel::GetTotalEnergyConsumption (void) const
-{
- return m_totalEnergyConsumption;
-}
-
-void
-SimpleDeviceEnergyModel::SetCurrentA (double current)
-{
- Time duration = Simulator::Now () - m_lastUpdateTime;
-
- double energyToDecrease = 0.0;
- double supplyVoltage = m_source->GetSupplyVoltage ();
- energyToDecrease = duration.GetSeconds () * current * supplyVoltage;
-
- // update total energy consumption
- m_totalEnergyConsumption += energyToDecrease;
- // update last update time stamp
- m_lastUpdateTime = Simulator::Now ();
- // notify energy source
- m_source->UpdateEnergySource ();
- // update the current drain
- m_actualCurrentA = current;
-}
-
-void
-SimpleDeviceEnergyModel::DoDispose (void)
-{
- m_source = 0;
-}
-
-double
-SimpleDeviceEnergyModel::DoGetCurrentA (void) const
-{
- return m_actualCurrentA;
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/simple-device-energy-model.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-/*
- * simple-device-energy-model.h
- *
- * Created on: 09/ago/2010
- * Author: socket
- */
-#ifndef SIMPLE_DEVICE_ENERGY_MODEL_H_
-#define SIMPLE_DEVICE_ENERGY_MODEL_H_
-
-#include "ns3/device-energy-model.h"
-#include "ns3/nstime.h"
-#include "ns3/traced-value.h"
-
-namespace ns3 {
-
-/**
- *
- * A simple device energy model where current drain can be set by the user.
- *
- * It is supposed to be used as a testing model for energy sources.
- */
-class SimpleDeviceEnergyModel : public DeviceEnergyModel
-{
-public:
- static TypeId GetTypeId (void);
- SimpleDeviceEnergyModel ();
- virtual ~SimpleDeviceEnergyModel ();
-
- /**
- * \brief Sets pointer to node.
- *
- * \param node Pointer to node.
- *
- * Implements DeviceEnergyModel::SetNode.
- */
- virtual void SetNode (Ptr<Node> node);
-
- /**
- * \brief Gets pointer to node.
- *
- * \returns Pointer to node.
- *
- * Implements DeviceEnergyModel::GetNode.
- */
- virtual Ptr<Node> GetNode (void) const;
-
- /**
- * \brief Sets pointer to EnergySouce installed on node.
- *
- * \param source Pointer to EnergySource installed on node.
- *
- * Implements DeviceEnergyModel::SetEnergySource.
- */
- virtual void SetEnergySource (Ptr<EnergySource> source);
-
- /**
- * \returns Total energy consumption of the vehicle.
- *
- * Implements DeviceEnergyModel::GetTotalEnergyConsumption.
- */
- virtual double GetTotalEnergyConsumption (void) const;
-
- /**
- * \param newState New state the device is in.
- *
- * Not implemented
- */
- virtual void ChangeState (int newState)
- {
- }
-
- /**
- * \brief Handles energy depletion.
- *
- * Not implemented
- */
- virtual void HandleEnergyDepletion (void)
- {
- }
-
- /**
- * \param current the current draw of device.
- *
- * Set the actual current draw of the device.
- */
- void SetCurrentA (double current);
-private:
- void DoDispose (void);
-
- /**
- * \returns Current draw of device, at current state.
- *
- * Implements DeviceEnergyModel::GetCurrentA.
- */
- virtual double DoGetCurrentA (void) const;
-
- Time m_lastUpdateTime;
- double m_actualCurrentA;
- Ptr<EnergySource> m_source;
- Ptr<Node> m_node;
- TracedValue<double> m_totalEnergyConsumption;
-};
-
-} // namespace ns3
-
-#endif /* SIMPLE_DEVICE_ENERGY_MODEL_H_ */
--- a/src/contrib/energy/model/wifi-radio-energy-model.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,419 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#include "ns3/log.h"
-#include "ns3/double.h"
-#include "ns3/simulator.h"
-#include "ns3/trace-source-accessor.h"
-#include "energy-source.h"
-#include "wifi-radio-energy-model.h"
-
-NS_LOG_COMPONENT_DEFINE ("WifiRadioEnergyModel");
-
-namespace ns3 {
-
-NS_OBJECT_ENSURE_REGISTERED (WifiRadioEnergyModel);
-
-TypeId
-WifiRadioEnergyModel::GetTypeId (void)
-{
- static TypeId tid = TypeId ("ns3::WifiRadioEnergyModel")
- .SetParent<DeviceEnergyModel> ()
- .AddConstructor<WifiRadioEnergyModel> ()
- .AddAttribute ("IdleCurrentA",
- "The default radio Idle current in Ampere.",
- DoubleValue (0.000426), // idle mode = 426uA
- MakeDoubleAccessor (&WifiRadioEnergyModel::SetIdleCurrentA,
- &WifiRadioEnergyModel::GetIdleCurrentA),
- MakeDoubleChecker<double> ())
- .AddAttribute ("CcaBusyCurrentA",
- "The default radio CCA Busy State current in Ampere.",
- DoubleValue (0.000426), // default to be the same as idle mode
- MakeDoubleAccessor (&WifiRadioEnergyModel::SetCcaBusyCurrentA,
- &WifiRadioEnergyModel::GetCcaBusyCurrentA),
- MakeDoubleChecker<double> ())
- .AddAttribute ("TxCurrentA",
- "The radio Tx current in Ampere.",
- DoubleValue (0.0174), // transmit at 0dBm = 17.4mA
- MakeDoubleAccessor (&WifiRadioEnergyModel::SetTxCurrentA,
- &WifiRadioEnergyModel::GetTxCurrentA),
- MakeDoubleChecker<double> ())
- .AddAttribute ("RxCurrentA",
- "The radio Rx current in Ampere.",
- DoubleValue (0.0197), // receive mode = 19.7mA
- MakeDoubleAccessor (&WifiRadioEnergyModel::SetRxCurrentA,
- &WifiRadioEnergyModel::GetRxCurrentA),
- MakeDoubleChecker<double> ())
- .AddAttribute ("SwitchingCurrentA",
- "The default radio Channel Switch current in Ampere.",
- DoubleValue (0.000426), // default to be the same as idle mode
- MakeDoubleAccessor (&WifiRadioEnergyModel::SetSwitchingCurrentA,
- &WifiRadioEnergyModel::GetSwitchingCurrentA),
- MakeDoubleChecker<double> ())
- .AddTraceSource ("TotalEnergyConsumption",
- "Total energy consumption of the radio device.",
- MakeTraceSourceAccessor (&WifiRadioEnergyModel::m_totalEnergyConsumption))
- ;
- return tid;
-}
-
-WifiRadioEnergyModel::WifiRadioEnergyModel ()
-{
- NS_LOG_FUNCTION (this);
- m_currentState = WifiPhy::IDLE; // initially IDLE
- m_lastUpdateTime = Seconds (0.0);
- m_energyDepletionCallback.Nullify ();
- m_source = NULL;
- // set callback for WifiPhy listener
- m_listener = new WifiRadioEnergyModelPhyListener;
- m_listener->SetChangeStateCallback (MakeCallback (&DeviceEnergyModel::ChangeState, this));
-}
-
-WifiRadioEnergyModel::~WifiRadioEnergyModel ()
-{
- delete m_listener;
-}
-
-void
-WifiRadioEnergyModel::SetEnergySource (Ptr<EnergySource> source)
-{
- NS_LOG_FUNCTION (this << source);
- NS_ASSERT (source != NULL);
- m_source = source;
-}
-
-double
-WifiRadioEnergyModel::GetTotalEnergyConsumption (void) const
-{
- return m_totalEnergyConsumption;
-}
-
-double
-WifiRadioEnergyModel::GetIdleCurrentA (void) const
-{
- return m_idleCurrentA;
-}
-
-void
-WifiRadioEnergyModel::SetIdleCurrentA (double idleCurrentA)
-{
- NS_LOG_FUNCTION (this << idleCurrentA);
- m_idleCurrentA = idleCurrentA;
-}
-
-double
-WifiRadioEnergyModel::GetCcaBusyCurrentA (void) const
-{
- return m_ccaBusyCurrentA;
-}
-
-void
-WifiRadioEnergyModel::SetCcaBusyCurrentA (double CcaBusyCurrentA)
-{
- NS_LOG_FUNCTION (this << CcaBusyCurrentA);
- m_ccaBusyCurrentA = CcaBusyCurrentA;
-}
-
-double
-WifiRadioEnergyModel::GetTxCurrentA (void) const
-{
- return m_txCurrentA;
-}
-
-void
-WifiRadioEnergyModel::SetTxCurrentA (double txCurrentA)
-{
- NS_LOG_FUNCTION (this << txCurrentA);
- m_txCurrentA = txCurrentA;
-}
-
-double
-WifiRadioEnergyModel::GetRxCurrentA (void) const
-{
- return m_rxCurrentA;
-}
-
-void
-WifiRadioEnergyModel::SetRxCurrentA (double rxCurrentA)
-{
- NS_LOG_FUNCTION (this << rxCurrentA);
- m_rxCurrentA = rxCurrentA;
-}
-
-double
-WifiRadioEnergyModel::GetSwitchingCurrentA (void) const
-{
- return m_switchingCurrentA;
-}
-
-void
-WifiRadioEnergyModel::SetSwitchingCurrentA (double switchingCurrentA)
-{
- NS_LOG_FUNCTION (this << switchingCurrentA);
- m_switchingCurrentA = switchingCurrentA;
-}
-
-
-WifiPhy::State
-WifiRadioEnergyModel::GetCurrentState (void) const
-{
- return m_currentState;
-}
-
-void
-WifiRadioEnergyModel::SetEnergyDepletionCallback (
- WifiRadioEnergyDepletionCallback callback)
-{
- NS_LOG_FUNCTION (this);
- if (callback.IsNull ())
- {
- NS_LOG_DEBUG ("WifiRadioEnergyModel:Setting NULL energy depletion callback!");
- }
- m_energyDepletionCallback = callback;
-}
-
-void
-WifiRadioEnergyModel::ChangeState (int newState)
-{
- NS_LOG_FUNCTION (this << newState);
-
- Time duration = Simulator::Now () - m_lastUpdateTime;
- NS_ASSERT (duration.GetNanoSeconds () >= 0); // check if duration is valid
-
- // energy to decrease = current * voltage * time
- double energyToDecrease = 0.0;
- double supplyVoltage = m_source->GetSupplyVoltage ();
- switch (m_currentState)
- {
- case WifiPhy::IDLE:
- energyToDecrease = duration.GetSeconds () * m_idleCurrentA * supplyVoltage;
- break;
- case WifiPhy::CCA_BUSY:
- energyToDecrease = duration.GetSeconds () * m_ccaBusyCurrentA * supplyVoltage;
- break;
- case WifiPhy::TX:
- energyToDecrease = duration.GetSeconds () * m_txCurrentA * supplyVoltage;
- break;
- case WifiPhy::RX:
- energyToDecrease = duration.GetSeconds () * m_rxCurrentA * supplyVoltage;
- break;
- case WifiPhy::SWITCHING:
- energyToDecrease = duration.GetSeconds () * m_switchingCurrentA * supplyVoltage;
- break;
- default:
- NS_FATAL_ERROR ("WifiRadioEnergyModel:Undefined radio state: " << m_currentState);
- }
-
- // update total energy consumption
- m_totalEnergyConsumption += energyToDecrease;
-
- // update last update time stamp
- m_lastUpdateTime = Simulator::Now ();
-
- // notify energy source
- m_source->UpdateEnergySource ();
-
- // update current state & last update time stamp
- SetWifiRadioState ((WifiPhy::State) newState);
-
- // some debug message
- NS_LOG_DEBUG ("WifiRadioEnergyModel:Total energy consumption is " <<
- m_totalEnergyConsumption << "J");
-}
-
-void
-WifiRadioEnergyModel::HandleEnergyDepletion (void)
-{
- NS_LOG_DEBUG ("WifiRadioEnergyModel:Energy is depleted!");
- // invoke energy depletion callback, if set.
- if (!m_energyDepletionCallback.IsNull ())
- {
- m_energyDepletionCallback ();
- }
-}
-
-WifiRadioEnergyModelPhyListener *
-WifiRadioEnergyModel::GetPhyListener (void)
-{
- return m_listener;
-}
-
-/*
- * Private functions start here.
- */
-
-void
-WifiRadioEnergyModel::DoDispose (void)
-{
- m_source = NULL;
- m_energyDepletionCallback.Nullify ();
-}
-
-double
-WifiRadioEnergyModel::DoGetCurrentA (void) const
-{
- switch (m_currentState)
- {
- case WifiPhy::IDLE:
- return m_idleCurrentA;
- case WifiPhy::CCA_BUSY:
- return m_ccaBusyCurrentA;
- case WifiPhy::TX:
- return m_txCurrentA;
- case WifiPhy::RX:
- return m_rxCurrentA;
- case WifiPhy::SWITCHING:
- return m_switchingCurrentA;
- default:
- NS_FATAL_ERROR ("WifiRadioEnergyModel:Undefined radio state:" << m_currentState);
- }
-}
-
-void
-WifiRadioEnergyModel::SetWifiRadioState (const WifiPhy::State state)
-{
- NS_LOG_FUNCTION (this << state);
- m_currentState = state;
- std::string stateName;
- switch (state)
- {
- case WifiPhy::IDLE:
- stateName = "IDLE";
- break;
- case WifiPhy::CCA_BUSY:
- stateName = "CCA_BUSY";
- break;
- case WifiPhy::TX:
- stateName = "TX";
- break;
- case WifiPhy::RX:
- stateName = "RX";
- break;
- case WifiPhy::SWITCHING:
- stateName = "SWITCHING";
- break;
- }
- NS_LOG_DEBUG ("WifiRadioEnergyModel:Switching to state: " << stateName <<
- " at time = " << Simulator::Now ());
-}
-
-// -------------------------------------------------------------------------- //
-
-WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener ()
-{
- m_changeStateCallback.Nullify ();
-}
-
-WifiRadioEnergyModelPhyListener::~WifiRadioEnergyModelPhyListener ()
-{
-}
-
-void
-WifiRadioEnergyModelPhyListener::SetChangeStateCallback (DeviceEnergyModel::ChangeStateCallback callback)
-{
- NS_ASSERT (!callback.IsNull ());
- m_changeStateCallback = callback;
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifyRxStart (Time duration)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::RX);
- m_switchToIdleEvent.Cancel ();
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifyRxEndOk (void)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::IDLE);
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifyRxEndError (void)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::IDLE);
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifyTxStart (Time duration)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::TX);
- // schedule changing state back to IDLE after TX duration
- m_switchToIdleEvent.Cancel ();
- m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifyMaybeCcaBusyStart (Time duration)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::CCA_BUSY);
- // schedule changing state back to IDLE after CCA_BUSY duration
- m_switchToIdleEvent.Cancel ();
- m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
-}
-
-void
-WifiRadioEnergyModelPhyListener::NotifySwitchingStart (Time duration)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::SWITCHING);
- // schedule changing state back to IDLE after CCA_BUSY duration
- m_switchToIdleEvent.Cancel ();
- m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
-}
-
-/*
- * Private function state here.
- */
-
-void
-WifiRadioEnergyModelPhyListener::SwitchToIdle (void)
-{
- if (m_changeStateCallback.IsNull ())
- {
- NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
- }
- m_changeStateCallback (WifiPhy::IDLE);
-}
-
-} // namespace ns3
--- a/src/contrib/energy/model/wifi-radio-energy-model.h Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,261 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
- */
-
-#ifndef WIFI_RADIO_ENERGY_MODEL_H
-#define WIFI_RADIO_ENERGY_MODEL_H
-
-#include "ns3/device-energy-model.h"
-#include "ns3/nstime.h"
-#include "ns3/event-id.h"
-#include "ns3/traced-value.h"
-#include "ns3/wifi-phy.h"
-
-namespace ns3 {
-
-/**
- * A WifiPhy listener class for notifying the WifiRadioEnergyModel of Wifi radio
- * state change.
- */
-class WifiRadioEnergyModelPhyListener : public WifiPhyListener
-{
-public:
- WifiRadioEnergyModelPhyListener ();
- virtual ~WifiRadioEnergyModelPhyListener ();
-
- /**
- * \brief Sets the change state callback. Used by helper class.
- *
- * \param callback Change state callback.
- */
- void SetChangeStateCallback (DeviceEnergyModel::ChangeStateCallback callback);
-
- /**
- * \brief Switches the WifiRadioEnergyModel to RX state.
- *
- * \param duration the expected duration of the packet reception.
- *
- * Defined in ns3::WifiPhyListener
- */
- virtual void NotifyRxStart (Time duration);
-
- /**
- * \brief Switches the WifiRadioEnergyModel back to IDLE state.
- *
- * Defined in ns3::WifiPhyListener
- *
- * Note that for the WifiRadioEnergyModel, the behavior of the function is the
- * same as NotifyRxEndError.
- */
- virtual void NotifyRxEndOk (void);
-
- /**
- * \brief Switches the WifiRadioEnergyModel back to IDLE state.
- *
- * Defined in ns3::WifiPhyListener
- *
- * Note that for the WifiRadioEnergyModel, the behavior of the function is the
- * same as NotifyRxEndOk.
- */
- virtual void NotifyRxEndError (void);
-
- /**
- * \brief Switches the WifiRadioEnergyModel to TX state and switches back to
- * IDLE after TX duration.
- *
- * \param duration the expected transmission duration.
- *
- * Defined in ns3::WifiPhyListener
- */
- virtual void NotifyTxStart (Time duration);
-
- /**
- * \param duration the expected busy duration.
- *
- * Defined in ns3::WifiPhyListener
- */
- virtual void NotifyMaybeCcaBusyStart (Time duration);
-
- /**
- * \param duration the expected channel switching duration.
- *
- * Defined in ns3::WifiPhyListener
- */
- virtual void NotifySwitchingStart (Time duration);
-
-private:
- /**
- * A helper function that makes scheduling m_changeStateCallback possible.
- */
- void SwitchToIdle (void);
-
-private:
- /**
- * Change state callback used to notify the WifiRadioEnergyModel of a state
- * change.
- */
- DeviceEnergyModel::ChangeStateCallback m_changeStateCallback;
-
- EventId m_switchToIdleEvent;
-};
-
-// -------------------------------------------------------------------------- //
-
-/**
- * \brief A WiFi radio energy model.
- *
- * 4 states are defined for the radio: TX, RX, IDLE, SLEEP. Default state is
- * IDLE.
- * The different types of transactions that are defined are:
- * 1. Tx: State goes from IDLE to TX, radio is in TX state for TX_duration,
- * then state goes from TX to IDLE.
- * 2. Rx: State goes from IDLE to RX, radio is in RX state for RX_duration,
- * then state goes from RX to IDLE.
- * 3. Go_to_Sleep: State goes from IDLE to SLEEP.
- * 4. End_of_Sleep: State goes from SLEEP to IDLE.
- * The class keeps track of what state the radio is currently in.
- *
- * Energy calculation: For each transaction, this model notifies EnergySource
- * object. The EnergySource object will query this model for the total current.
- * Then the EnergySource object uses the total current to calculate energy.
- *
- * Default values for power consumption are based on CC2420 radio chip, with
- * supply voltage as 2.5V and currents as 17.4 mA (TX), 18.8 mA (RX), 20 uA
- * (sleep) and 426 uA (idle).
- */
-class WifiRadioEnergyModel : public DeviceEnergyModel
-{
-public:
- /**
- * Callback type for energy depletion handling.
- */
- typedef Callback<void> WifiRadioEnergyDepletionCallback;
-
-public:
- static TypeId GetTypeId (void);
- WifiRadioEnergyModel ();
- virtual ~WifiRadioEnergyModel ();
-
- /**
- * \brief Sets pointer to EnergySouce installed on node.
- *
- * \param source Pointer to EnergySource installed on node.
- *
- * Implements DeviceEnergyModel::SetEnergySource.
- */
- virtual void SetEnergySource (Ptr<EnergySource> source);
-
- /**
- * \returns Total energy consumption of the wifi device.
- *
- * Implements DeviceEnergyModel::GetTotalEnergyConsumption.
- */
- virtual double GetTotalEnergyConsumption (void) const;
-
- // Setter & getters for state power consumption.
- double GetIdleCurrentA (void) const;
- void SetIdleCurrentA (double idleCurrentA);
- double GetCcaBusyCurrentA (void) const;
- void SetCcaBusyCurrentA (double ccaBusyCurrentA);
- double GetTxCurrentA (void) const;
- void SetTxCurrentA (double txCurrentA);
- double GetRxCurrentA (void) const;
- void SetRxCurrentA (double rxCurrentA);
- double GetSwitchingCurrentA (void) const;
- void SetSwitchingCurrentA (double switchingCurrentA);
-
- /**
- * \returns Current state.
- */
- WifiPhy::State GetCurrentState (void) const;
-
- /**
- * \param callback Callback function.
- *
- * Sets callback for energy depletion handling.
- */
- void SetEnergyDepletionCallback (WifiRadioEnergyDepletionCallback callback);
-
- /**
- * \brief Changes state of the WifiRadioEnergyMode.
- *
- * \param newState New state the wifi radio is in.
- *
- * Implements DeviceEnergyModel::ChangeState.
- */
- virtual void ChangeState (int newState);
-
- /**
- * \brief Handles energy depletion.
- *
- * Implements DeviceEnergyModel::HandleEnergyDepletion
- */
- virtual void HandleEnergyDepletion (void);
-
- /**
- * \returns Pointer to the PHY listener.
- */
- WifiRadioEnergyModelPhyListener * GetPhyListener (void);
-
-
-private:
- void DoDispose (void);
-
- /**
- * \returns Current draw of device, at current state.
- *
- * Implements DeviceEnergyModel::GetCurrentA.
- */
- virtual double DoGetCurrentA (void) const;
-
- /**
- * \param currentState New state the radio device is currently in.
- *
- * Sets current state. This function is private so that only the energy model
- * can change its own state.
- */
- void SetWifiRadioState (const WifiPhy::State state);
-
-private:
- Ptr<EnergySource> m_source;
-
- // Member variables for current draw in different radio modes.
- double m_txCurrentA;
- double m_rxCurrentA;
- double m_idleCurrentA;
- double m_ccaBusyCurrentA;
- double m_switchingCurrentA;
-
- // This variable keeps track of the total energy consumed by this model.
- TracedValue<double> m_totalEnergyConsumption;
-
- // State variables.
- WifiPhy::State m_currentState; // current state the radio is in
- Time m_lastUpdateTime; // time stamp of previous energy update
-
- // Energy depletion callback
- WifiRadioEnergyDepletionCallback m_energyDepletionCallback;
-
- // WifiPhy listener
- WifiRadioEnergyModelPhyListener *m_listener;
-};
-
-} // namespace ns3
-
-#endif /* WIFI_RADIO_ENERGY_MODEL_H */
--- a/src/contrib/energy/test/basic-energy-model-test.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,390 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: He Wu <mdzz@u.washington.edu>
- */
-
-#include "ns3/basic-energy-source.h"
-#include "ns3/wifi-radio-energy-model.h"
-#include "ns3/basic-energy-source-helper.h"
-#include "ns3/wifi-radio-energy-model-helper.h"
-#include "ns3/energy-source-container.h"
-#include "ns3/device-energy-model-container.h"
-#include "ns3/log.h"
-#include "ns3/test.h"
-#include "ns3/node.h"
-#include "ns3/simulator.h"
-#include "ns3/double.h"
-#include "ns3/config.h"
-#include "ns3/string.h"
-#include "ns3/yans-wifi-helper.h"
-#include "ns3/nqos-wifi-mac-helper.h"
-#include <math.h>
-
-using namespace ns3;
-
-NS_LOG_COMPONENT_DEFINE ("BasicEnergyModelTestSuite");
-
-/**
- * Test case of update remaining energy for BasicEnergySource and
- * WifiRadioEnergyModel.
- */
-class BasicEnergyUpdateTest : public TestCase
-{
-public:
- BasicEnergyUpdateTest ();
- virtual ~BasicEnergyUpdateTest ();
-
-private:
- void DoRun (void);
-
- /**
- * \param state Radio state to switch to.
- * \return False if no error occurs.
- *
- * Runs simulation for a while, check if final state & remaining energy is
- * correctly updated.
- */
- bool StateSwitchTest (WifiPhy::State state);
-
-private:
- double m_timeS; // in seconds
- double m_tolerance; // tolerance for power estimation
-
- ObjectFactory m_energySource;
- ObjectFactory m_deviceEnergyModel;
-};
-
-BasicEnergyUpdateTest::BasicEnergyUpdateTest ()
- : TestCase ("Basic energy model update remaining energy test case")
-{
- m_timeS = 15.5; // idle for 15 seconds before changing state
- m_tolerance = 1.0e-13; //
-}
-
-BasicEnergyUpdateTest::~BasicEnergyUpdateTest ()
-{
-}
-
-void
-BasicEnergyUpdateTest::DoRun (void)
-{
- // set types
- m_energySource.SetTypeId ("ns3::BasicEnergySource");
- m_deviceEnergyModel.SetTypeId ("ns3::WifiRadioEnergyModel");
-
- // run state switch tests
- NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::IDLE), false, "Problem with state switch test (WifiPhy idle).");
- NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::CCA_BUSY), false, "Problem with state switch test (WifiPhy cca busy).");
- NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::TX), false, "Problem with state switch test (WifiPhy tx).");
- NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::RX), false, "Problem with state switch test (WifiPhy rx).");
- NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::SWITCHING), false, "Problem with state switch test (WifiPhy switching).");
-}
-
-bool
-BasicEnergyUpdateTest::StateSwitchTest (WifiPhy::State state)
-{
- // create node
- Ptr<Node> node = CreateObject<Node> ();
-
- // create energy source
- Ptr<BasicEnergySource> source = m_energySource.Create<BasicEnergySource> ();
- // aggregate energy source to node
- node->AggregateObject (source);
-
- // create device energy model
- Ptr<WifiRadioEnergyModel> model =
- m_deviceEnergyModel.Create<WifiRadioEnergyModel> ();
- // set energy source pointer
- model->SetEnergySource (source);
- // add device energy model to model list in energy source
- source->AppendDeviceEnergyModel (model);
-
- // retrieve device energy model from energy source
- DeviceEnergyModelContainer models =
- source->FindDeviceEnergyModels ("ns3::WifiRadioEnergyModel");
- // check list
- NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (false, (models.GetN () == 0), "Model list is empty!");
- // get pointer
- Ptr<WifiRadioEnergyModel> devModel =
- DynamicCast<WifiRadioEnergyModel> (models.Get (0));
- // check pointer
- NS_TEST_ASSERT_MSG_NE_RETURNS_BOOL (0, devModel, "NULL pointer to device model!");
-
- /*
- * The radio will stay IDLE for m_timeS seconds. Then it will switch into a
- * different state.
- */
-
- // schedule change of state
- Simulator::Schedule (Seconds (m_timeS),
- &WifiRadioEnergyModel::ChangeState, devModel, state);
-
- // Calculate remaining energy at simulation stop time
- Simulator::Schedule (Seconds (m_timeS * 2),
- &BasicEnergySource::UpdateEnergySource, source);
-
- double timeDelta = 0.000000001; // 1 nanosecond
- // run simulation; stop just after last scheduled event
- Simulator::Stop (Seconds (m_timeS * 2 + timeDelta));
- Simulator::Run ();
-
- // energy = current * voltage * time
-
- // calculate idle power consumption
- double estRemainingEnergy = source->GetInitialEnergy ();
- double voltage = source->GetSupplyVoltage ();
- estRemainingEnergy -= devModel->GetIdleCurrentA () * voltage * m_timeS;
-
- /*
- * Manually calculate the number of periodic updates performed by the source.
- * This is to check if the periodic updates are performed correctly.
- */
- double actualTime = m_timeS;
- actualTime /= source->GetEnergyUpdateInterval ().GetSeconds ();
- actualTime = floor (actualTime); // rounding for update interval
- actualTime *= source->GetEnergyUpdateInterval ().GetSeconds ();
-
- // calculate new state power consumption
- double current = 0.0;
- switch (state)
- {
- case WifiPhy::IDLE:
- current = devModel->GetIdleCurrentA ();
- break;
- case WifiPhy::CCA_BUSY:
- current = devModel->GetCcaBusyCurrentA ();
- break;
- case WifiPhy::TX:
- current = devModel->GetTxCurrentA ();
- break;
- case WifiPhy::RX:
- current = devModel->GetRxCurrentA ();
- break;
- case WifiPhy::SWITCHING:
- current = devModel->GetSwitchingCurrentA ();
- break;
- default:
- NS_FATAL_ERROR ("Undefined radio state: " << state);
- break;
- }
- estRemainingEnergy -= current * voltage * m_timeS;
-
- // obtain remaining energy from source
- double remainingEnergy = source->GetRemainingEnergy ();
- NS_LOG_UNCOND ("Remaining energy is " << remainingEnergy);
- NS_LOG_UNCOND ("Estimated remaining energy is " << estRemainingEnergy);
- NS_LOG_UNCOND ("Difference is " << estRemainingEnergy - remainingEnergy);
- // check remaining energy
- NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (remainingEnergy, estRemainingEnergy, m_tolerance,
- "Incorrect remaining energy!");
-
- // obtain radio state
- WifiPhy::State endState = devModel->GetCurrentState ();
- NS_LOG_UNCOND ("Radio state is " << endState);
- // check end state
- NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (endState, state, "Incorrect end state!");
- Simulator::Destroy ();
-
- return false; // no error
-}
-
-// -------------------------------------------------------------------------- //
-
-/**
- * Test case of energy depletion handling for BasicEnergySource and
- * WifiRadioEnergyModel.
- */
-class BasicEnergyDepletionTest : public TestCase
-{
-public:
- BasicEnergyDepletionTest ();
- virtual ~BasicEnergyDepletionTest ();
-
-private:
- void DoRun (void);
-
- /**
- * Callback invoked when energy is drained from source.
- */
- void DepletionHandler (void);
-
- /**
- * \param simTimeS Simulation time, in seconds.
- * \param updateIntervalS Device model update interval, in seconds.
- * \return False if all is good.
- *
- * Runs simulation with specified simulation time and update interval.
- */
- bool DepletionTestCase (double simTimeS, double updateIntervalS);
-
-private:
- int m_numOfNodes; // number of nodes in simulation
- int m_callbackCount; // counter for # of callbacks invoked
- double m_simTimeS; // maximum simulation time, in seconds
- double m_timeStepS; // simulation time step size, in seconds
- double m_updateIntervalS; // update interval of each device model
-
-};
-
-BasicEnergyDepletionTest::BasicEnergyDepletionTest ()
- : TestCase ("Basic energy model energy depletion test case")
-{
- m_numOfNodes = 10;
- m_callbackCount = 0;
- m_simTimeS = 4.5;
- m_timeStepS = 0.5;
- m_updateIntervalS = 1.5;
-}
-
-BasicEnergyDepletionTest::~BasicEnergyDepletionTest ()
-{
-}
-
-void
-BasicEnergyDepletionTest::DoRun (void)
-{
- /*
- * Run simulation with different simulation time and update interval.
- */
- for (double simTimeS = 0.0; simTimeS <= m_simTimeS; simTimeS += m_timeStepS)
- {
- for (double updateIntervalS = 0.5; updateIntervalS <= m_updateIntervalS;
- updateIntervalS += m_timeStepS)
- {
- NS_TEST_ASSERT_MSG_EQ (DepletionTestCase (simTimeS, updateIntervalS), false, "Depletion test case problem.");
- // reset callback count
- m_callbackCount = 0;
- }
- }
-}
-
-void
-BasicEnergyDepletionTest::DepletionHandler (void)
-{
- m_callbackCount++;
-}
-
-bool
-BasicEnergyDepletionTest::DepletionTestCase (double simTimeS,
- double updateIntervalS)
-{
- // create node
- NodeContainer c;
- c.Create (m_numOfNodes);
-
- std::string phyMode ("DsssRate1Mbps");
-
- // disable fragmentation for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
- StringValue ("2200"));
- // turn off RTS/CTS for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
- StringValue ("2200"));
- // Fix non-unicast data rate to be the same as that of unicast
- Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
- StringValue (phyMode));
-
- // install YansWifiPhy
- WifiHelper wifi;
- wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
-
- YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
- /*
- * This is one parameter that matters when using FixedRssLossModel, set it to
- * zero; otherwise, gain will be added.
- */
- wifiPhy.Set ("RxGain", DoubleValue (0));
- // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
- wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
-
- YansWifiChannelHelper wifiChannel ;
- wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
- wifiPhy.SetChannel (wifiChannel.Create ());
-
- // Add a non-QoS upper MAC, and disable rate control
- NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
- wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
- "DataMode", StringValue(phyMode),
- "ControlMode", StringValue(phyMode));
- // Set it to ad-hoc mode
- wifiMac.SetType ("ns3::AdhocWifiMac");
- NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
-
- /*
- * Create and install energy source and a single basic radio energy model on
- * the node using helpers.
- */
- // source helper
- BasicEnergySourceHelper basicSourceHelper;
- // set energy to 0 so that we deplete energy at the beginning of simulation
- basicSourceHelper.Set ("BasicEnergySourceInitialEnergyJ", DoubleValue (0.0));
- // set update interval
- Time updateInterval = Seconds (1.0);
- basicSourceHelper.Set ("PeriodicEnergyUpdateInterval",
- TimeValue (Seconds (updateIntervalS)));
- // install source
- EnergySourceContainer sources = basicSourceHelper.Install (c);
-
- // device energy model helper
- WifiRadioEnergyModelHelper radioEnergyHelper;
- // set energy depletion callback
- WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback =
- MakeCallback (&BasicEnergyDepletionTest::DepletionHandler, this);
- radioEnergyHelper.SetDepletionCallback (callback);
- // install on node
- DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
-
- // run simulation
- Simulator::Stop (Seconds (simTimeS));
- Simulator::Run ();
- Simulator::Destroy ();
-
- NS_LOG_UNCOND ("Simulation time = " << simTimeS << "s");
- NS_LOG_UNCOND ("Update interval = " << updateIntervalS << "s");
- NS_LOG_UNCOND ("Expected callback count is " << m_numOfNodes);
- NS_LOG_UNCOND ("Actual callback count is " << m_callbackCount);
-
- // check result, call back should only be invoked once
- NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (m_numOfNodes, m_callbackCount, "Not all callbacks are invoked!");
-
- return false;
-}
-
-// -------------------------------------------------------------------------- //
-
-/**
- * Unit test suite for energy model. Although the test suite involves 2 modules
- * it is still considered a unit test. Because a DeviceEnergyModel cannot live
- * without an EnergySource.
- */
-class BasicEnergyModelTestSuite : public TestSuite
-{
-public:
- BasicEnergyModelTestSuite ();
-};
-
-BasicEnergyModelTestSuite::BasicEnergyModelTestSuite ()
- : TestSuite ("basic-energy-model", UNIT)
-{
- AddTestCase (new BasicEnergyUpdateTest);
- AddTestCase (new BasicEnergyDepletionTest);
-}
-
-// create an instance of the test suite
-static BasicEnergyModelTestSuite g_energyModelTestSuite;
-
--- a/src/contrib/energy/test/examples-to-run.py Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#! /usr/bin/env python
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-# A list of C++ examples to run in order to ensure that they remain
-# buildable and runnable over time. Each tuple in the list contains
-#
-# (example_name, do_run, do_valgrind_run).
-#
-# See test.py for more information.
-cpp_examples = []
-
-# A list of Python examples to run in order to ensure that they remain
-# runnable over time. Each tuple in the list contains
-#
-# (example_name, do_run).
-#
-# See test.py for more information.
-python_examples = []
--- a/src/contrib/energy/test/li-ion-energy-source-test.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Andrea Sacco
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andrea Sacco <andrea.sacco85@gmail.com>
- */
-
-#include "ns3/log.h"
-#include "ns3/test.h"
-#include "ns3/simple-device-energy-model.h"
-#include "ns3/li-ion-energy-source.h"
-#include "ns3/node.h"
-#include "ns3/simulator.h"
-
-namespace ns3 {
-
-NS_LOG_COMPONENT_DEFINE ("LiIonEnergySourceTestSuite");
-
-class LiIonEnergyTestCase : public TestCase
-{
-public:
- LiIonEnergyTestCase ();
- ~LiIonEnergyTestCase ();
-
- void DoRun (void);
-
- double m_simTime;
- Ptr<Node> m_node;
-};
-
-LiIonEnergyTestCase::LiIonEnergyTestCase ()
- : TestCase ("Li-Ion energy source test case")
-{
-}
-
-LiIonEnergyTestCase::~LiIonEnergyTestCase ()
-{
- m_node = 0;
-}
-
-void
-LiIonEnergyTestCase::DoRun ()
-{
- m_node = CreateObject<Node> ();
-
- Ptr<SimpleDeviceEnergyModel> sem = CreateObject<SimpleDeviceEnergyModel> ();
- Ptr<LiIonEnergySource> es = CreateObject<LiIonEnergySource> ();
-
- es->SetNode (m_node);
- sem->SetEnergySource (es);
- es->AppendDeviceEnergyModel (sem);
- m_node->AggregateObject (es);
-
- Time now = Simulator::Now ();
-
- // discharge at 2.33 A for 1700 seconds
- sem->SetCurrentA (2.33);
- now += Seconds (1701);
-
- Simulator::Stop (now);
- Simulator::Run ();
- Simulator::Destroy ();
-
- NS_TEST_ASSERT_MSG_EQ_TOL (es->GetSupplyVoltage (), 3.6, 1.0e-3,
- "Incorrect consumed energy!");
-}
-
-class LiIonEnergySourceTestSuite : public TestSuite
-{
-public:
- LiIonEnergySourceTestSuite ();
-};
-
-LiIonEnergySourceTestSuite::LiIonEnergySourceTestSuite ()
- : TestSuite ("li-ion-energy-source", UNIT)
-{
- AddTestCase (new LiIonEnergyTestCase);
-}
-
-// create an instance of the test suite
-static LiIonEnergySourceTestSuite g_liIonEnergySourceTestSuite;
-
-} // namespace ns3
--- a/src/contrib/energy/test/rv-battery-model-test.cc Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,890 +0,0 @@
-/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
-/*
- * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: He Wu <mdzz@u.washington.edu>
- */
-
-#include "ns3/rv-battery-model.h"
-#include "ns3/wifi-radio-energy-model.h"
-#include "ns3/rv-battery-model-helper.h"
-#include "ns3/wifi-radio-energy-model-helper.h"
-#include "ns3/energy-source-container.h"
-#include "ns3/device-energy-model-container.h"
-#include "ns3/log.h"
-#include "ns3/test.h"
-#include "ns3/node.h"
-#include "ns3/simulator.h"
-#include "ns3/double.h"
-#include "ns3/config.h"
-#include "ns3/string.h"
-#include "ns3/yans-wifi-helper.h"
-#include "ns3/nqos-wifi-mac-helper.h"
-#include <math.h>
-
-using namespace ns3;
-
-NS_LOG_COMPONENT_DEFINE ("RvBatteryModelTestSuite");
-
-/**
- * Test case of update remaining energy for RvBatteryModel and
- * WifiRadioEnergyModel.
- */
-class BatteryLifetimeTest : public TestCase
-{
-public:
- BatteryLifetimeTest ();
- virtual ~BatteryLifetimeTest ();
-
-private:
- /**
- * Creates load profiles according to "Battery Lifetime Prediction for Energy-
- * Aware Computing" paper.
- */
- void CreateLoadProfiles (void);
-
- /**
- * \returns False if no error occurs.
- *
- * Runs test.
- */
- void DoRun (void);
-
- /**
- * \param load Load value, in Amperes (A).
- * \param expLifetime Expected lifetime.
- * \return False if no error occurs.
- *
- * Runs simulation with constant load and checks the battery lifetime with
- * known results.
- */
- bool ConstantLoadTest (double load, Time expLifetime);
-
- /**
- * \param loads Load profile.
- * \param timeStamps Time stamps.
- * \param expLifeTime Expected lifetime.
- * \returns False if no error occurs.
- *
- * Runs simulation with variable load and checks the battery lifetime with
- * known results.
- */
- bool VariableLoadTest (std::vector<double> loads,
- std::vector<Time> timeStamps,
- Time expLifetime);
-
-private:
- typedef struct LoadProfile
- {
- std::vector<double> loads;
- std::vector<Time> timeStamps;
- Time itsyLifetime;
- Time dualFoilLifeTime;
- } LoadProfile;
-
-private:
- std::vector<LoadProfile> m_loadProfiles;
- double m_alpha;
- double m_beta;
-};
-
-BatteryLifetimeTest::BatteryLifetimeTest ()
- : TestCase ("RV battery model battery lifetime test case.")
-{
- // Itsy battery
- m_alpha = 35220;
- m_beta = 0.637;
-}
-
-BatteryLifetimeTest::~BatteryLifetimeTest ()
-{
-}
-
-void
-BatteryLifetimeTest::CreateLoadProfiles (void)
-{
- // create set of load profiles
- LoadProfile profile;
-
- std::vector<double> loads;
- std::vector<Time> timeStamps;
-
- // C1
- loads.push_back (0.628);
- loads.push_back (0);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (19.5 * 60));
- timeStamps.push_back (Seconds (26.0 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
- profile.dualFoilLifeTime = Seconds (36.2 * 60); // 36.2 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C2
- loads.push_back (0.4947);
- loads.push_back (0);
- loads.push_back (0.4947);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (31.0 * 60));
- timeStamps.push_back (Seconds (41.3 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (73.9 * 60); // 73.9 minutes
- profile.dualFoilLifeTime = Seconds (55.8 * 60); // 55.8 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C3
- loads.push_back (0.4256);
- loads.push_back (0);
- loads.push_back (0.4256);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (41.0 * 60));
- timeStamps.push_back (Seconds (54.6 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (88.8 * 60); // 88.8 minutes
- profile.dualFoilLifeTime = Seconds (71.8 * 60); // 71.8 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C4
- loads.push_back (0.2923);
- loads.push_back (0);
- loads.push_back (0.2923);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (74.6 * 60));
- timeStamps.push_back (Seconds (99.5 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (137.8 * 60); // 137.8 minutes
- profile.dualFoilLifeTime = Seconds (124.9 * 60); // 124.9 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C5
- loads.push_back (0.2227);
- loads.push_back (0);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (105.7 * 60));
- timeStamps.push_back (Seconds (140.9 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (185.8 * 60); // 185.8 minutes
- profile.dualFoilLifeTime = Seconds (176.7 * 60); // 176.7 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C6
- loads.push_back (0.628);
- loads.push_back (0);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (19.5 * 60));
- timeStamps.push_back (Seconds (29.9 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (58.9 * 60); // 58.9 minutes
- profile.dualFoilLifeTime = Seconds (41.0 * 60); // 41.0 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C7
- loads.push_back (0.628);
- loads.push_back (0);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (19.5 * 60));
- timeStamps.push_back (Seconds (22.1 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (51.1 * 60); // 51.1 minutes
- profile.dualFoilLifeTime = Seconds (30.8 * 60); // 30.8 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C8
- loads.push_back (0.628);
- loads.push_back (0);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (23.4 * 60));
- timeStamps.push_back (Seconds (29.9 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
- profile.dualFoilLifeTime = Seconds (37.4 * 60); // 37.4 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C9
- loads.push_back (0.628);
- loads.push_back (0);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (15.6 * 60));
- timeStamps.push_back (Seconds (22.1 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
- profile.dualFoilLifeTime = Seconds (35.2 * 60); // 35.2 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C10
- loads.push_back (0.300);
- loads.push_back (0.628);
- loads.push_back (0.4947);
- loads.push_back (0.2523);
- loads.push_back (0.2341);
- loads.push_back (0.1379);
- loads.push_back (0.1139);
- loads.push_back (0.2656);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (0.5 * 60));
- timeStamps.push_back (Seconds (5.5 * 60));
- timeStamps.push_back (Seconds (10.5 * 60));
- timeStamps.push_back (Seconds (35.5 * 60));
- timeStamps.push_back (Seconds (60.5 * 60));
- timeStamps.push_back (Seconds (85.5 * 60));
- timeStamps.push_back (Seconds (110.5 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
- profile.dualFoilLifeTime = Seconds (132.6 * 60); // 132.6 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C11
- loads.push_back (0.300);
- loads.push_back (0.1139);
- loads.push_back (0.1379);
- loads.push_back (0.2341);
- loads.push_back (0.2523);
- loads.push_back (0.4947);
- loads.push_back (0.628);
- loads.push_back (0.2656);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (0.5 * 60));
- timeStamps.push_back (Seconds (25.5 * 60));
- timeStamps.push_back (Seconds (50.5 * 60));
- timeStamps.push_back (Seconds (75.5 * 60));
- timeStamps.push_back (Seconds (100.5 * 60));
- timeStamps.push_back (Seconds (105.5 * 60));
- timeStamps.push_back (Seconds (110.5 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
- profile.dualFoilLifeTime = Seconds (107.4 * 60); // 107.4 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C12
- loads.push_back (0.300);
- loads.push_back (0.1139);
- loads.push_back (0.1379);
- loads.push_back (0.2341);
- loads.push_back (0.2523);
- loads.push_back (0.4947);
- loads.push_back (0.0);
- loads.push_back (0.300);
- loads.push_back (0.628);
- loads.push_back (0.2656);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (0.5 * 60));
- timeStamps.push_back (Seconds (25.5 * 60));
- timeStamps.push_back (Seconds (50.5 * 60));
- timeStamps.push_back (Seconds (75.5 * 60));
- timeStamps.push_back (Seconds (100.5 * 60));
- timeStamps.push_back (Seconds (105.5 * 60));
- timeStamps.push_back (Seconds (130.5 * 60));
- timeStamps.push_back (Seconds (131.0 * 60));
- timeStamps.push_back (Seconds (136.0 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (169.3 * 60); // 169.3 minutes
- profile.dualFoilLifeTime = Seconds (155.4 * 60); // 155.4 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C13
- loads.push_back (0.300);
- timeStamps.push_back (Seconds (0));
-
- for (int i = 0; i < 5; i++)
- {
- loads.push_back (0.628);
- loads.push_back (0.4947);
- loads.push_back (0.2523);
- loads.push_back (0.2341);
- loads.push_back (0.1379);
- loads.push_back (0.1139);
-
- timeStamps.push_back (Seconds ((0.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((1.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((2.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((7.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((12.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((17.5 + i * 22.5) * 60));
- }
-
- loads.push_back (0.2656);
- timeStamps.push_back (Seconds (110.5 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
- profile.dualFoilLifeTime = Seconds (131.7 * 60); // 131.7 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C14, time stamp calculation in paper is off, using our own estimated value
- loads.push_back (0.300);
- timeStamps.push_back (Seconds (0));
-
- for (int i = 0; i < 5; i++)
- {
- loads.push_back (0.1139);
- loads.push_back (0.1379);
- loads.push_back (0.2341);
- loads.push_back (0.2523);
- loads.push_back (0.4947);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds ((0.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((5.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((10.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((15.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((20.5 + i * 22.5) * 60));
- timeStamps.push_back (Seconds ((21.5 + i * 22.5) * 60));
- }
-
- loads.push_back (0.2656);
- timeStamps.push_back (Seconds (112.5 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (141.5 * 60); // 141.5 minutes
- profile.dualFoilLifeTime = Seconds (126.3 * 60); // 126.3 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C15
- loads.push_back (0.2227);
- loads.push_back (0.2045);
- loads.push_back (0.1083);
- loads.push_back (0.0843);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (50.0 * 60));
- timeStamps.push_back (Seconds (100.0 * 60));
- timeStamps.push_back (Seconds (150.0 * 60));
- timeStamps.push_back (Seconds (200.0 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
- profile.dualFoilLifeTime = Seconds (209.2 * 60); // 209.2 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C16
- loads.push_back (0.0843);
- loads.push_back (0.1083);
- loads.push_back (0.2045);
- loads.push_back (0.2227);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (50.0 * 60));
- timeStamps.push_back (Seconds (100.0 * 60));
- timeStamps.push_back (Seconds (150.0 * 60));
- timeStamps.push_back (Seconds (200.0 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
- profile.dualFoilLifeTime = Seconds (200.7 * 60); // 200.7 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C17
- loads.push_back (0.0843);
- loads.push_back (0.1083);
- loads.push_back (0.2045);
- loads.push_back (0.0);
- loads.push_back (0.2227);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds (0));
- timeStamps.push_back (Seconds (50.0 * 60));
- timeStamps.push_back (Seconds (100.0 * 60));
- timeStamps.push_back (Seconds (150.0 * 60));
- timeStamps.push_back (Seconds (200.0 * 60));
- timeStamps.push_back (Seconds (250.0 * 60));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (261.4 * 60); // 261.4 minutes
- profile.dualFoilLifeTime = Seconds (251.2 * 60); // 251.2 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C18
- for (int i = 0; i < 10; i++)
- {
- loads.push_back (0.0843);
- loads.push_back (0.1083);
- loads.push_back (0.2045);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds ((0.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((5.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((10.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((15.0 + i * 20.0) * 60));
- }
-
- loads.push_back (0.2227);
- timeStamps.push_back (Seconds (200.0));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
- profile.dualFoilLifeTime = Seconds (204.6 * 60); // 204.6 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C19
- for (int i = 0; i < 10; i++)
- {
- loads.push_back (0.0755);
- loads.push_back (0.0949);
- loads.push_back (0.2045);
- loads.push_back (0.2227);
-
- timeStamps.push_back (Seconds ((0.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((5.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((10.0 + i * 20.0) * 60));
- timeStamps.push_back (Seconds ((15.0 + i * 20.0) * 60));
- }
-
- loads.push_back (0.2227);
- timeStamps.push_back (Seconds (200.0));
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (216.4 * 60); // 216.4 minutes
- profile.dualFoilLifeTime = Seconds (208.7 * 60); // 208.7 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C20
- for (int i = 0; i < 50; i++)
- {
- loads.push_back (0.4947);
- loads.push_back (0.628);
-
- timeStamps.push_back (Seconds ((0.0 + i * 2.0) * 60));
- timeStamps.push_back (Seconds ((1.0 + i * 2.0) * 60));
- }
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (55.3 * 60); // 55.3 minutes
- profile.dualFoilLifeTime = Seconds (33.2 * 60); // 33.2 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C21
- for (int i = 0; i < 50; i++)
- {
- loads.push_back (0.4947);
- loads.push_back (0.628);
- loads.push_back (0.0576);
-
- timeStamps.push_back (Seconds ((0.0 + i * 3.0) * 60));
- timeStamps.push_back (Seconds ((1.0 + i * 3.0) * 60));
- timeStamps.push_back (Seconds ((2.0 + i * 3.0) * 60));
- }
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (79.6 * 60); // 79.6 minutes
- profile.dualFoilLifeTime = Seconds (55.9 * 60); // 55.9 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-
- // C22
- for (int i = 0; i < 150; i++)
- {
- loads.push_back (0.005 + 0.005 * i);
- timeStamps.push_back (Seconds ((0.0 + i * 1.0) * 60));
- }
-
- profile.loads = loads;
- profile.timeStamps = timeStamps;
- profile.itsyLifetime = Seconds (112.2 * 60); // 112.2 minutes
- profile.dualFoilLifeTime = Seconds (94.5 * 60); // 94.5 minutes
-
- m_loadProfiles.push_back (profile);
-
- loads.clear ();
- timeStamps.clear ();
-}
-
-void
-BatteryLifetimeTest::DoRun (void)
-{
- NS_LOG_UNCOND ("Constant load run.");
-
- // 640mA
- NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.640, Seconds (2844.0)), false, "Problems with constant load test (640mA).");
- // 320mA
- NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.320, Seconds (6146.0)), false, "Problems with constant load test (320mA).");
- // 128mA
- NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.128, Seconds (16052.0)), false, "Problems with constant load test (128mA).");
- // 64mA
- NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.064, Seconds (32561.0)), false, "Problems with constant load test (64mA).");
- // 32mA
- NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.032, Seconds (65580.0)), false, "Problems with constant load test (32).");
-
- // create load profiles for variable load test
- CreateLoadProfiles ();
-
- // variable load with Itsy battery
- NS_LOG_UNCOND ("\n\nItsy");
- m_alpha = 35220;
- m_beta = 0.637;
- for (uint32_t i = 0; i < m_loadProfiles.size (); i++)
- {
- NS_LOG_UNCOND ("========");
- NS_LOG_UNCOND ("Variable load profile C" << i + 1);
- if (VariableLoadTest (m_loadProfiles[i].loads,
- m_loadProfiles[i].timeStamps,
- m_loadProfiles[i].itsyLifetime))
- {
- return;
- }
- }
-
- // variable load with DUALFOIL battery
- NS_LOG_UNCOND ("\n\nDUALFOIL");
- m_alpha = 40027;
- m_beta = 0.276;
- for (uint32_t i = 0; i < m_loadProfiles.size (); i++)
- {
- NS_LOG_UNCOND ("========");
- NS_LOG_UNCOND ("Variable load profile C" << i + 1);
- if (VariableLoadTest (m_loadProfiles[i].loads,
- m_loadProfiles[i].timeStamps,
- m_loadProfiles[i].dualFoilLifeTime))
- {
- return;
- }
- }
-}
-
-bool
-BatteryLifetimeTest::ConstantLoadTest (double load, Time expLifetime)
-{
- // create single node
- NodeContainer c;
- c.Create (1);
-
- std::string phyMode ("DsssRate1Mbps");
-
- // disable fragmentation for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
- StringValue ("2200"));
- // turn off RTS/CTS for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
- StringValue ("2200"));
- // Fix non-unicast data rate to be the same as that of unicast
- Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
- StringValue (phyMode));
-
- // install YansWifiPhy
- WifiHelper wifi;
- wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
-
- YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
- /*
- * This is one parameter that matters when using FixedRssLossModel, set it to
- * zero; otherwise, gain will be added.
- */
- wifiPhy.Set ("RxGain", DoubleValue (0));
- // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
- wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
-
- YansWifiChannelHelper wifiChannel ;
- wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
- wifiPhy.SetChannel (wifiChannel.Create ());
-
- // Add a non-QoS upper MAC, and disable rate control
- NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
- wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
- "DataMode", StringValue(phyMode),
- "ControlMode", StringValue(phyMode));
- // Set it to ad-hoc mode
- wifiMac.SetType ("ns3::AdhocWifiMac");
- NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
-
- // Create and install battery model and device models
- // RV battery model
- RvBatteryModelHelper rvModelHelper;
- // Set alpha & beta values
- rvModelHelper.Set ("RvBatteryModelAlphaValue", DoubleValue (m_alpha));
- rvModelHelper.Set ("RvBatteryModelBetaValue", DoubleValue (m_beta));
- // install source
- EnergySourceContainer sources = rvModelHelper.Install (c);
- // device energy model
- WifiRadioEnergyModelHelper radioEnergyHelper;
- // set VariableLoadTestIDLE current, which will be the constant load
- radioEnergyHelper.Set ("IdleCurrentA", DoubleValue (load));
- // install on node
- DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
-
- // run simulation
- Simulator::Stop (Seconds (70000.0));
- Simulator::Run ();
-
- Time actualLifetime;
- Ptr<RvBatteryModel> srcPtr = DynamicCast<RvBatteryModel> (sources.Get (0));
- actualLifetime = srcPtr->GetLifetime ();
-
- NS_LOG_UNCOND ("Expected lifetime = " << expLifetime.GetSeconds () << "s");
- NS_LOG_UNCOND ("Actual lifetime = " << actualLifetime.GetSeconds () << "s");
-
- NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (actualLifetime, expLifetime, "Incorrect lifetime!");
- /*
- NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (actualLifetime.GetSeconds () / 60,
- expLifetime.GetSeconds () / 60, 0.1,
- "Incorrect lifetime!");
- */
-
- Simulator::Destroy ();
-
- return false; // error free
-}
-
-bool
-BatteryLifetimeTest::VariableLoadTest (std::vector<double> loads,
- std::vector<Time> timeStamps,
- Time expLifetime)
-{
- NS_ASSERT (loads.size () == timeStamps.size ());
-
- // create single node
- NodeContainer c;
- c.Create (1);
-
- std::string phyMode ("DsssRate1Mbps");
-
- // disable fragmentation for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
- StringValue ("2200"));
- // turn off RTS/CTS for frames below 2200 bytes
- Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
- StringValue ("2200"));
- // Fix non-unicast data rate to be the same as that of unicast
- Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
- StringValue (phyMode));
-
- // install YansWifiPhy
- WifiHelper wifi;
- wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
-
- YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
- /*
- * This is one parameter that matters when using FixedRssLossModel, set it to
- * zero; otherwise, gain will be added.
- */
- wifiPhy.Set ("RxGain", DoubleValue (0));
- // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
- wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
-
- YansWifiChannelHelper wifiChannel ;
- wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
- wifiPhy.SetChannel (wifiChannel.Create ());
-
- // Add a non-QoS upper MAC, and disable rate control
- NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
- wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
- "DataMode", StringValue(phyMode),
- "ControlMode", StringValue(phyMode));
- // Set it to ad-hoc mode
- wifiMac.SetType ("ns3::AdhocWifiMac");
- NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
-
- // Create and install battery model and device models
- // RV battery model
- RvBatteryModelHelper rvModelHelper;
- // Set alpha & beta values
- rvModelHelper.Set ("RvBatteryModelAlphaValue", DoubleValue (m_alpha));
- rvModelHelper.Set ("RvBatteryModelBetaValue", DoubleValue (m_beta));
- // install source
- EnergySourceContainer sources = rvModelHelper.Install (c);
- // device energy model
- WifiRadioEnergyModelHelper radioEnergyHelper;
- // set VariableLoadTestIDLE current, which will be the constant load
- radioEnergyHelper.Set ("IdleCurrentA", DoubleValue (loads[0]));
- // install on node
- DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
-
-
- Ptr<WifiRadioEnergyModel> wifiDevicePtr = DynamicCast<WifiRadioEnergyModel> (deviceModels.Get (0));
- // schedule load change events
- for (uint32_t i = 1; i < loads.size (); i++)
- {
- Simulator::Schedule (timeStamps[i], &WifiRadioEnergyModel::SetIdleCurrentA,
- wifiDevicePtr, loads[i]);
- }
-
- // run simulation
- Simulator::Stop (Seconds (70000.0));
- Simulator::Run ();
-
- Time actualLifetime;
- Ptr<RvBatteryModel> srcPtr = DynamicCast<RvBatteryModel> (sources.Get (0));
- actualLifetime = srcPtr->GetLifetime ();
-
- NS_LOG_UNCOND ("Expected lifetime = " << expLifetime.GetSeconds () << "s");
- NS_LOG_UNCOND ("Actual lifetime = " << actualLifetime.GetSeconds () << "s");
- NS_LOG_UNCOND ("Difference = " << expLifetime.GetSeconds () - actualLifetime.GetSeconds () << "s");
-
- //NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (actualLifetime, expLifetime, "Incorrect lifetime!");
- NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (actualLifetime.GetSeconds (), expLifetime.GetSeconds (),
- 120, // error tolerance = 120s
- "Incorrect lifetime!");
-
- Simulator::Destroy ();
-
- return false; // error free
-}
-
-// -------------------------------------------------------------------------- //
-
-/**
- * Unit test suite for energy model. Although the test suite involves 2 modules
- * it is still considered a unit test. Because a DeviceEnergyModel cannot live
- * without an EnergySource.
- */
-class RvBatteryModelTestSuite : public TestSuite
-{
-public:
- RvBatteryModelTestSuite ();
-};
-
-RvBatteryModelTestSuite::RvBatteryModelTestSuite ()
- : TestSuite ("rv-battery-model", SYSTEM)
-{
- AddTestCase (new BatteryLifetimeTest);
-}
-
-// create an instance of the test suite
-static RvBatteryModelTestSuite g_rvBatteryModelTestSuite;
--- a/src/contrib/energy/wscript Tue Mar 22 16:21:35 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
-
-def build(bld):
- obj = bld.create_ns3_module('energy', ['internet', 'wifi'])
- obj.source = [
- 'model/wifi-radio-energy-model.cc',
- 'model/energy-source.cc',
- 'model/basic-energy-source.cc',
- 'model/li-ion-energy-source.cc',
- 'model/rv-battery-model.cc',
- 'model/device-energy-model.cc',
- 'model/device-energy-model-container.cc',
- 'model/simple-device-energy-model.cc',
- 'helper/energy-source-container.cc',
- 'helper/energy-model-helper.cc',
- 'helper/basic-energy-source-helper.cc',
- 'helper/wifi-radio-energy-model-helper.cc',
- 'helper/rv-battery-model-helper.cc',
- 'test/basic-energy-model-test.cc',
- 'test/rv-battery-model-test.cc',
- 'test/li-ion-energy-source-test.cc',
- ]
- headers = bld.new_task_gen('ns3header')
- headers.module = 'energy'
- headers.source = [
- 'model/wifi-radio-energy-model.h',
- 'model/energy-source.h',
- 'model/basic-energy-source.h',
- 'model/li-ion-energy-source.h',
- 'model/rv-battery-model.h',
- 'model/device-energy-model.h',
- 'model/device-energy-model-container.h',
- 'model/simple-device-energy-model.h',
- 'helper/energy-source-container.h',
- 'helper/energy-model-helper.h',
- 'helper/basic-energy-source-helper.h',
- 'helper/wifi-radio-energy-model-helper.h',
- 'helper/rv-battery-model-helper.h',
- ]
-
- if (bld.env['ENABLE_EXAMPLES']):
- bld.add_subdirs('examples')
-
- bld.ns3_python_bindings()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/bindings/callbacks_list.py Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,5 @@
+callback_classes = [
+ ['void', 'ns3::empty', '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'],
+ ['void', 'ns3::Ptr<ns3::NetDevice>', 'ns3::Ptr<ns3::Packet const>', 'unsigned short', 'ns3::Address const&', 'ns3::Address const&', 'ns3::NetDevice::PacketType', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
+]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/bindings/modulegen__gcc_ILP32.py Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,5035 @@
+from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
+
+
+import pybindgen.settings
+import warnings
+
+class ErrorHandler(pybindgen.settings.ErrorHandler):
+ def handle_error(self, wrapper, exception, traceback_):
+ warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
+ return True
+pybindgen.settings.error_handler = ErrorHandler()
+
+
+import sys
+
+def module_init():
+ root_module = Module('ns.energy', cpp_namespace='::ns3')
+ return root_module
+
+def register_types(module):
+ root_module = module.get_root()
+
+ ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate [enumeration]
+ module.add_enum('WifiCodeRate', ['WIFI_CODE_RATE_UNDEFINED', 'WIFI_CODE_RATE_3_4', 'WIFI_CODE_RATE_2_3', 'WIFI_CODE_RATE_1_2'], import_from_module='ns.wifi')
+ ## wifi-preamble.h (module 'wifi'): ns3::WifiPreamble [enumeration]
+ module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT'], import_from_module='ns.wifi')
+ ## wifi-phy-standard.h (module 'wifi'): ns3::WifiPhyStandard [enumeration]
+ module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211g', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH'], import_from_module='ns.wifi')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass [enumeration]
+ module.add_enum('WifiModulationClass', ['WIFI_MOD_CLASS_UNKNOWN', 'WIFI_MOD_CLASS_IR', 'WIFI_MOD_CLASS_FHSS', 'WIFI_MOD_CLASS_DSSS', 'WIFI_MOD_CLASS_ERP_PBCC', 'WIFI_MOD_CLASS_DSSS_OFDM', 'WIFI_MOD_CLASS_ERP_OFDM', 'WIFI_MOD_CLASS_OFDM', 'WIFI_MOD_CLASS_HT'], import_from_module='ns.wifi')
+ ## address.h (module 'network'): ns3::Address [class]
+ module.add_class('Address', import_from_module='ns.network')
+ ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration]
+ module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network')
+ ## attribute-list.h (module 'core'): ns3::AttributeList [class]
+ module.add_class('AttributeList', import_from_module='ns.core')
+ ## buffer.h (module 'network'): ns3::Buffer [class]
+ module.add_class('Buffer', import_from_module='ns.network')
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator [class]
+ module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer'])
+ ## packet.h (module 'network'): ns3::ByteTagIterator [class]
+ module.add_class('ByteTagIterator', import_from_module='ns.network')
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator'])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class]
+ module.add_class('ByteTagList', import_from_module='ns.network')
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class]
+ module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList'])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator'])
+ ## callback.h (module 'core'): ns3::CallbackBase [class]
+ module.add_class('CallbackBase', import_from_module='ns.core')
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer [class]
+ module.add_class('DeviceEnergyModelContainer')
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper [class]
+ module.add_class('DeviceEnergyModelHelper', allow_subclassing=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper [class]
+ module.add_class('EnergySourceHelper', allow_subclassing=True)
+ ## event-id.h (module 'core'): ns3::EventId [class]
+ module.add_class('EventId', import_from_module='ns.core')
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision [class]
+ module.add_class('HighPrecision', import_from_module='ns.core')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
+ module.add_class('Ipv4Address', import_from_module='ns.network')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
+ root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class]
+ module.add_class('Ipv4Mask', import_from_module='ns.network')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
+ module.add_class('Ipv6Address', import_from_module='ns.network')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
+ root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class]
+ module.add_class('Ipv6Prefix', import_from_module='ns.network')
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class]
+ module.add_class('NetDeviceContainer', import_from_module='ns.network')
+ ## node-container.h (module 'network'): ns3::NodeContainer [class]
+ module.add_class('NodeContainer', import_from_module='ns.network')
+ ## object-base.h (module 'core'): ns3::ObjectBase [class]
+ module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core')
+ ## object.h (module 'core'): ns3::ObjectDeleter [struct]
+ module.add_class('ObjectDeleter', import_from_module='ns.core')
+ ## object-factory.h (module 'core'): ns3::ObjectFactory [class]
+ module.add_class('ObjectFactory', import_from_module='ns.core')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class]
+ module.add_class('PacketMetadata', import_from_module='ns.network')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration]
+ module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
+ module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
+ ## packet.h (module 'network'): ns3::PacketTagIterator [class]
+ module.add_class('PacketTagIterator', import_from_module='ns.network')
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
+ module.add_class('PacketTagList', import_from_module='ns.network')
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
+ module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
+ module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## tag.h (module 'network'): ns3::Tag [class]
+ module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
+ module.add_class('TagBuffer', import_from_module='ns.network')
+ ## nstime.h (module 'core'): ns3::Time [class]
+ module.add_class('Time', import_from_module='ns.core')
+ ## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
+ module.add_enum('Unit', ['S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core')
+ ## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
+ module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['double'])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
+ module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['ns3::Time'])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
+ root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time'])
+ ## type-id.h (module 'core'): ns3::TypeId [class]
+ module.add_class('TypeId', import_from_module='ns.core')
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
+ module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo [struct]
+ module.add_class('AttributeInfo', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList [class]
+ module.add_class('UnsafeAttributeList', import_from_module='ns.core')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode [class]
+ module.add_class('WifiMode', import_from_module='ns.wifi')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory [class]
+ module.add_class('WifiModeFactory', import_from_module='ns.wifi')
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener [class]
+ module.add_class('WifiPhyListener', allow_subclassing=True, import_from_module='ns.wifi')
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper [class]
+ module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper'])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener [class]
+ module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener'])
+ ## empty.h (module 'core'): ns3::empty [class]
+ module.add_class('empty', import_from_module='ns.core')
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
+ module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
+ ## chunk.h (module 'network'): ns3::Chunk [class]
+ module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
+ ## header.h (module 'network'): ns3::Header [class]
+ module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
+ ## object.h (module 'core'): ns3::Object [class]
+ module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator [class]
+ module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object'])
+ ## nstime.h (module 'core'): ns3::Scalar [class]
+ module.add_class('Scalar', import_from_module='ns.core')
+ ## nstime.h (module 'core'): ns3::Scalar [class]
+ root_module['ns3::Scalar'].implicitly_converts_to(root_module['ns3::Time'])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## trailer.h (module 'network'): ns3::Trailer [class]
+ module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy [class]
+ module.add_class('WifiPhy', import_from_module='ns.wifi', parent=root_module['ns3::Object'])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::State [enumeration]
+ module.add_enum('State', ['IDLE', 'CCA_BUSY', 'TX', 'RX', 'SWITCHING'], outer_class=root_module['ns3::WifiPhy'], import_from_module='ns.wifi')
+ ## attribute.h (module 'core'): ns3::AttributeAccessor [class]
+ module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
+ ## attribute.h (module 'core'): ns3::AttributeChecker [class]
+ module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
+ ## attribute.h (module 'core'): ns3::AttributeValue [class]
+ module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
+ ## boolean.h (module 'core'): ns3::BooleanChecker [class]
+ module.add_class('BooleanChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## boolean.h (module 'core'): ns3::BooleanValue [class]
+ module.add_class('BooleanValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## callback.h (module 'core'): ns3::CallbackChecker [class]
+ module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## callback.h (module 'core'): ns3::CallbackImplBase [class]
+ module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
+ ## callback.h (module 'core'): ns3::CallbackValue [class]
+ module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel [class]
+ module.add_class('DeviceEnergyModel', parent=root_module['ns3::Object'])
+ ## double.h (module 'core'): ns3::DoubleValue [class]
+ module.add_class('DoubleValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class]
+ module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## energy-source.h (module 'energy'): ns3::EnergySource [class]
+ module.add_class('EnergySource', parent=root_module['ns3::Object'])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer [class]
+ module.add_class('EnergySourceContainer', parent=root_module['ns3::Object'])
+ ## enum.h (module 'core'): ns3::EnumChecker [class]
+ module.add_class('EnumChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## enum.h (module 'core'): ns3::EnumValue [class]
+ module.add_class('EnumValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## event-impl.h (module 'core'): ns3::EventImpl [class]
+ module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
+ ## integer.h (module 'core'): ns3::IntegerValue [class]
+ module.add_class('IntegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class]
+ module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class]
+ module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class]
+ module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class]
+ module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class]
+ module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class]
+ module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class]
+ module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class]
+ module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource [class]
+ module.add_class('LiIonEnergySource', parent=root_module['ns3::EnergySource'])
+ ## net-device.h (module 'network'): ns3::NetDevice [class]
+ module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object'])
+ ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration]
+ module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network')
+ ## nix-vector.h (module 'network'): ns3::NixVector [class]
+ module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
+ ## node.h (module 'network'): ns3::Node [class]
+ module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object'])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class]
+ module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class]
+ module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## packet.h (module 'network'): ns3::Packet [class]
+ module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel [class]
+ module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource'])
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel [class]
+ module.add_class('SimpleDeviceEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
+ ## nstime.h (module 'core'): ns3::TimeChecker [class]
+ module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## nstime.h (module 'core'): ns3::TimeValue [class]
+ module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## type-id.h (module 'core'): ns3::TypeIdChecker [class]
+ module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## type-id.h (module 'core'): ns3::TypeIdValue [class]
+ module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## uinteger.h (module 'core'): ns3::UintegerValue [class]
+ module.add_class('UintegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker [class]
+ module.add_class('WifiModeChecker', import_from_module='ns.wifi', parent=root_module['ns3::AttributeChecker'])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue [class]
+ module.add_class('WifiModeValue', import_from_module='ns.wifi', parent=root_module['ns3::AttributeValue'])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel [class]
+ module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
+ ## address.h (module 'network'): ns3::AddressChecker [class]
+ module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## address.h (module 'network'): ns3::AddressValue [class]
+ module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
+ module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
+ typehandlers.add_type_alias('ns3::Time', 'ns3::TimeSquare')
+ typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeSquare*')
+ typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeSquare&')
+ module.add_typedef(root_module['ns3::Time'], 'TimeSquare')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
+ typehandlers.add_type_alias('ns3::Time', 'ns3::TimeInvert')
+ typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeInvert*')
+ typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeInvert&')
+ module.add_typedef(root_module['ns3::Time'], 'TimeInvert')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
+
+ ## Register a nested module for the namespace FatalImpl
+
+ nested_module = module.add_cpp_namespace('FatalImpl')
+ register_types_ns3_FatalImpl(nested_module)
+
+
+ ## Register a nested module for the namespace internal
+
+ nested_module = module.add_cpp_namespace('internal')
+ register_types_ns3_internal(nested_module)
+
+
+def register_types_ns3_FatalImpl(module):
+ root_module = module.get_root()
+
+
+def register_types_ns3_internal(module):
+ root_module = module.get_root()
+
+
+def register_methods(root_module):
+ register_Ns3Address_methods(root_module, root_module['ns3::Address'])
+ register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
+ register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
+ register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
+ register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
+ register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
+ register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
+ register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
+ register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
+ register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
+ register_Ns3DeviceEnergyModelContainer_methods(root_module, root_module['ns3::DeviceEnergyModelContainer'])
+ register_Ns3DeviceEnergyModelHelper_methods(root_module, root_module['ns3::DeviceEnergyModelHelper'])
+ register_Ns3EnergySourceHelper_methods(root_module, root_module['ns3::EnergySourceHelper'])
+ register_Ns3EventId_methods(root_module, root_module['ns3::EventId'])
+ register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision'])
+ register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address'])
+ register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask'])
+ register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address'])
+ register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix'])
+ register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
+ register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer'])
+ register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
+ register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
+ register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
+ register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
+ register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
+ register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
+ register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
+ register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
+ register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
+ register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
+ register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
+ register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
+ register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
+ register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
+ register_Ns3Time_methods(root_module, root_module['ns3::Time'])
+ register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
+ register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
+ register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
+ register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
+ register_Ns3UnsafeAttributeList_methods(root_module, root_module['ns3::UnsafeAttributeList'])
+ register_Ns3WifiMode_methods(root_module, root_module['ns3::WifiMode'])
+ register_Ns3WifiModeFactory_methods(root_module, root_module['ns3::WifiModeFactory'])
+ register_Ns3WifiPhyListener_methods(root_module, root_module['ns3::WifiPhyListener'])
+ register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper'])
+ register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener'])
+ register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
+ register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper'])
+ register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
+ register_Ns3Header_methods(root_module, root_module['ns3::Header'])
+ register_Ns3Object_methods(root_module, root_module['ns3::Object'])
+ register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
+ register_Ns3Scalar_methods(root_module, root_module['ns3::Scalar'])
+ register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
+ register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
+ register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
+ register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
+ register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
+ register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
+ register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
+ register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
+ register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy'])
+ register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
+ register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
+ register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
+ register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
+ register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue'])
+ register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
+ register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
+ register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
+ register_Ns3DeviceEnergyModel_methods(root_module, root_module['ns3::DeviceEnergyModel'])
+ register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue'])
+ register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue'])
+ register_Ns3EnergySource_methods(root_module, root_module['ns3::EnergySource'])
+ register_Ns3EnergySourceContainer_methods(root_module, root_module['ns3::EnergySourceContainer'])
+ register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
+ register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue'])
+ register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl'])
+ register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue'])
+ register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker'])
+ register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue'])
+ register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker'])
+ register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue'])
+ register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker'])
+ register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue'])
+ register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker'])
+ register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue'])
+ register_Ns3LiIonEnergySource_methods(root_module, root_module['ns3::LiIonEnergySource'])
+ register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
+ register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector'])
+ register_Ns3Node_methods(root_module, root_module['ns3::Node'])
+ register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker'])
+ register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
+ register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
+ register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel'])
+ register_Ns3SimpleDeviceEnergyModel_methods(root_module, root_module['ns3::SimpleDeviceEnergyModel'])
+ register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
+ register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
+ register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
+ register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
+ register_Ns3UintegerValue_methods(root_module, root_module['ns3::UintegerValue'])
+ register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker'])
+ register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue'])
+ register_Ns3WifiRadioEnergyModel_methods(root_module, root_module['ns3::WifiRadioEnergyModel'])
+ register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
+ register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
+ register_Ns3BasicEnergySource_methods(root_module, root_module['ns3::BasicEnergySource'])
+ return
+
+def register_Ns3Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## address.h (module 'network'): ns3::Address::Address() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
+ cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor]
+ cls.add_constructor([param('ns3::Address const &', 'address')])
+ ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function]
+ cls.add_method('CheckCompatible',
+ 'bool',
+ [param('uint8_t', 'type'), param('uint8_t', 'len')],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function]
+ cls.add_method('CopyAllFrom',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function]
+ cls.add_method('CopyAllTo',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint8_t', 'len')],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function]
+ cls.add_method('CopyFrom',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function]
+ cls.add_method('CopyTo',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer')],
+ is_const=True)
+ ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function]
+ cls.add_method('Deserialize',
+ 'void',
+ [param('ns3::TagBuffer', 'buffer')])
+ ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function]
+ cls.add_method('GetLength',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function]
+ cls.add_method('IsInvalid',
+ 'bool',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('uint8_t', 'type')],
+ is_const=True)
+ ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function]
+ cls.add_method('Register',
+ 'uint8_t',
+ [],
+ is_static=True)
+ ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::TagBuffer', 'buffer')],
+ is_const=True)
+ return
+
+def register_Ns3AttributeList_methods(root_module, cls):
+ ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList() [constructor]
+ cls.add_constructor([])
+ ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList(ns3::AttributeList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeList const &', 'o')])
+ ## attribute-list.h (module 'core'): bool ns3::AttributeList::DeserializeFromString(std::string value) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value')])
+ ## attribute-list.h (module 'core'): static ns3::AttributeList * ns3::AttributeList::GetGlobal() [member function]
+ cls.add_method('GetGlobal',
+ 'ns3::AttributeList *',
+ [],
+ is_static=True)
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::Reset() [member function]
+ cls.add_method('Reset',
+ 'void',
+ [])
+ ## attribute-list.h (module 'core'): std::string ns3::AttributeList::SerializeToString() const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [],
+ is_const=True)
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::Set(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## attribute-list.h (module 'core'): bool ns3::AttributeList::SetFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::SetWithTid(ns3::TypeId tid, std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetWithTid',
+ 'void',
+ [param('ns3::TypeId', 'tid'), param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ return
+
+def register_Ns3Buffer_methods(root_module, cls):
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor]
+ cls.add_constructor([])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
+ cls.add_constructor([param('uint32_t', 'dataSize')])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor]
+ cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Buffer const &', 'o')])
+ ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
+ cls.add_method('AddAtEnd',
+ 'bool',
+ [param('uint32_t', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::Buffer const &', 'o')])
+ ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
+ cls.add_method('AddAtStart',
+ 'bool',
+ [param('uint32_t', 'start')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
+ cls.add_method('Begin',
+ 'ns3::Buffer::Iterator',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'void',
+ [param('std::ostream *', 'os'), param('uint32_t', 'size')],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
+ is_const=True)
+ ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::Buffer',
+ [param('uint32_t', 'start'), param('uint32_t', 'length')],
+ is_const=True)
+ ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
+ cls.add_method('CreateFullCopy',
+ 'ns3::Buffer',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
+ cls.add_method('End',
+ 'ns3::Buffer::Iterator',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
+ cls.add_method('GetCurrentEndOffset',
+ 'int32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
+ cls.add_method('GetCurrentStartOffset',
+ 'int32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function]
+ cls.add_method('PeekData',
+ 'uint8_t const *',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'start')])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3BufferIterator_methods(root_module, cls):
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor]
+ cls.add_constructor([])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
+ cls.add_method('CalculateIpChecksum',
+ 'uint16_t',
+ [param('uint16_t', 'size')])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
+ cls.add_method('CalculateIpChecksum',
+ 'uint16_t',
+ [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
+ cls.add_method('GetDistanceFrom',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator const &', 'o')],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function]
+ cls.add_method('IsEnd',
+ 'bool',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function]
+ cls.add_method('IsStart',
+ 'bool',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function]
+ cls.add_method('Next',
+ 'void',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
+ cls.add_method('Next',
+ 'void',
+ [param('uint32_t', 'delta')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
+ cls.add_method('Prev',
+ 'void',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
+ cls.add_method('Prev',
+ 'void',
+ [param('uint32_t', 'delta')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
+ cls.add_method('Read',
+ 'void',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
+ cls.add_method('ReadLsbtohU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
+ cls.add_method('ReadLsbtohU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
+ cls.add_method('ReadLsbtohU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
+ cls.add_method('ReadNtohU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
+ cls.add_method('ReadNtohU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
+ cls.add_method('ReadNtohU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
+ cls.add_method('ReadU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
+ cls.add_method('ReadU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
+ cls.add_method('ReadU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
+ cls.add_method('ReadU8',
+ 'uint8_t',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
+ cls.add_method('WriteHtolsbU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
+ cls.add_method('WriteHtolsbU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
+ cls.add_method('WriteHtolsbU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
+ cls.add_method('WriteHtonU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
+ cls.add_method('WriteHtonU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
+ cls.add_method('WriteHtonU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
+ cls.add_method('WriteU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
+ cls.add_method('WriteU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
+ cls.add_method('WriteU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'data'), param('uint32_t', 'len')])
+ return
+
+def register_Ns3ByteTagIterator_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
+ ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::ByteTagIterator::Item',
+ [])
+ return
+
+def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
+ ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
+ cls.add_method('GetEnd',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
+ cls.add_method('GetStart',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
+ cls.add_method('GetTag',
+ 'void',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3ByteTagList_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor]
+ cls.add_constructor([])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
+ ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
+ cls.add_method('Add',
+ 'ns3::TagBuffer',
+ [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::ByteTagList const &', 'o')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
+ cls.add_method('AddAtStart',
+ 'void',
+ [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
+ cls.add_method('Begin',
+ 'ns3::ByteTagList::Iterator',
+ [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function]
+ cls.add_method('RemoveAll',
+ 'void',
+ [])
+ return
+
+def register_Ns3ByteTagListIterator_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
+ ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
+ cls.add_method('GetOffsetStart',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::ByteTagList::Iterator::Item',
+ [])
+ return
+
+def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
+ cls.add_constructor([param('ns3::TagBuffer', 'buf')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable]
+ cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable]
+ cls.add_instance_attribute('end', 'int32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable]
+ cls.add_instance_attribute('size', 'uint32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable]
+ cls.add_instance_attribute('start', 'int32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3CallbackBase_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')])
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function]
+ cls.add_method('GetImpl',
+ 'ns3::Ptr< ns3::CallbackImplBase >',
+ [],
+ is_const=True)
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
+ visibility='protected')
+ ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
+ cls.add_method('Demangle',
+ 'std::string',
+ [param('std::string const &', 'mangled')],
+ is_static=True, visibility='protected')
+ return
+
+def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer() [constructor]
+ cls.add_constructor([])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::Ptr<ns3::DeviceEnergyModel> model) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(std::string modelName) [constructor]
+ cls.add_constructor([param('std::string', 'modelName')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & a, ns3::DeviceEnergyModelContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'a'), param('ns3::DeviceEnergyModelContainer const &', 'b')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::DeviceEnergyModelContainer container) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::DeviceEnergyModelContainer', 'container')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::Ptr<ns3::DeviceEnergyModel> model) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(std::string modelName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'modelName')])
+ ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
+ [],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Clear() [member function]
+ cls.add_method('Clear',
+ 'void',
+ [])
+ ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
+ [],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): uint32_t ns3::DeviceEnergyModelContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3DeviceEnergyModelHelper_methods(root_module, cls):
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper() [constructor]
+ cls.add_constructor([])
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper(ns3::DeviceEnergyModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelHelper const &', 'arg0')])
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('Install',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::NetDeviceContainer deviceContainer, ns3::EnergySourceContainer sourceContainer) const [member function]
+ cls.add_method('Install',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::NetDeviceContainer', 'deviceContainer'), param('ns3::EnergySourceContainer', 'sourceContainer')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): void ns3::DeviceEnergyModelHelper::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_pure_virtual=True, is_virtual=True)
+ ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySourceHelper_methods(root_module, cls):
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper() [constructor]
+ cls.add_constructor([])
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper(ns3::EnergySourceHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySourceHelper const &', 'arg0')])
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::NodeContainer c) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('ns3::NodeContainer', 'c')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(std::string nodeName) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('std::string', 'nodeName')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::InstallAll() const [member function]
+ cls.add_method('InstallAll',
+ 'ns3::EnergySourceContainer',
+ [],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): void ns3::EnergySourceHelper::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_pure_virtual=True, is_virtual=True)
+ ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> node) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::EnergySource >',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EventId_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_binary_comparison_operator('==')
+ ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EventId const &', 'arg0')])
+ ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor]
+ cls.add_constructor([])
+ ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')])
+ ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function]
+ cls.add_method('Cancel',
+ 'void',
+ [])
+ ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function]
+ cls.add_method('GetContext',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function]
+ cls.add_method('GetTs',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function]
+ cls.add_method('IsExpired',
+ 'bool',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function]
+ cls.add_method('IsRunning',
+ 'bool',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function]
+ cls.add_method('PeekEventImpl',
+ 'ns3::EventImpl *',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3HighPrecision_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')])
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): ns3::HighPrecision::HighPrecision() [constructor]
+ cls.add_constructor([])
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor]
+ cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')])
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(double value) [constructor]
+ cls.add_constructor([param('double', 'value')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Div',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): double ns3::HighPrecision::GetDouble() const [member function]
+ cls.add_method('GetDouble',
+ 'double',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetHigh() const [member function]
+ cls.add_method('GetHigh',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetInteger() const [member function]
+ cls.add_method('GetInteger',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): uint64_t ns3::HighPrecision::GetLow() const [member function]
+ cls.add_method('GetLow',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Mul',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function]
+ cls.add_method('MulByInvert',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Sub',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): static ns3::HighPrecision ns3::HighPrecision::Zero() [member function]
+ cls.add_method('Zero',
+ 'ns3::HighPrecision',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Ipv4Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor]
+ cls.add_constructor([param('uint32_t', 'address')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor]
+ cls.add_constructor([param('char const *', 'address')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('CombineMask',
+ 'ns3::Ipv4Address',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function]
+ cls.add_method('ConvertFrom',
+ 'ns3::Ipv4Address',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function]
+ cls.add_method('Deserialize',
+ 'ns3::Ipv4Address',
+ [param('uint8_t const *', 'buf')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
+ cls.add_method('Get',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
+ cls.add_method('GetAny',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function]
+ cls.add_method('GetBroadcast',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('GetSubnetDirectedBroadcast',
+ 'ns3::Ipv4Address',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function]
+ cls.add_method('IsBroadcast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv4Address const &', 'other')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function]
+ cls.add_method('IsLocalMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('IsSubnetDirectedBroadcast',
+ 'bool',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint32_t', 'address')])
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('char const *', 'address')])
+ return
+
+def register_Ns3Ipv4Mask_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor]
+ cls.add_constructor([param('uint32_t', 'mask')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor]
+ cls.add_constructor([param('char const *', 'mask')])
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function]
+ cls.add_method('Get',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function]
+ cls.add_method('GetInverse',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function]
+ cls.add_method('GetPrefixLength',
+ 'uint16_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv4Mask', 'other')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function]
+ cls.add_method('IsMatch',
+ 'bool',
+ [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint32_t', 'mask')])
+ return
+
+def register_Ns3Ipv6Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
+ cls.add_constructor([param('char const *', 'address')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor]
+ cls.add_constructor([param('uint8_t *', 'address')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function]
+ cls.add_method('CombinePrefix',
+ 'ns3::Ipv6Address',
+ [param('ns3::Ipv6Prefix const &', 'prefix')])
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function]
+ cls.add_method('ConvertFrom',
+ 'ns3::Ipv6Address',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function]
+ cls.add_method('Deserialize',
+ 'ns3::Ipv6Address',
+ [param('uint8_t const *', 'buf')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function]
+ cls.add_method('GetAllHostsMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function]
+ cls.add_method('GetAllNodesMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function]
+ cls.add_method('GetAllRoutersMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function]
+ cls.add_method('GetAny',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function]
+ cls.add_method('GetBytes',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function]
+ cls.add_method('IsAllHostsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function]
+ cls.add_method('IsAllNodesMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function]
+ cls.add_method('IsAllRoutersMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function]
+ cls.add_method('IsAny',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv6Address const &', 'other')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function]
+ cls.add_method('IsLinkLocal',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function]
+ cls.add_method('IsLocalhost',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function]
+ cls.add_method('IsSolicitedMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function]
+ cls.add_method('MakeAutoconfiguredAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function]
+ cls.add_method('MakeAutoconfiguredLinkLocalAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Mac48Address', 'mac')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function]
+ cls.add_method('MakeSolicitedAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Ipv6Address', 'addr')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('char const *', 'address')])
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint8_t *', 'address')])
+ return
+
+def register_Ns3Ipv6Prefix_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor]
+ cls.add_constructor([param('uint8_t *', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor]
+ cls.add_constructor([param('char const *', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor]
+ cls.add_constructor([param('uint8_t', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')])
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function]
+ cls.add_method('GetBytes',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function]
+ cls.add_method('GetPrefixLength',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv6Prefix const &', 'other')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function]
+ cls.add_method('IsMatch',
+ 'bool',
+ [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ return
+
+def register_Ns3NetDeviceContainer_methods(root_module, cls):
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor]
+ cls.add_constructor([])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor]
+ cls.add_constructor([param('std::string', 'devName')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::NetDeviceContainer', 'other')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'deviceName')])
+ ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
+ [],
+ is_const=True)
+ ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
+ [],
+ is_const=True)
+ ## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::NetDevice >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3NodeContainer_methods(root_module, cls):
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor]
+ cls.add_constructor([])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor]
+ cls.add_constructor([param('std::string', 'nodeName')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::NodeContainer', 'other')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'nodeName')])
+ ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
+ [],
+ is_const=True)
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function]
+ cls.add_method('Create',
+ 'void',
+ [param('uint32_t', 'n')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function]
+ cls.add_method('Create',
+ 'void',
+ [param('uint32_t', 'n'), param('uint32_t', 'systemId')])
+ ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
+ [],
+ is_const=True)
+ ## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::Node >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function]
+ cls.add_method('GetGlobal',
+ 'ns3::NodeContainer',
+ [],
+ is_static=True)
+ ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3ObjectBase_methods(root_module, cls):
+ ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor]
+ cls.add_constructor([])
+ ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')])
+ ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function]
+ cls.add_method('GetAttribute',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')],
+ is_const=True)
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function]
+ cls.add_method('GetAttributeFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')],
+ is_const=True)
+ ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function]
+ cls.add_method('GetInstanceTypeId',
+ 'ns3::TypeId',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetAttribute',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetAttributeFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceConnect',
+ 'bool',
+ [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceConnectWithoutContext',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceDisconnect',
+ 'bool',
+ [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceDisconnectWithoutContext',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeList const & attributes) [member function]
+ cls.add_method('ConstructSelf',
+ 'void',
+ [param('ns3::AttributeList const &', 'attributes')],
+ visibility='protected')
+ ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function]
+ cls.add_method('NotifyConstructionCompleted',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3ObjectDeleter_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')])
+ ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function]
+ cls.add_method('Delete',
+ 'void',
+ [param('ns3::Object *', 'object')],
+ is_static=True)
+ return
+
+def register_Ns3ObjectFactory_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')])
+ ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::Object >',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(ns3::AttributeList const & list) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::AttributeList const &', 'list')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('ns3::TypeId', 'tid')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('char const *', 'tid')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('std::string', 'tid')])
+ return
+
+def register_Ns3PacketMetadata_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor]
+ cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::PacketMetadata const &', 'o')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
+ cls.add_method('AddHeader',
+ 'void',
+ [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
+ cls.add_method('AddPaddingAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
+ cls.add_method('AddTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
+ cls.add_method('BeginItem',
+ 'ns3::PacketMetadata::ItemIterator',
+ [param('ns3::Buffer', 'buffer')],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::PacketMetadata',
+ [param('uint32_t', 'start'), param('uint32_t', 'end')],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function]
+ cls.add_method('Enable',
+ 'void',
+ [],
+ is_static=True)
+ ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function]
+ cls.add_method('EnableChecking',
+ 'void',
+ [],
+ is_static=True)
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'start')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
+ cls.add_method('RemoveHeader',
+ 'void',
+ [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
+ cls.add_method('RemoveTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3PacketMetadataItem_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor]
+ cls.add_constructor([])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable]
+ cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable]
+ cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
+ cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
+ cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable]
+ cls.add_instance_attribute('isFragment', 'bool', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
+ cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
+ ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::PacketMetadata::Item',
+ [])
+ return
+
+def register_Ns3PacketTagIterator_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
+ ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::PacketTagIterator::Item',
+ [])
+ return
+
+def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
+ ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
+ cls.add_method('GetTag',
+ 'void',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3PacketTagList_methods(root_module, cls):
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
+ cls.add_constructor([])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
+ ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
+ cls.add_method('Head',
+ 'ns3::PacketTagList::TagData const *',
+ [],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
+ cls.add_method('Peek',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
+ cls.add_method('Remove',
+ 'bool',
+ [param('ns3::Tag &', 'tag')])
+ ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
+ cls.add_method('RemoveAll',
+ 'void',
+ [])
+ return
+
+def register_Ns3PacketTagListTagData_methods(root_module, cls):
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
+ cls.add_constructor([])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
+ cls.add_instance_attribute('count', 'uint32_t', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
+ cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
+ cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor]
+ cls.add_constructor([])
+ ## rv-battery-model-helper.h (module 'energy'): 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 (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Tag_methods(root_module, cls):
+ ## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
+ cls.add_constructor([])
+ ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Tag const &', 'arg0')])
+ ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
+ cls.add_method('Deserialize',
+ 'void',
+ [param('ns3::TagBuffer', 'i')],
+ is_pure_virtual=True, is_virtual=True)
+ ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::TagBuffer', 'i')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3TagBuffer_methods(root_module, cls):
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
+ cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
+ cls.add_method('CopyFrom',
+ 'void',
+ [param('ns3::TagBuffer', 'o')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
+ cls.add_method('Read',
+ 'void',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
+ ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function]
+ cls.add_method('ReadDouble',
+ 'double',
+ [])
+ ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function]
+ cls.add_method('ReadU16',
+ 'uint16_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function]
+ cls.add_method('ReadU32',
+ 'uint32_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function]
+ cls.add_method('ReadU64',
+ 'uint64_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function]
+ cls.add_method('ReadU8',
+ 'uint8_t',
+ [])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
+ cls.add_method('TrimAtEnd',
+ 'void',
+ [param('uint32_t', 'trim')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function]
+ cls.add_method('WriteDouble',
+ 'void',
+ [param('double', 'v')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
+ cls.add_method('WriteU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
+ cls.add_method('WriteU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
+ cls.add_method('WriteU64',
+ 'void',
+ [param('uint64_t', 'v')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'v')])
+ return
+
+def register_Ns3Time_methods(root_module, cls):
+ cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('>')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_inplace_numeric_operator('*=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('/=', param('ns3::Time const &', 'right'))
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('<=')
+ cls.add_binary_comparison_operator('==')
+ cls.add_binary_comparison_operator('>=')
+ ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Time const &', 'o')])
+ ## nstime.h (module 'core'): ns3::Time::Time(ns3::HighPrecision const & data) [constructor]
+ cls.add_constructor([param('ns3::HighPrecision const &', 'data')])
+ ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
+ cls.add_constructor([param('std::string const &', 's')])
+ ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
+ cls.add_method('Compare',
+ 'int',
+ [param('ns3::Time const &', 'o')],
+ is_const=True)
+ ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('FromDouble',
+ 'ns3::Time',
+ [param('double', 'value'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('FromInteger',
+ 'ns3::Time',
+ [param('uint64_t', 'value'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function]
+ cls.add_method('GetFemtoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): ns3::HighPrecision const & ns3::Time::GetHighPrecision() const [member function]
+ cls.add_method('GetHighPrecision',
+ 'ns3::HighPrecision const &',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function]
+ cls.add_method('GetMicroSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function]
+ cls.add_method('GetMilliSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function]
+ cls.add_method('GetNanoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function]
+ cls.add_method('GetPicoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function]
+ cls.add_method('GetResolution',
+ 'ns3::Time::Unit',
+ [],
+ is_static=True)
+ ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function]
+ cls.add_method('GetSeconds',
+ 'double',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function]
+ cls.add_method('GetTimeStep',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function]
+ cls.add_method('IsNegative',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function]
+ cls.add_method('IsPositive',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function]
+ cls.add_method('IsStrictlyNegative',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function]
+ cls.add_method('IsStrictlyPositive',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function]
+ cls.add_method('IsZero',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): ns3::HighPrecision * ns3::Time::PeekHighPrecision() [member function]
+ cls.add_method('PeekHighPrecision',
+ 'ns3::HighPrecision *',
+ [])
+ ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function]
+ cls.add_method('SetResolution',
+ 'void',
+ [param('ns3::Time::Unit', 'resolution')],
+ is_static=True)
+ ## nstime.h (module 'core'): static double ns3::Time::ToDouble(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('ToDouble',
+ 'double',
+ [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): static uint64_t ns3::Time::ToInteger(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('ToInteger',
+ 'uint64_t',
+ [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ return
+
+def register_Ns3TracedValue__Double_methods(root_module, cls):
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue() [constructor]
+ cls.add_constructor([])
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(ns3::TracedValue<double> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TracedValue< double > const &', 'o')])
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(double const & v) [constructor]
+ cls.add_constructor([param('double const &', 'v')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Connect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('ConnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Disconnect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('DisconnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): double ns3::TracedValue<double>::Get() const [member function]
+ cls.add_method('Get',
+ 'double',
+ [],
+ is_const=True)
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Set(double const & v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('double const &', 'v')])
+ return
+
+def register_Ns3TracedValue__Ns3Time_methods(root_module, cls):
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue() [constructor]
+ cls.add_constructor([])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::TracedValue<ns3::Time> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::Time const & v) [constructor]
+ cls.add_constructor([param('ns3::Time const &', 'v')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Connect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('ConnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Disconnect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('DisconnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): ns3::Time ns3::TracedValue<ns3::Time>::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Set(ns3::Time const & v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Time const &', 'v')])
+ return
+
+def register_Ns3TypeId_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
+ cls.add_constructor([param('char const *', 'name')])
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TypeId const &', 'o')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('AddAttribute',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('AddAttribute',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<const ns3::TraceSourceAccessor> accessor) [member function]
+ cls.add_method('AddTraceSource',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')])
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeAccessor const> ns3::TypeId::GetAttributeAccessor(uint32_t i) const [member function]
+ cls.add_method('GetAttributeAccessor',
+ 'ns3::Ptr< ns3::AttributeAccessor const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeChecker const> ns3::TypeId::GetAttributeChecker(uint32_t i) const [member function]
+ cls.add_method('GetAttributeChecker',
+ 'ns3::Ptr< ns3::AttributeChecker const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeFlags(uint32_t i) const [member function]
+ cls.add_method('GetAttributeFlags',
+ 'uint32_t',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function]
+ cls.add_method('GetAttributeFullName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeHelp(uint32_t i) const [member function]
+ cls.add_method('GetAttributeHelp',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue const> ns3::TypeId::GetAttributeInitialValue(uint32_t i) const [member function]
+ cls.add_method('GetAttributeInitialValue',
+ 'ns3::Ptr< ns3::AttributeValue const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function]
+ cls.add_method('GetAttributeN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeName(uint32_t i) const [member function]
+ cls.add_method('GetAttributeName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function]
+ cls.add_method('GetConstructor',
+ 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function]
+ cls.add_method('GetGroupName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function]
+ cls.add_method('GetName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function]
+ cls.add_method('GetParent',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function]
+ cls.add_method('GetRegistered',
+ 'ns3::TypeId',
+ [param('uint32_t', 'i')],
+ is_static=True)
+ ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function]
+ cls.add_method('GetRegisteredN',
+ 'uint32_t',
+ [],
+ is_static=True)
+ ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::GetTraceSourceAccessor(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceAccessor',
+ 'ns3::Ptr< ns3::TraceSourceAccessor const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceHelp(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceHelp',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function]
+ cls.add_method('GetTraceSourceN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceName(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint16_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function]
+ cls.add_method('HasConstructor',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function]
+ cls.add_method('HasParent',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function]
+ cls.add_method('HideFromDocumentation',
+ 'ns3::TypeId',
+ [])
+ ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
+ cls.add_method('IsChildOf',
+ 'bool',
+ [param('ns3::TypeId', 'other')],
+ is_const=True)
+ ## type-id.h (module 'core'): static bool ns3::TypeId::LookupAttributeByFullName(std::string fullName, ns3::TypeId::AttributeInfo * info) [member function]
+ cls.add_method('LookupAttributeByFullName',
+ 'bool',
+ [param('std::string', 'fullName'), param('ns3::TypeId::AttributeInfo *', 'info')],
+ is_static=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
+ cls.add_method('LookupAttributeByName',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)],
+ is_const=True)
+ ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function]
+ cls.add_method('LookupByName',
+ 'ns3::TypeId',
+ [param('std::string', 'name')],
+ is_static=True)
+ ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
+ cls.add_method('LookupTraceSourceByName',
+ 'ns3::Ptr< ns3::TraceSourceAccessor const >',
+ [param('std::string', 'name')],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function]
+ cls.add_method('MustHideFromDocumentation',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function]
+ cls.add_method('SetGroupName',
+ 'ns3::TypeId',
+ [param('std::string', 'groupName')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function]
+ cls.add_method('SetParent',
+ 'ns3::TypeId',
+ [param('ns3::TypeId', 'tid')])
+ ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function]
+ cls.add_method('SetUid',
+ 'void',
+ [param('uint16_t', 'tid')])
+ return
+
+def register_Ns3TypeIdAttributeInfo_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo(ns3::TypeId::AttributeInfo const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeId::AttributeInfo const &', 'arg0')])
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::accessor [variable]
+ cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::checker [variable]
+ cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::flags [variable]
+ cls.add_instance_attribute('flags', 'uint32_t', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::initialValue [variable]
+ cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
+ return
+
+def register_Ns3UnsafeAttributeList_methods(root_module, cls):
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
+ cls.add_constructor([])
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList(ns3::UnsafeAttributeList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::UnsafeAttributeList const &', 'o')])
+ ## attribute-list.h (module 'core'): ns3::AttributeList ns3::UnsafeAttributeList::GetSafe(std::string name) const [member function]
+ cls.add_method('GetSafe',
+ 'ns3::AttributeList',
+ [param('std::string', 'name')],
+ is_const=True)
+ ## attribute-list.h (module 'core'): void ns3::UnsafeAttributeList::Set(std::string name, ns3::AttributeValue const & param) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'param')])
+ return
+
+def register_Ns3WifiMode_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(ns3::WifiMode const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiMode const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(std::string name) [constructor]
+ cls.add_constructor([param('std::string', 'name')])
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetBandwidth() const [member function]
+ cls.add_method('GetBandwidth',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate ns3::WifiMode::GetCodeRate() const [member function]
+ cls.add_method('GetCodeRate',
+ 'ns3::WifiCodeRate',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint8_t ns3::WifiMode::GetConstellationSize() const [member function]
+ cls.add_method('GetConstellationSize',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetDataRate() const [member function]
+ cls.add_method('GetDataRate',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass ns3::WifiMode::GetModulationClass() const [member function]
+ cls.add_method('GetModulationClass',
+ 'ns3::WifiModulationClass',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetPhyRate() const [member function]
+ cls.add_method('GetPhyRate',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): std::string ns3::WifiMode::GetUniqueName() const [member function]
+ cls.add_method('GetUniqueName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): bool ns3::WifiMode::IsMandatory() const [member function]
+ cls.add_method('IsMandatory',
+ 'bool',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3WifiModeFactory_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory::WifiModeFactory(ns3::WifiModeFactory const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeFactory const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): static ns3::WifiMode ns3::WifiModeFactory::CreateWifiMode(std::string uniqueName, ns3::WifiModulationClass modClass, bool isMandatory, uint32_t bandwidth, uint32_t dataRate, ns3::WifiCodeRate codingRate, uint8_t constellationSize) [member function]
+ cls.add_method('CreateWifiMode',
+ 'ns3::WifiMode',
+ [param('std::string', 'uniqueName'), param('ns3::WifiModulationClass', 'modClass'), param('bool', 'isMandatory'), param('uint32_t', 'bandwidth'), param('uint32_t', 'dataRate'), param('ns3::WifiCodeRate', 'codingRate'), param('uint8_t', 'constellationSize')],
+ is_static=True)
+ return
+
+def register_Ns3WifiPhyListener_methods(root_module, cls):
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener() [constructor]
+ cls.add_constructor([])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener(ns3::WifiPhyListener const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiPhyListener const &', 'arg0')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyMaybeCcaBusyStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndError() [member function]
+ cls.add_method('NotifyRxEndError',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndOk() [member function]
+ cls.add_method('NotifyRxEndOk',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyRxStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifySwitchingStart(ns3::Time duration) [member function]
+ cls.add_method('NotifySwitchingStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyTxStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyTxStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ return
+
+def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls):
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper(ns3::WifiRadioEnergyModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModelHelper const &', 'arg0')])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::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)
+ ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::SetDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('SetDepletionCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::WifiRadioEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls):
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function]
+ cls.add_method('NotifyRxEndError',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function]
+ cls.add_method('NotifyRxEndOk',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> 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_Ns3Empty_methods(root_module, cls):
+ ## empty.h (module 'core'): ns3::empty::empty() [constructor]
+ cls.add_constructor([])
+ ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::empty const &', 'arg0')])
+ return
+
+def register_Ns3BasicEnergySourceHelper_methods(root_module, cls):
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')])
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper() [constructor]
+ cls.add_constructor([])
+ ## basic-energy-source-helper.h (module 'energy'): void ns3::BasicEnergySourceHelper::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)
+ ## basic-energy-source-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::BasicEnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3Chunk_methods(root_module, cls):
+ ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
+ cls.add_constructor([])
+ ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
+ ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_virtual=True)
+ ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3Header_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## header.h (module 'network'): ns3::Header::Header() [constructor]
+ cls.add_constructor([])
+ ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Header const &', 'arg0')])
+ ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_virtual=True)
+ ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3Object_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::Object::Object() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function]
+ cls.add_method('AggregateObject',
+ 'void',
+ [param('ns3::Ptr< ns3::Object >', 'other')])
+ ## object.h (module 'core'): void ns3::Object::Dispose() [member function]
+ cls.add_method('Dispose',
+ 'void',
+ [])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function]
+ cls.add_method('GetAggregateIterator',
+ 'ns3::Object::AggregateIterator',
+ [],
+ is_const=True)
+ ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function]
+ cls.add_method('GetInstanceTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True, is_virtual=True)
+ ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## object.h (module 'core'): void ns3::Object::Start() [member function]
+ cls.add_method('Start',
+ 'void',
+ [])
+ ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Object const &', 'o')],
+ visibility='protected')
+ ## object.h (module 'core'): void ns3::Object::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## object.h (module 'core'): void ns3::Object::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function]
+ cls.add_method('NotifyNewAggregate',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3ObjectAggregateIterator_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::Ptr< ns3::Object const >',
+ [])
+ return
+
+def register_Ns3Scalar_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Scalar const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Scalar const &', 'arg0')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(double v) [constructor]
+ cls.add_constructor([param('double', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint32_t v) [constructor]
+ cls.add_constructor([param('uint32_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(int32_t v) [constructor]
+ cls.add_constructor([param('int32_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint64_t v) [constructor]
+ cls.add_constructor([param('uint64_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(int64_t v) [constructor]
+ cls.add_constructor([param('int64_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Time t) [constructor]
+ cls.add_constructor([param('ns3::Time', 't')])
+ ## nstime.h (module 'core'): double ns3::Scalar::GetDouble() const [member function]
+ cls.add_method('GetDouble',
+ 'double',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Trailer_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor]
+ cls.add_constructor([])
+ ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
+ ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'end')],
+ is_pure_virtual=True, is_virtual=True)
+ ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3WifiPhy_methods(root_module, cls):
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy() [constructor]
+ cls.add_constructor([])
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::CalculateSnr(ns3::WifiMode txMode, double ber) const [member function]
+ cls.add_method('CalculateSnr',
+ 'double',
+ [param('ns3::WifiMode', 'txMode'), param('double', 'ber')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::CalculateTxDuration(uint32_t size, ns3::WifiMode payloadMode, ns3::WifiPreamble preamble) const [member function]
+ cls.add_method('CalculateTxDuration',
+ 'ns3::Time',
+ [param('uint32_t', 'size'), param('ns3::WifiMode', 'payloadMode'), param('ns3::WifiPreamble', 'preamble')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::ConfigureStandard(ns3::WifiPhyStandard standard) [member function]
+ cls.add_method('ConfigureStandard',
+ 'void',
+ [param('ns3::WifiPhyStandard', 'standard')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Ptr<ns3::WifiChannel> ns3::WifiPhy::GetChannel() const [member function]
+ cls.add_method('GetChannel',
+ 'ns3::Ptr< ns3::WifiChannel >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint16_t ns3::WifiPhy::GetChannelNumber() const [member function]
+ cls.add_method('GetChannelNumber',
+ 'uint16_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetDelayUntilIdle() [member function]
+ cls.add_method('GetDelayUntilIdle',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate11Mbps() [member function]
+ cls.add_method('GetDsssRate11Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate1Mbps() [member function]
+ cls.add_method('GetDsssRate1Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate2Mbps() [member function]
+ cls.add_method('GetDsssRate2Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate5_5Mbps() [member function]
+ cls.add_method('GetDsssRate5_5Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate12Mbps() [member function]
+ cls.add_method('GetErpOfdmRate12Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate18Mbps() [member function]
+ cls.add_method('GetErpOfdmRate18Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate24Mbps() [member function]
+ cls.add_method('GetErpOfdmRate24Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate36Mbps() [member function]
+ cls.add_method('GetErpOfdmRate36Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate48Mbps() [member function]
+ cls.add_method('GetErpOfdmRate48Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate54Mbps() [member function]
+ cls.add_method('GetErpOfdmRate54Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate6Mbps() [member function]
+ cls.add_method('GetErpOfdmRate6Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate9Mbps() [member function]
+ cls.add_method('GetErpOfdmRate9Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetLastRxStartTime() const [member function]
+ cls.add_method('GetLastRxStartTime',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::WifiMode ns3::WifiPhy::GetMode(uint32_t mode) const [member function]
+ cls.add_method('GetMode',
+ 'ns3::WifiMode',
+ [param('uint32_t', 'mode')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNModes() const [member function]
+ cls.add_method('GetNModes',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNTxPower() const [member function]
+ cls.add_method('GetNTxPower',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12Mbps() [member function]
+ cls.add_method('GetOfdmRate12Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate12MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate12MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate13_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate13_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18Mbps() [member function]
+ cls.add_method('GetOfdmRate18Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate18MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate1_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate1_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24Mbps() [member function]
+ cls.add_method('GetOfdmRate24Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate24MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate27MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate27MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate2_25MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate2_25MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate36Mbps() [member function]
+ cls.add_method('GetOfdmRate36Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate3MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate3MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate48Mbps() [member function]
+ cls.add_method('GetOfdmRate48Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate4_5MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate4_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate54Mbps() [member function]
+ cls.add_method('GetOfdmRate54Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6Mbps() [member function]
+ cls.add_method('GetOfdmRate6Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate6MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate6MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9Mbps() [member function]
+ cls.add_method('GetOfdmRate9Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate9MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate9MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetStateDuration() [member function]
+ cls.add_method('GetStateDuration',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerEnd() const [member function]
+ cls.add_method('GetTxPowerEnd',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerStart() const [member function]
+ cls.add_method('GetTxPowerStart',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::TypeId ns3::WifiPhy::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateBusy() [member function]
+ cls.add_method('IsStateBusy',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateCcaBusy() [member function]
+ cls.add_method('IsStateCcaBusy',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateIdle() [member function]
+ cls.add_method('IsStateIdle',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateRx() [member function]
+ cls.add_method('IsStateRx',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateSwitching() [member function]
+ cls.add_method('IsStateSwitching',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateTx() [member function]
+ cls.add_method('IsStateTx',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffRx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm) [member function]
+ cls.add_method('NotifyPromiscSniffRx',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble'), param('double', 'signalDbm'), param('double', 'noiseDbm')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffTx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble) [member function]
+ cls.add_method('NotifyPromiscSniffTx',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxBegin',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxDrop',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxBegin',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxDrop',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::RegisterListener(ns3::WifiPhyListener * listener) [member function]
+ cls.add_method('RegisterListener',
+ 'void',
+ [param('ns3::WifiPhyListener *', 'listener')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SendPacket(ns3::Ptr<const ns3::Packet> packet, ns3::WifiMode mode, ns3::WifiPreamble preamble, uint8_t txPowerLevel) [member function]
+ cls.add_method('SendPacket',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('ns3::WifiMode', 'mode'), param('ns3::WifiPreamble', 'preamble'), param('uint8_t', 'txPowerLevel')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetChannelNumber(uint16_t id) [member function]
+ cls.add_method('SetChannelNumber',
+ 'void',
+ [param('uint16_t', 'id')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveErrorCallback(ns3::Callback<void,ns3::Ptr<const ns3::Packet>,double,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
+ cls.add_method('SetReceiveErrorCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, double, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveOkCallback(ns3::Callback<void,ns3::Ptr<ns3::Packet>,double,ns3::WifiMode,ns3::WifiPreamble,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
+ cls.add_method('SetReceiveOkCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeAccessor_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function]
+ cls.add_method('Get',
+ 'bool',
+ [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function]
+ cls.add_method('HasGetter',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function]
+ cls.add_method('HasSetter',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Set',
+ 'bool',
+ [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeChecker_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Check',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'value')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function]
+ cls.add_method('Copy',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function]
+ cls.add_method('GetUnderlyingTypeInformation',
+ 'std::string',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function]
+ cls.add_method('GetValueTypeName',
+ 'std::string',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function]
+ cls.add_method('HasUnderlyingTypeInformation',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeValue_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_pure_virtual=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3BooleanChecker_methods(root_module, cls):
+ ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker() [constructor]
+ cls.add_constructor([])
+ ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker(ns3::BooleanChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BooleanChecker const &', 'arg0')])
+ return
+
+def register_Ns3BooleanValue_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(ns3::BooleanValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BooleanValue const &', 'arg0')])
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue() [constructor]
+ cls.add_constructor([])
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(bool value) [constructor]
+ cls.add_constructor([param('bool', 'value')])
+ ## boolean.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::BooleanValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## boolean.h (module 'core'): bool ns3::BooleanValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## boolean.h (module 'core'): bool ns3::BooleanValue::Get() const [member function]
+ cls.add_method('Get',
+ 'bool',
+ [],
+ is_const=True)
+ ## boolean.h (module 'core'): std::string ns3::BooleanValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## boolean.h (module 'core'): void ns3::BooleanValue::Set(bool value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('bool', 'value')])
+ return
+
+def register_Ns3CallbackChecker_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
+ return
+
+def register_Ns3CallbackImplBase_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
+ ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3CallbackValue_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
+ cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
+ ## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::CallbackBase', 'base')])
+ return
+
+def register_Ns3DeviceEnergyModel_methods(root_module, cls):
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel(ns3::DeviceEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModel const &', 'arg0')])
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetCurrentA() const [member function]
+ cls.add_method('GetCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): static ns3::TypeId ns3::DeviceEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3DoubleValue_methods(root_module, cls):
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue() [constructor]
+ cls.add_constructor([])
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(ns3::DoubleValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DoubleValue const &', 'arg0')])
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(double const & value) [constructor]
+ cls.add_constructor([param('double const &', 'value')])
+ ## double.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::DoubleValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## double.h (module 'core'): bool ns3::DoubleValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## double.h (module 'core'): double ns3::DoubleValue::Get() const [member function]
+ cls.add_method('Get',
+ 'double',
+ [],
+ is_const=True)
+ ## double.h (module 'core'): std::string ns3::DoubleValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## double.h (module 'core'): void ns3::DoubleValue::Set(double const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('double const &', 'value')])
+ return
+
+def register_Ns3EmptyAttributeValue_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ visibility='private', is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySource_methods(root_module, cls):
+ ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource(ns3::EnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySource const &', 'arg0')])
+ ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource() [constructor]
+ cls.add_constructor([])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::AppendDeviceEnergyModel(ns3::Ptr<ns3::DeviceEnergyModel> deviceEnergyModelPtr) [member function]
+ cls.add_method('AppendDeviceEnergyModel',
+ 'void',
+ [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::DisposeDeviceModels() [member function]
+ cls.add_method('DisposeDeviceModels',
+ 'void',
+ [])
+ ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function]
+ cls.add_method('FindDeviceEnergyModels',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::TypeId', 'tid')])
+ ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(std::string name) [member function]
+ cls.add_method('FindDeviceEnergyModels',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('std::string', 'name')])
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::EnergySource::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_const=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): static ns3::TypeId ns3::EnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::StartDeviceModels() [member function]
+ cls.add_method('StartDeviceModels',
+ 'void',
+ [])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::BreakDeviceEnergyModelRefCycle() [member function]
+ cls.add_method('BreakDeviceEnergyModelRefCycle',
+ 'void',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::CalculateTotalCurrent() [member function]
+ cls.add_method('CalculateTotalCurrent',
+ 'double',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::NotifyEnergyDrained() [member function]
+ cls.add_method('NotifyEnergyDrained',
+ 'void',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySourceContainer_methods(root_module, cls):
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySourceContainer const &', 'arg0')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer() [constructor]
+ cls.add_constructor([])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::Ptr<ns3::EnergySource> source) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::EnergySource >', 'source')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(std::string sourceName) [constructor]
+ cls.add_constructor([param('std::string', 'sourceName')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & a, ns3::EnergySourceContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::EnergySourceContainer const &', 'a'), param('ns3::EnergySourceContainer const &', 'b')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::EnergySourceContainer container) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::EnergySourceContainer', 'container')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(std::string sourceName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'sourceName')])
+ ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::EnergySource >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): uint32_t ns3::EnergySourceContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): static ns3::TypeId ns3::EnergySourceContainer::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnumChecker_methods(root_module, cls):
+ ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker(ns3::EnumChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnumChecker const &', 'arg0')])
+ ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker() [constructor]
+ cls.add_constructor([])
+ ## enum.h (module 'core'): void ns3::EnumChecker::Add(int v, std::string name) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('int', 'v'), param('std::string', 'name')])
+ ## enum.h (module 'core'): void ns3::EnumChecker::AddDefault(int v, std::string name) [member function]
+ cls.add_method('AddDefault',
+ 'void',
+ [param('int', 'v'), param('std::string', 'name')])
+ ## enum.h (module 'core'): bool ns3::EnumChecker::Check(ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Check',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'value')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumChecker::Copy(ns3::AttributeValue const & src, ns3::AttributeValue & dst) const [member function]
+ cls.add_method('Copy',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'src'), param('ns3::AttributeValue &', 'dst')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumChecker::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): std::string ns3::EnumChecker::GetUnderlyingTypeInformation() const [member function]
+ cls.add_method('GetUnderlyingTypeInformation',
+ 'std::string',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): std::string ns3::EnumChecker::GetValueTypeName() const [member function]
+ cls.add_method('GetValueTypeName',
+ 'std::string',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumChecker::HasUnderlyingTypeInformation() const [member function]
+ cls.add_method('HasUnderlyingTypeInformation',
+ 'bool',
+ [],
+ is_const=True, is_virtual=True)
+ return
+
+def register_Ns3EnumValue_methods(root_module, cls):
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue(ns3::EnumValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnumValue const &', 'arg0')])
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue() [constructor]
+ cls.add_constructor([])
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue(int v) [constructor]
+ cls.add_constructor([param('int', 'v')])
+ ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## enum.h (module 'core'): int ns3::EnumValue::Get() const [member function]
+ cls.add_method('Get',
+ 'int',
+ [],
+ is_const=True)
+ ## enum.h (module 'core'): std::string ns3::EnumValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): void ns3::EnumValue::Set(int v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('int', 'v')])
+ return
+
+def register_Ns3EventImpl_methods(root_module, cls):
+ ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EventImpl const &', 'arg0')])
+ ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor]
+ cls.add_constructor([])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function]
+ cls.add_method('Cancel',
+ 'void',
+ [])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function]
+ cls.add_method('Invoke',
+ 'void',
+ [])
+ ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function]
+ cls.add_method('IsCancelled',
+ 'bool',
+ [])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function]
+ cls.add_method('Notify',
+ 'void',
+ [],
+ is_pure_virtual=True, visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3IntegerValue_methods(root_module, cls):
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue() [constructor]
+ cls.add_constructor([])
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(ns3::IntegerValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::IntegerValue const &', 'arg0')])
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(int64_t const & value) [constructor]
+ cls.add_constructor([param('int64_t const &', 'value')])
+ ## integer.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::IntegerValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## integer.h (module 'core'): bool ns3::IntegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## integer.h (module 'core'): int64_t ns3::IntegerValue::Get() const [member function]
+ cls.add_method('Get',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## integer.h (module 'core'): std::string ns3::IntegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## integer.h (module 'core'): void ns3::IntegerValue::Set(int64_t const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('int64_t const &', 'value')])
+ return
+
+def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv4AddressValue_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv4Address const &', 'value')])
+ ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv4Address',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv4Address const &', 'value')])
+ return
+
+def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv4MaskValue_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')])
+ ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv4Mask',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv4Mask const &', 'value')])
+ return
+
+def register_Ns3Ipv6AddressChecker_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv6AddressValue_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const &', 'value')])
+ ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv6Address',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv6Address const &', 'value')])
+ return
+
+def register_Ns3Ipv6PrefixChecker_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv6PrefixValue_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')])
+ ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv6Prefix const &', 'value')])
+ return
+
+def register_Ns3LiIonEnergySource_methods(root_module, cls):
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource(ns3::LiIonEnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::LiIonEnergySource const &', 'arg0')])
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource() [constructor]
+ cls.add_constructor([])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DecreaseRemainingEnergy(double energyJ) [member function]
+ cls.add_method('DecreaseRemainingEnergy',
+ 'void',
+ [param('double', 'energyJ')],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): ns3::Time ns3::LiIonEnergySource::GetEnergyUpdateInterval() const [member function]
+ cls.add_method('GetEnergyUpdateInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): static ns3::TypeId ns3::LiIonEnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::IncreaseRemainingEnergy(double energyJ) [member function]
+ cls.add_method('IncreaseRemainingEnergy',
+ 'void',
+ [param('double', 'energyJ')],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
+ cls.add_method('SetEnergyUpdateInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
+ cls.add_method('SetInitialEnergy',
+ 'void',
+ [param('double', 'initialEnergyJ')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialSupplyVoltage(double supplyVoltageV) [member function]
+ cls.add_method('SetInitialSupplyVoltage',
+ 'void',
+ [param('double', 'supplyVoltageV')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3NetDevice_methods(root_module, cls):
+ ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor]
+ cls.add_constructor([])
+ ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NetDevice const &', 'arg0')])
+ ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('AddLinkChangeCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function]
+ cls.add_method('GetAddress',
+ 'ns3::Address',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function]
+ cls.add_method('GetBroadcast',
+ 'ns3::Address',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function]
+ cls.add_method('GetChannel',
+ 'ns3::Ptr< ns3::Channel >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function]
+ cls.add_method('GetIfIndex',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function]
+ cls.add_method('GetMtu',
+ 'uint16_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
+ cls.add_method('GetMulticast',
+ 'ns3::Address',
+ [param('ns3::Ipv4Address', 'multicastGroup')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
+ cls.add_method('GetMulticast',
+ 'ns3::Address',
+ [param('ns3::Ipv6Address', 'addr')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function]
+ cls.add_method('IsBridge',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function]
+ cls.add_method('IsBroadcast',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function]
+ cls.add_method('IsLinkUp',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function]
+ cls.add_method('IsPointToPoint',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function]
+ cls.add_method('NeedsArp',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
+ cls.add_method('Send',
+ 'bool',
+ [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
+ cls.add_method('SendFrom',
+ 'bool',
+ [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function]
+ cls.add_method('SetAddress',
+ 'void',
+ [param('ns3::Address', 'address')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function]
+ cls.add_method('SetIfIndex',
+ 'void',
+ [param('uint32_t const', 'index')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function]
+ cls.add_method('SetMtu',
+ 'bool',
+ [param('uint16_t const', 'mtu')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,ns3::NetDevice::PacketType,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
+ cls.add_method('SetPromiscReceiveCallback',
+ 'void',
+ [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
+ cls.add_method('SetReceiveCallback',
+ 'void',
+ [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function]
+ cls.add_method('SupportsSendFrom',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3NixVector_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor]
+ cls.add_constructor([])
+ ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor]
+ cls.add_constructor([param('ns3::NixVector const &', 'o')])
+ ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function]
+ cls.add_method('AddNeighborIndex',
+ 'void',
+ [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function]
+ cls.add_method('BitCount',
+ 'uint32_t',
+ [param('uint32_t', 'numberOfNeighbors')],
+ is_const=True)
+ ## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::NixVector >',
+ [],
+ is_const=True)
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function]
+ cls.add_method('ExtractNeighborIndex',
+ 'uint32_t',
+ [param('uint32_t', 'numberOfBits')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function]
+ cls.add_method('GetRemainingBits',
+ 'uint32_t',
+ [])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3Node_methods(root_module, cls):
+ ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Node const &', 'arg0')])
+ ## node.h (module 'network'): ns3::Node::Node() [constructor]
+ cls.add_constructor([])
+ ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor]
+ cls.add_constructor([param('uint32_t', 'systemId')])
+ ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function]
+ cls.add_method('AddApplication',
+ 'uint32_t',
+ [param('ns3::Ptr< ns3::Application >', 'application')])
+ ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('AddDevice',
+ 'uint32_t',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')])
+ ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function]
+ cls.add_method('ChecksumEnabled',
+ 'bool',
+ [],
+ is_static=True)
+ ## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function]
+ cls.add_method('GetApplication',
+ 'ns3::Ptr< ns3::Application >',
+ [param('uint32_t', 'index')],
+ is_const=True)
+ ## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function]
+ cls.add_method('GetDevice',
+ 'ns3::Ptr< ns3::NetDevice >',
+ [param('uint32_t', 'index')],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function]
+ cls.add_method('GetId',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function]
+ cls.add_method('GetNApplications',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function]
+ cls.add_method('GetNDevices',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function]
+ cls.add_method('GetSystemId',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function]
+ cls.add_method('RegisterProtocolHandler',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')])
+ ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function]
+ cls.add_method('UnregisterProtocolHandler',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')])
+ ## node.h (module 'network'): void ns3::Node::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## node.h (module 'network'): void ns3::Node::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## node.h (module 'network'): void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('NotifyDeviceAdded',
+ 'void',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')])
+ return
+
+def register_Ns3ObjectFactoryValue_methods(root_module, cls):
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor]
+ cls.add_constructor([param('ns3::ObjectFactory const &', 'value')])
+ ## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::ObjectFactory',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::ObjectFactory const &', 'value')])
+ return
+
+def register_Ns3Packet_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## packet.h (module 'network'): ns3::Packet::Packet() [constructor]
+ cls.add_constructor([])
+ ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Packet const &', 'o')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor]
+ cls.add_constructor([param('uint32_t', 'size')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor]
+ cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
+ cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
+ cls.add_method('AddByteTag',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
+ cls.add_method('AddHeader',
+ 'void',
+ [param('ns3::Header const &', 'header')])
+ ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
+ cls.add_method('AddPacketTag',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
+ cls.add_method('AddPaddingAtEnd',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
+ cls.add_method('AddTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer')])
+ ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
+ cls.add_method('BeginItem',
+ 'ns3::PacketMetadata::ItemIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::Packet >',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'void',
+ [param('std::ostream *', 'os'), param('uint32_t', 'size')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::Ptr< ns3::Packet >',
+ [param('uint32_t', 'start'), param('uint32_t', 'length')],
+ is_const=True)
+ ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function]
+ cls.add_method('EnableChecking',
+ 'void',
+ [],
+ is_static=True)
+ ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function]
+ cls.add_method('EnablePrinting',
+ 'void',
+ [],
+ is_static=True)
+ ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
+ cls.add_method('FindFirstMatchingByteTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
+ cls.add_method('GetByteTagIterator',
+ 'ns3::ByteTagIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function]
+ cls.add_method('GetNixVector',
+ 'ns3::Ptr< ns3::NixVector >',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
+ cls.add_method('GetPacketTagIterator',
+ 'ns3::PacketTagIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function]
+ cls.add_method('PeekData',
+ 'uint8_t const *',
+ [],
+ deprecated=True, is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
+ cls.add_method('PeekHeader',
+ 'uint32_t',
+ [param('ns3::Header &', 'header')],
+ is_const=True)
+ ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
+ cls.add_method('PeekPacketTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
+ cls.add_method('PeekTrailer',
+ 'uint32_t',
+ [param('ns3::Trailer &', 'trailer')])
+ ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
+ cls.add_method('PrintByteTags',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
+ cls.add_method('PrintPacketTags',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function]
+ cls.add_method('RemoveAllByteTags',
+ 'void',
+ [])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function]
+ cls.add_method('RemoveAllPacketTags',
+ 'void',
+ [])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
+ cls.add_method('RemoveHeader',
+ 'uint32_t',
+ [param('ns3::Header &', 'header')])
+ ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
+ cls.add_method('RemovePacketTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
+ cls.add_method('RemoveTrailer',
+ 'uint32_t',
+ [param('ns3::Trailer &', 'trailer')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> arg0) [member function]
+ cls.add_method('SetNixVector',
+ 'void',
+ [param('ns3::Ptr< ns3::NixVector >', 'arg0')])
+ return
+
+def register_Ns3RvBatteryModel_methods(root_module, cls):
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')])
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel() [constructor]
+ cls.add_constructor([])
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetAlpha() const [member function]
+ cls.add_method('GetAlpha',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBatteryLevel() [member function]
+ cls.add_method('GetBatteryLevel',
+ 'double',
+ [])
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBeta() const [member function]
+ cls.add_method('GetBeta',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetCutoffVoltage() const [member function]
+ cls.add_method('GetCutoffVoltage',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function]
+ cls.add_method('GetLifetime',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): int ns3::RvBatteryModel::GetNumOfTerms() const [member function]
+ cls.add_method('GetNumOfTerms',
+ 'int',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function]
+ cls.add_method('GetOpenCircuitVoltage',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function]
+ cls.add_method('GetSamplingInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetAlpha(double alpha) [member function]
+ cls.add_method('SetAlpha',
+ 'void',
+ [param('double', 'alpha')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetBeta(double beta) [member function]
+ cls.add_method('SetBeta',
+ 'void',
+ [param('double', 'beta')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function]
+ cls.add_method('SetCutoffVoltage',
+ 'void',
+ [param('double', 'voltage')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function]
+ cls.add_method('SetNumOfTerms',
+ 'void',
+ [param('int', 'num')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function]
+ cls.add_method('SetOpenCircuitVoltage',
+ 'void',
+ [param('double', 'voltage')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function]
+ cls.add_method('SetSamplingInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3SimpleDeviceEnergyModel_methods(root_module, cls):
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel(ns3::SimpleDeviceEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleDeviceEnergyModel const &', 'arg0')])
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::SimpleDeviceEnergyModel::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_const=True, is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): static ns3::TypeId ns3::SimpleDeviceEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetCurrentA(double current) [member function]
+ cls.add_method('SetCurrentA',
+ 'void',
+ [param('double', 'current')])
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3TimeChecker_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')])
+ return
+
+def register_Ns3TimeValue_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TimeValue const &', 'arg0')])
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor]
+ cls.add_constructor([param('ns3::Time const &', 'value')])
+ ## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Time const &', 'value')])
+ return
+
+def register_Ns3TypeIdChecker_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')])
+ return
+
+def register_Ns3TypeIdValue_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')])
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor]
+ cls.add_constructor([param('ns3::TypeId const &', 'value')])
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::TypeId const &', 'value')])
+ return
+
+def register_Ns3UintegerValue_methods(root_module, cls):
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue() [constructor]
+ cls.add_constructor([])
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(ns3::UintegerValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::UintegerValue const &', 'arg0')])
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(uint64_t const & value) [constructor]
+ cls.add_constructor([param('uint64_t const &', 'value')])
+ ## uinteger.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::UintegerValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## uinteger.h (module 'core'): bool ns3::UintegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## uinteger.h (module 'core'): uint64_t ns3::UintegerValue::Get() const [member function]
+ cls.add_method('Get',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## uinteger.h (module 'core'): std::string ns3::UintegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## uinteger.h (module 'core'): void ns3::UintegerValue::Set(uint64_t const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint64_t const &', 'value')])
+ return
+
+def register_Ns3WifiModeChecker_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')])
+ return
+
+def register_Ns3WifiModeValue_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor]
+ cls.add_constructor([param('ns3::WifiMode const &', 'value')])
+ ## wifi-mode.h (module 'wifi'): ns3::Ptr<ns3::AttributeValue> ns3::WifiModeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): bool ns3::WifiModeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode ns3::WifiModeValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::WifiMode',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): std::string ns3::WifiModeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::WifiMode const &', 'value')])
+ return
+
+def register_Ns3WifiRadioEnergyModel_methods(root_module, cls):
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel(ns3::WifiRadioEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModel const &', 'arg0')])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function]
+ cls.add_method('GetCcaBusyCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function]
+ cls.add_method('GetCurrentState',
+ 'ns3::WifiPhy::State',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function]
+ cls.add_method('GetIdleCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function]
+ cls.add_method('GetPhyListener',
+ 'ns3::WifiRadioEnergyModelPhyListener *',
+ [])
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function]
+ cls.add_method('GetRxCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function]
+ cls.add_method('GetSwitchingCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTxCurrentA() const [member function]
+ cls.add_method('GetTxCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): static ns3::TypeId ns3::WifiRadioEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function]
+ cls.add_method('SetCcaBusyCurrentA',
+ 'void',
+ [param('double', 'ccaBusyCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('SetEnergyDepletionCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetIdleCurrentA(double idleCurrentA) [member function]
+ cls.add_method('SetIdleCurrentA',
+ 'void',
+ [param('double', 'idleCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function]
+ cls.add_method('SetRxCurrentA',
+ 'void',
+ [param('double', 'rxCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function]
+ cls.add_method('SetSwitchingCurrentA',
+ 'void',
+ [param('double', 'switchingCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function]
+ cls.add_method('SetTxCurrentA',
+ 'void',
+ [param('double', 'txCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3AddressChecker_methods(root_module, cls):
+ ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3AddressValue_methods(root_module, cls):
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AddressValue const &', 'arg0')])
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Address const &', 'value')])
+ ## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Address',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Address const &', 'value')])
+ return
+
+def register_Ns3BasicEnergySource_methods(root_module, cls):
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource(ns3::BasicEnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')])
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource() [constructor]
+ cls.add_constructor([])
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): ns3::Time ns3::BasicEnergySource::GetEnergyUpdateInterval() const [member function]
+ cls.add_method('GetEnergyUpdateInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): static ns3::TypeId ns3::BasicEnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
+ cls.add_method('SetEnergyUpdateInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
+ cls.add_method('SetInitialEnergy',
+ 'void',
+ [param('double', 'initialEnergyJ')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetSupplyVoltage(double supplyVoltageV) [member function]
+ cls.add_method('SetSupplyVoltage',
+ 'void',
+ [param('double', 'supplyVoltageV')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_functions(root_module):
+ module = root_module
+ register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
+ register_functions_ns3_internal(module.get_submodule('internal'), root_module)
+ return
+
+def register_functions_ns3_FatalImpl(module, root_module):
+ return
+
+def register_functions_ns3_internal(module, root_module):
+ return
+
+def main():
+ out = FileCodeSink(sys.stdout)
+ root_module = module_init()
+ register_types(root_module)
+ register_methods(root_module)
+ register_functions(root_module)
+ root_module.generate(out)
+
+if __name__ == '__main__':
+ main()
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/bindings/modulegen__gcc_LP64.py Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,5035 @@
+from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
+
+
+import pybindgen.settings
+import warnings
+
+class ErrorHandler(pybindgen.settings.ErrorHandler):
+ def handle_error(self, wrapper, exception, traceback_):
+ warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
+ return True
+pybindgen.settings.error_handler = ErrorHandler()
+
+
+import sys
+
+def module_init():
+ root_module = Module('ns.energy', cpp_namespace='::ns3')
+ return root_module
+
+def register_types(module):
+ root_module = module.get_root()
+
+ ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate [enumeration]
+ module.add_enum('WifiCodeRate', ['WIFI_CODE_RATE_UNDEFINED', 'WIFI_CODE_RATE_3_4', 'WIFI_CODE_RATE_2_3', 'WIFI_CODE_RATE_1_2'], import_from_module='ns.wifi')
+ ## wifi-preamble.h (module 'wifi'): ns3::WifiPreamble [enumeration]
+ module.add_enum('WifiPreamble', ['WIFI_PREAMBLE_LONG', 'WIFI_PREAMBLE_SHORT'], import_from_module='ns.wifi')
+ ## wifi-phy-standard.h (module 'wifi'): ns3::WifiPhyStandard [enumeration]
+ module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211g', 'WIFI_PHY_STANDARD_80211_10Mhz', 'WIFI_PHY_STANDARD_80211_5Mhz', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH'], import_from_module='ns.wifi')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass [enumeration]
+ module.add_enum('WifiModulationClass', ['WIFI_MOD_CLASS_UNKNOWN', 'WIFI_MOD_CLASS_IR', 'WIFI_MOD_CLASS_FHSS', 'WIFI_MOD_CLASS_DSSS', 'WIFI_MOD_CLASS_ERP_PBCC', 'WIFI_MOD_CLASS_DSSS_OFDM', 'WIFI_MOD_CLASS_ERP_OFDM', 'WIFI_MOD_CLASS_OFDM', 'WIFI_MOD_CLASS_HT'], import_from_module='ns.wifi')
+ ## address.h (module 'network'): ns3::Address [class]
+ module.add_class('Address', import_from_module='ns.network')
+ ## address.h (module 'network'): ns3::Address::MaxSize_e [enumeration]
+ module.add_enum('MaxSize_e', ['MAX_SIZE'], outer_class=root_module['ns3::Address'], import_from_module='ns.network')
+ ## attribute-list.h (module 'core'): ns3::AttributeList [class]
+ module.add_class('AttributeList', import_from_module='ns.core')
+ ## buffer.h (module 'network'): ns3::Buffer [class]
+ module.add_class('Buffer', import_from_module='ns.network')
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator [class]
+ module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::Buffer'])
+ ## packet.h (module 'network'): ns3::ByteTagIterator [class]
+ module.add_class('ByteTagIterator', import_from_module='ns.network')
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item [class]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagIterator'])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList [class]
+ module.add_class('ByteTagList', import_from_module='ns.network')
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator [class]
+ module.add_class('Iterator', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList'])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item [struct]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::ByteTagList::Iterator'])
+ ## callback.h (module 'core'): ns3::CallbackBase [class]
+ module.add_class('CallbackBase', import_from_module='ns.core')
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer [class]
+ module.add_class('DeviceEnergyModelContainer')
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper [class]
+ module.add_class('DeviceEnergyModelHelper', allow_subclassing=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper [class]
+ module.add_class('EnergySourceHelper', allow_subclassing=True)
+ ## event-id.h (module 'core'): ns3::EventId [class]
+ module.add_class('EventId', import_from_module='ns.core')
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision [class]
+ module.add_class('HighPrecision', import_from_module='ns.core')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
+ module.add_class('Ipv4Address', import_from_module='ns.network')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address [class]
+ root_module['ns3::Ipv4Address'].implicitly_converts_to(root_module['ns3::Address'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask [class]
+ module.add_class('Ipv4Mask', import_from_module='ns.network')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
+ module.add_class('Ipv6Address', import_from_module='ns.network')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address [class]
+ root_module['ns3::Ipv6Address'].implicitly_converts_to(root_module['ns3::Address'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix [class]
+ module.add_class('Ipv6Prefix', import_from_module='ns.network')
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer [class]
+ module.add_class('NetDeviceContainer', import_from_module='ns.network')
+ ## node-container.h (module 'network'): ns3::NodeContainer [class]
+ module.add_class('NodeContainer', import_from_module='ns.network')
+ ## object-base.h (module 'core'): ns3::ObjectBase [class]
+ module.add_class('ObjectBase', allow_subclassing=True, import_from_module='ns.core')
+ ## object.h (module 'core'): ns3::ObjectDeleter [struct]
+ module.add_class('ObjectDeleter', import_from_module='ns.core')
+ ## object-factory.h (module 'core'): ns3::ObjectFactory [class]
+ module.add_class('ObjectFactory', import_from_module='ns.core')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata [class]
+ module.add_class('PacketMetadata', import_from_module='ns.network')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [struct]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item [enumeration]
+ module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
+ module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
+ ## packet.h (module 'network'): ns3::PacketTagIterator [class]
+ module.add_class('PacketTagIterator', import_from_module='ns.network')
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
+ module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
+ module.add_class('PacketTagList', import_from_module='ns.network')
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
+ module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
+ module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## tag.h (module 'network'): ns3::Tag [class]
+ module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
+ module.add_class('TagBuffer', import_from_module='ns.network')
+ ## nstime.h (module 'core'): ns3::Time [class]
+ module.add_class('Time', import_from_module='ns.core')
+ ## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
+ module.add_enum('Unit', ['S', 'MS', 'US', 'NS', 'PS', 'FS', 'LAST'], outer_class=root_module['ns3::Time'], import_from_module='ns.core')
+ ## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
+ module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['double'])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
+ module.add_class('TracedValue', import_from_module='ns.core', template_parameters=['ns3::Time'])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time> [class]
+ root_module['ns3::TracedValue< ns3::Time >'].implicitly_converts_to(root_module['ns3::Time'])
+ ## type-id.h (module 'core'): ns3::TypeId [class]
+ module.add_class('TypeId', import_from_module='ns.core')
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeFlag [enumeration]
+ module.add_enum('AttributeFlag', ['ATTR_GET', 'ATTR_SET', 'ATTR_CONSTRUCT', 'ATTR_SGC'], outer_class=root_module['ns3::TypeId'], import_from_module='ns.core')
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo [struct]
+ module.add_class('AttributeInfo', import_from_module='ns.core', outer_class=root_module['ns3::TypeId'])
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList [class]
+ module.add_class('UnsafeAttributeList', import_from_module='ns.core')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode [class]
+ module.add_class('WifiMode', import_from_module='ns.wifi')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory [class]
+ module.add_class('WifiModeFactory', import_from_module='ns.wifi')
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener [class]
+ module.add_class('WifiPhyListener', allow_subclassing=True, import_from_module='ns.wifi')
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper [class]
+ module.add_class('WifiRadioEnergyModelHelper', parent=root_module['ns3::DeviceEnergyModelHelper'])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener [class]
+ module.add_class('WifiRadioEnergyModelPhyListener', parent=root_module['ns3::WifiPhyListener'])
+ ## empty.h (module 'core'): ns3::empty [class]
+ module.add_class('empty', import_from_module='ns.core')
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
+ module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
+ ## chunk.h (module 'network'): ns3::Chunk [class]
+ module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
+ ## header.h (module 'network'): ns3::Header [class]
+ module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
+ ## object.h (module 'core'): ns3::Object [class]
+ module.add_class('Object', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator [class]
+ module.add_class('AggregateIterator', import_from_module='ns.core', outer_class=root_module['ns3::Object'])
+ ## nstime.h (module 'core'): ns3::Scalar [class]
+ module.add_class('Scalar', import_from_module='ns.core')
+ ## nstime.h (module 'core'): ns3::Scalar [class]
+ root_module['ns3::Scalar'].implicitly_converts_to(root_module['ns3::Time'])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeChecker', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeChecker>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::AttributeValue', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AttributeValue>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::CallbackImplBase', 'ns3::empty', 'ns3::DefaultDeleter<ns3::CallbackImplBase>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::EventImpl', 'ns3::empty', 'ns3::DefaultDeleter<ns3::EventImpl>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::NixVector', 'ns3::empty', 'ns3::DefaultDeleter<ns3::NixVector>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > [class]
+ module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
+ ## trailer.h (module 'network'): ns3::Trailer [class]
+ module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy [class]
+ module.add_class('WifiPhy', import_from_module='ns.wifi', parent=root_module['ns3::Object'])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::State [enumeration]
+ module.add_enum('State', ['IDLE', 'CCA_BUSY', 'TX', 'RX', 'SWITCHING'], outer_class=root_module['ns3::WifiPhy'], import_from_module='ns.wifi')
+ ## attribute.h (module 'core'): ns3::AttributeAccessor [class]
+ module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
+ ## attribute.h (module 'core'): ns3::AttributeChecker [class]
+ module.add_class('AttributeChecker', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
+ ## attribute.h (module 'core'): ns3::AttributeValue [class]
+ module.add_class('AttributeValue', allow_subclassing=False, automatic_type_narrowing=True, import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
+ ## boolean.h (module 'core'): ns3::BooleanChecker [class]
+ module.add_class('BooleanChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## boolean.h (module 'core'): ns3::BooleanValue [class]
+ module.add_class('BooleanValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## callback.h (module 'core'): ns3::CallbackChecker [class]
+ module.add_class('CallbackChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## callback.h (module 'core'): ns3::CallbackImplBase [class]
+ module.add_class('CallbackImplBase', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
+ ## callback.h (module 'core'): ns3::CallbackValue [class]
+ module.add_class('CallbackValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel [class]
+ module.add_class('DeviceEnergyModel', parent=root_module['ns3::Object'])
+ ## double.h (module 'core'): ns3::DoubleValue [class]
+ module.add_class('DoubleValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue [class]
+ module.add_class('EmptyAttributeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## energy-source.h (module 'energy'): ns3::EnergySource [class]
+ module.add_class('EnergySource', parent=root_module['ns3::Object'])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer [class]
+ module.add_class('EnergySourceContainer', parent=root_module['ns3::Object'])
+ ## enum.h (module 'core'): ns3::EnumChecker [class]
+ module.add_class('EnumChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## enum.h (module 'core'): ns3::EnumValue [class]
+ module.add_class('EnumValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## event-impl.h (module 'core'): ns3::EventImpl [class]
+ module.add_class('EventImpl', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
+ ## integer.h (module 'core'): ns3::IntegerValue [class]
+ module.add_class('IntegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker [class]
+ module.add_class('Ipv4AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue [class]
+ module.add_class('Ipv4AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker [class]
+ module.add_class('Ipv4MaskChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue [class]
+ module.add_class('Ipv4MaskValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker [class]
+ module.add_class('Ipv6AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue [class]
+ module.add_class('Ipv6AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker [class]
+ module.add_class('Ipv6PrefixChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue [class]
+ module.add_class('Ipv6PrefixValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource [class]
+ module.add_class('LiIonEnergySource', parent=root_module['ns3::EnergySource'])
+ ## net-device.h (module 'network'): ns3::NetDevice [class]
+ module.add_class('NetDevice', import_from_module='ns.network', parent=root_module['ns3::Object'])
+ ## net-device.h (module 'network'): ns3::NetDevice::PacketType [enumeration]
+ module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'], import_from_module='ns.network')
+ ## nix-vector.h (module 'network'): ns3::NixVector [class]
+ module.add_class('NixVector', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
+ ## node.h (module 'network'): ns3::Node [class]
+ module.add_class('Node', import_from_module='ns.network', parent=root_module['ns3::Object'])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker [class]
+ module.add_class('ObjectFactoryChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue [class]
+ module.add_class('ObjectFactoryValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## packet.h (module 'network'): ns3::Packet [class]
+ module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel [class]
+ module.add_class('RvBatteryModel', parent=root_module['ns3::EnergySource'])
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel [class]
+ module.add_class('SimpleDeviceEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
+ ## nstime.h (module 'core'): ns3::TimeChecker [class]
+ module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## nstime.h (module 'core'): ns3::TimeValue [class]
+ module.add_class('TimeValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## type-id.h (module 'core'): ns3::TypeIdChecker [class]
+ module.add_class('TypeIdChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
+ ## type-id.h (module 'core'): ns3::TypeIdValue [class]
+ module.add_class('TypeIdValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## uinteger.h (module 'core'): ns3::UintegerValue [class]
+ module.add_class('UintegerValue', import_from_module='ns.core', parent=root_module['ns3::AttributeValue'])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker [class]
+ module.add_class('WifiModeChecker', import_from_module='ns.wifi', parent=root_module['ns3::AttributeChecker'])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue [class]
+ module.add_class('WifiModeValue', import_from_module='ns.wifi', parent=root_module['ns3::AttributeValue'])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel [class]
+ module.add_class('WifiRadioEnergyModel', parent=root_module['ns3::DeviceEnergyModel'])
+ ## address.h (module 'network'): ns3::AddressChecker [class]
+ module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
+ ## address.h (module 'network'): ns3::AddressValue [class]
+ module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
+ module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
+ typehandlers.add_type_alias('ns3::Time', 'ns3::TimeSquare')
+ typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeSquare*')
+ typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeSquare&')
+ module.add_typedef(root_module['ns3::Time'], 'TimeSquare')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
+ typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
+ typehandlers.add_type_alias('ns3::Time', 'ns3::TimeInvert')
+ typehandlers.add_type_alias('ns3::Time*', 'ns3::TimeInvert*')
+ typehandlers.add_type_alias('ns3::Time&', 'ns3::TimeInvert&')
+ module.add_typedef(root_module['ns3::Time'], 'TimeInvert')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
+ typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
+
+ ## Register a nested module for the namespace FatalImpl
+
+ nested_module = module.add_cpp_namespace('FatalImpl')
+ register_types_ns3_FatalImpl(nested_module)
+
+
+ ## Register a nested module for the namespace internal
+
+ nested_module = module.add_cpp_namespace('internal')
+ register_types_ns3_internal(nested_module)
+
+
+def register_types_ns3_FatalImpl(module):
+ root_module = module.get_root()
+
+
+def register_types_ns3_internal(module):
+ root_module = module.get_root()
+
+
+def register_methods(root_module):
+ register_Ns3Address_methods(root_module, root_module['ns3::Address'])
+ register_Ns3AttributeList_methods(root_module, root_module['ns3::AttributeList'])
+ register_Ns3Buffer_methods(root_module, root_module['ns3::Buffer'])
+ register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
+ register_Ns3ByteTagIterator_methods(root_module, root_module['ns3::ByteTagIterator'])
+ register_Ns3ByteTagIteratorItem_methods(root_module, root_module['ns3::ByteTagIterator::Item'])
+ register_Ns3ByteTagList_methods(root_module, root_module['ns3::ByteTagList'])
+ register_Ns3ByteTagListIterator_methods(root_module, root_module['ns3::ByteTagList::Iterator'])
+ register_Ns3ByteTagListIteratorItem_methods(root_module, root_module['ns3::ByteTagList::Iterator::Item'])
+ register_Ns3CallbackBase_methods(root_module, root_module['ns3::CallbackBase'])
+ register_Ns3DeviceEnergyModelContainer_methods(root_module, root_module['ns3::DeviceEnergyModelContainer'])
+ register_Ns3DeviceEnergyModelHelper_methods(root_module, root_module['ns3::DeviceEnergyModelHelper'])
+ register_Ns3EnergySourceHelper_methods(root_module, root_module['ns3::EnergySourceHelper'])
+ register_Ns3EventId_methods(root_module, root_module['ns3::EventId'])
+ register_Ns3HighPrecision_methods(root_module, root_module['ns3::HighPrecision'])
+ register_Ns3Ipv4Address_methods(root_module, root_module['ns3::Ipv4Address'])
+ register_Ns3Ipv4Mask_methods(root_module, root_module['ns3::Ipv4Mask'])
+ register_Ns3Ipv6Address_methods(root_module, root_module['ns3::Ipv6Address'])
+ register_Ns3Ipv6Prefix_methods(root_module, root_module['ns3::Ipv6Prefix'])
+ register_Ns3NetDeviceContainer_methods(root_module, root_module['ns3::NetDeviceContainer'])
+ register_Ns3NodeContainer_methods(root_module, root_module['ns3::NodeContainer'])
+ register_Ns3ObjectBase_methods(root_module, root_module['ns3::ObjectBase'])
+ register_Ns3ObjectDeleter_methods(root_module, root_module['ns3::ObjectDeleter'])
+ register_Ns3ObjectFactory_methods(root_module, root_module['ns3::ObjectFactory'])
+ register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
+ register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
+ register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
+ register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
+ register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
+ register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
+ register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
+ register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
+ register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
+ register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
+ register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
+ register_Ns3Time_methods(root_module, root_module['ns3::Time'])
+ register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
+ register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
+ register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
+ register_Ns3TypeIdAttributeInfo_methods(root_module, root_module['ns3::TypeId::AttributeInfo'])
+ register_Ns3UnsafeAttributeList_methods(root_module, root_module['ns3::UnsafeAttributeList'])
+ register_Ns3WifiMode_methods(root_module, root_module['ns3::WifiMode'])
+ register_Ns3WifiModeFactory_methods(root_module, root_module['ns3::WifiModeFactory'])
+ register_Ns3WifiPhyListener_methods(root_module, root_module['ns3::WifiPhyListener'])
+ register_Ns3WifiRadioEnergyModelHelper_methods(root_module, root_module['ns3::WifiRadioEnergyModelHelper'])
+ register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, root_module['ns3::WifiRadioEnergyModelPhyListener'])
+ register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
+ register_Ns3BasicEnergySourceHelper_methods(root_module, root_module['ns3::BasicEnergySourceHelper'])
+ register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
+ register_Ns3Header_methods(root_module, root_module['ns3::Header'])
+ register_Ns3Object_methods(root_module, root_module['ns3::Object'])
+ register_Ns3ObjectAggregateIterator_methods(root_module, root_module['ns3::Object::AggregateIterator'])
+ register_Ns3Scalar_methods(root_module, root_module['ns3::Scalar'])
+ register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
+ register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >'])
+ register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >'])
+ register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >'])
+ register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >'])
+ register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
+ register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
+ register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
+ register_Ns3WifiPhy_methods(root_module, root_module['ns3::WifiPhy'])
+ register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
+ register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
+ register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
+ register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
+ register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue'])
+ register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
+ register_Ns3CallbackImplBase_methods(root_module, root_module['ns3::CallbackImplBase'])
+ register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
+ register_Ns3DeviceEnergyModel_methods(root_module, root_module['ns3::DeviceEnergyModel'])
+ register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue'])
+ register_Ns3EmptyAttributeValue_methods(root_module, root_module['ns3::EmptyAttributeValue'])
+ register_Ns3EnergySource_methods(root_module, root_module['ns3::EnergySource'])
+ register_Ns3EnergySourceContainer_methods(root_module, root_module['ns3::EnergySourceContainer'])
+ register_Ns3EnumChecker_methods(root_module, root_module['ns3::EnumChecker'])
+ register_Ns3EnumValue_methods(root_module, root_module['ns3::EnumValue'])
+ register_Ns3EventImpl_methods(root_module, root_module['ns3::EventImpl'])
+ register_Ns3IntegerValue_methods(root_module, root_module['ns3::IntegerValue'])
+ register_Ns3Ipv4AddressChecker_methods(root_module, root_module['ns3::Ipv4AddressChecker'])
+ register_Ns3Ipv4AddressValue_methods(root_module, root_module['ns3::Ipv4AddressValue'])
+ register_Ns3Ipv4MaskChecker_methods(root_module, root_module['ns3::Ipv4MaskChecker'])
+ register_Ns3Ipv4MaskValue_methods(root_module, root_module['ns3::Ipv4MaskValue'])
+ register_Ns3Ipv6AddressChecker_methods(root_module, root_module['ns3::Ipv6AddressChecker'])
+ register_Ns3Ipv6AddressValue_methods(root_module, root_module['ns3::Ipv6AddressValue'])
+ register_Ns3Ipv6PrefixChecker_methods(root_module, root_module['ns3::Ipv6PrefixChecker'])
+ register_Ns3Ipv6PrefixValue_methods(root_module, root_module['ns3::Ipv6PrefixValue'])
+ register_Ns3LiIonEnergySource_methods(root_module, root_module['ns3::LiIonEnergySource'])
+ register_Ns3NetDevice_methods(root_module, root_module['ns3::NetDevice'])
+ register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector'])
+ register_Ns3Node_methods(root_module, root_module['ns3::Node'])
+ register_Ns3ObjectFactoryChecker_methods(root_module, root_module['ns3::ObjectFactoryChecker'])
+ register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
+ register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
+ register_Ns3RvBatteryModel_methods(root_module, root_module['ns3::RvBatteryModel'])
+ register_Ns3SimpleDeviceEnergyModel_methods(root_module, root_module['ns3::SimpleDeviceEnergyModel'])
+ register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
+ register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
+ register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
+ register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
+ register_Ns3UintegerValue_methods(root_module, root_module['ns3::UintegerValue'])
+ register_Ns3WifiModeChecker_methods(root_module, root_module['ns3::WifiModeChecker'])
+ register_Ns3WifiModeValue_methods(root_module, root_module['ns3::WifiModeValue'])
+ register_Ns3WifiRadioEnergyModel_methods(root_module, root_module['ns3::WifiRadioEnergyModel'])
+ register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
+ register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
+ register_Ns3BasicEnergySource_methods(root_module, root_module['ns3::BasicEnergySource'])
+ return
+
+def register_Ns3Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## address.h (module 'network'): ns3::Address::Address() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::Address::Address(uint8_t type, uint8_t const * buffer, uint8_t len) [constructor]
+ cls.add_constructor([param('uint8_t', 'type'), param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): ns3::Address::Address(ns3::Address const & address) [copy constructor]
+ cls.add_constructor([param('ns3::Address const &', 'address')])
+ ## address.h (module 'network'): bool ns3::Address::CheckCompatible(uint8_t type, uint8_t len) const [member function]
+ cls.add_method('CheckCompatible',
+ 'bool',
+ [param('uint8_t', 'type'), param('uint8_t', 'len')],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyAllFrom(uint8_t const * buffer, uint8_t len) [member function]
+ cls.add_method('CopyAllFrom',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyAllTo(uint8_t * buffer, uint8_t len) const [member function]
+ cls.add_method('CopyAllTo',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint8_t', 'len')],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyFrom(uint8_t const * buffer, uint8_t len) [member function]
+ cls.add_method('CopyFrom',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint8_t', 'len')])
+ ## address.h (module 'network'): uint32_t ns3::Address::CopyTo(uint8_t * buffer) const [member function]
+ cls.add_method('CopyTo',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer')],
+ is_const=True)
+ ## address.h (module 'network'): void ns3::Address::Deserialize(ns3::TagBuffer buffer) [member function]
+ cls.add_method('Deserialize',
+ 'void',
+ [param('ns3::TagBuffer', 'buffer')])
+ ## address.h (module 'network'): uint8_t ns3::Address::GetLength() const [member function]
+ cls.add_method('GetLength',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): uint32_t ns3::Address::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): bool ns3::Address::IsInvalid() const [member function]
+ cls.add_method('IsInvalid',
+ 'bool',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): bool ns3::Address::IsMatchingType(uint8_t type) const [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('uint8_t', 'type')],
+ is_const=True)
+ ## address.h (module 'network'): static uint8_t ns3::Address::Register() [member function]
+ cls.add_method('Register',
+ 'uint8_t',
+ [],
+ is_static=True)
+ ## address.h (module 'network'): void ns3::Address::Serialize(ns3::TagBuffer buffer) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::TagBuffer', 'buffer')],
+ is_const=True)
+ return
+
+def register_Ns3AttributeList_methods(root_module, cls):
+ ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList() [constructor]
+ cls.add_constructor([])
+ ## attribute-list.h (module 'core'): ns3::AttributeList::AttributeList(ns3::AttributeList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeList const &', 'o')])
+ ## attribute-list.h (module 'core'): bool ns3::AttributeList::DeserializeFromString(std::string value) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value')])
+ ## attribute-list.h (module 'core'): static ns3::AttributeList * ns3::AttributeList::GetGlobal() [member function]
+ cls.add_method('GetGlobal',
+ 'ns3::AttributeList *',
+ [],
+ is_static=True)
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::Reset() [member function]
+ cls.add_method('Reset',
+ 'void',
+ [])
+ ## attribute-list.h (module 'core'): std::string ns3::AttributeList::SerializeToString() const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [],
+ is_const=True)
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::Set(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## attribute-list.h (module 'core'): bool ns3::AttributeList::SetFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## attribute-list.h (module 'core'): void ns3::AttributeList::SetWithTid(ns3::TypeId tid, std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetWithTid',
+ 'void',
+ [param('ns3::TypeId', 'tid'), param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ return
+
+def register_Ns3Buffer_methods(root_module, cls):
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer() [constructor]
+ cls.add_constructor([])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize) [constructor]
+ cls.add_constructor([param('uint32_t', 'dataSize')])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(uint32_t dataSize, bool initialize) [constructor]
+ cls.add_constructor([param('uint32_t', 'dataSize'), param('bool', 'initialize')])
+ ## buffer.h (module 'network'): ns3::Buffer::Buffer(ns3::Buffer const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Buffer const &', 'o')])
+ ## buffer.h (module 'network'): bool ns3::Buffer::AddAtEnd(uint32_t end) [member function]
+ cls.add_method('AddAtEnd',
+ 'bool',
+ [param('uint32_t', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::AddAtEnd(ns3::Buffer const & o) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::Buffer const &', 'o')])
+ ## buffer.h (module 'network'): bool ns3::Buffer::AddAtStart(uint32_t start) [member function]
+ cls.add_method('AddAtStart',
+ 'bool',
+ [param('uint32_t', 'start')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::Begin() const [member function]
+ cls.add_method('Begin',
+ 'ns3::Buffer::Iterator',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::CopyData(std::ostream * os, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'void',
+ [param('std::ostream *', 'os'), param('uint32_t', 'size')],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::CopyData(uint8_t * buffer, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
+ is_const=True)
+ ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFragment(uint32_t start, uint32_t length) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::Buffer',
+ [param('uint32_t', 'start'), param('uint32_t', 'length')],
+ is_const=True)
+ ## buffer.h (module 'network'): ns3::Buffer ns3::Buffer::CreateFullCopy() const [member function]
+ cls.add_method('CreateFullCopy',
+ 'ns3::Buffer',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator ns3::Buffer::End() const [member function]
+ cls.add_method('End',
+ 'ns3::Buffer::Iterator',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentEndOffset() const [member function]
+ cls.add_method('GetCurrentEndOffset',
+ 'int32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): int32_t ns3::Buffer::GetCurrentStartOffset() const [member function]
+ cls.add_method('GetCurrentStartOffset',
+ 'int32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): uint8_t const * ns3::Buffer::PeekData() const [member function]
+ cls.add_method('PeekData',
+ 'uint8_t const *',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtEnd(uint32_t end) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::RemoveAtStart(uint32_t start) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'start')])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3BufferIterator_methods(root_module, cls):
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator(ns3::Buffer::Iterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Buffer::Iterator const &', 'arg0')])
+ ## buffer.h (module 'network'): ns3::Buffer::Iterator::Iterator() [constructor]
+ cls.add_constructor([])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
+ cls.add_method('CalculateIpChecksum',
+ 'uint16_t',
+ [param('uint16_t', 'size')])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
+ cls.add_method('CalculateIpChecksum',
+ 'uint16_t',
+ [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetDistanceFrom(ns3::Buffer::Iterator const & o) const [member function]
+ cls.add_method('GetDistanceFrom',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator const &', 'o')],
+ is_const=True)
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsEnd() const [member function]
+ cls.add_method('IsEnd',
+ 'bool',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): bool ns3::Buffer::Iterator::IsStart() const [member function]
+ cls.add_method('IsStart',
+ 'bool',
+ [],
+ is_const=True)
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next() [member function]
+ cls.add_method('Next',
+ 'void',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Next(uint32_t delta) [member function]
+ cls.add_method('Next',
+ 'void',
+ [param('uint32_t', 'delta')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
+ cls.add_method('Prev',
+ 'void',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev(uint32_t delta) [member function]
+ cls.add_method('Prev',
+ 'void',
+ [param('uint32_t', 'delta')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(uint8_t * buffer, uint32_t size) [member function]
+ cls.add_method('Read',
+ 'void',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
+ cls.add_method('ReadLsbtohU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadLsbtohU32() [member function]
+ cls.add_method('ReadLsbtohU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadLsbtohU64() [member function]
+ cls.add_method('ReadLsbtohU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadNtohU16() [member function]
+ cls.add_method('ReadNtohU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadNtohU32() [member function]
+ cls.add_method('ReadNtohU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadNtohU64() [member function]
+ cls.add_method('ReadNtohU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadU16() [member function]
+ cls.add_method('ReadU16',
+ 'uint16_t',
+ [])
+ ## buffer.h (module 'network'): uint32_t ns3::Buffer::Iterator::ReadU32() [member function]
+ cls.add_method('ReadU32',
+ 'uint32_t',
+ [])
+ ## buffer.h (module 'network'): uint64_t ns3::Buffer::Iterator::ReadU64() [member function]
+ cls.add_method('ReadU64',
+ 'uint64_t',
+ [])
+ ## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::ReadU8() [member function]
+ cls.add_method('ReadU8',
+ 'uint8_t',
+ [])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::Write(ns3::Buffer::Iterator start, ns3::Buffer::Iterator end) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start'), param('ns3::Buffer::Iterator', 'end')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU16(uint16_t data) [member function]
+ cls.add_method('WriteHtolsbU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU32(uint32_t data) [member function]
+ cls.add_method('WriteHtolsbU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtolsbU64(uint64_t data) [member function]
+ cls.add_method('WriteHtolsbU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU16(uint16_t data) [member function]
+ cls.add_method('WriteHtonU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU32(uint32_t data) [member function]
+ cls.add_method('WriteHtonU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteHtonU64(uint64_t data) [member function]
+ cls.add_method('WriteHtonU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU16(uint16_t data) [member function]
+ cls.add_method('WriteU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU32(uint32_t data) [member function]
+ cls.add_method('WriteU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU64(uint64_t data) [member function]
+ cls.add_method('WriteU64',
+ 'void',
+ [param('uint64_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'data')])
+ ## buffer.h (module 'network'): void ns3::Buffer::Iterator::WriteU8(uint8_t data, uint32_t len) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'data'), param('uint32_t', 'len')])
+ return
+
+def register_Ns3ByteTagIterator_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::ByteTagIterator::ByteTagIterator(ns3::ByteTagIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagIterator const &', 'arg0')])
+ ## packet.h (module 'network'): bool ns3::ByteTagIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item ns3::ByteTagIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::ByteTagIterator::Item',
+ [])
+ return
+
+def register_Ns3ByteTagIteratorItem_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::ByteTagIterator::Item::Item(ns3::ByteTagIterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagIterator::Item const &', 'arg0')])
+ ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetEnd() const [member function]
+ cls.add_method('GetEnd',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::ByteTagIterator::Item::GetStart() const [member function]
+ cls.add_method('GetStart',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::ByteTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
+ cls.add_method('GetTag',
+ 'void',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::TypeId ns3::ByteTagIterator::Item::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3ByteTagList_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList() [constructor]
+ cls.add_constructor([])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::ByteTagList(ns3::ByteTagList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList const &', 'o')])
+ ## byte-tag-list.h (module 'network'): ns3::TagBuffer ns3::ByteTagList::Add(ns3::TypeId tid, uint32_t bufferSize, int32_t start, int32_t end) [member function]
+ cls.add_method('Add',
+ 'ns3::TagBuffer',
+ [param('ns3::TypeId', 'tid'), param('uint32_t', 'bufferSize'), param('int32_t', 'start'), param('int32_t', 'end')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::Add(ns3::ByteTagList const & o) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::ByteTagList const &', 'o')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtEnd(int32_t adjustment, int32_t appendOffset) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('int32_t', 'adjustment'), param('int32_t', 'appendOffset')])
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::AddAtStart(int32_t adjustment, int32_t prependOffset) [member function]
+ cls.add_method('AddAtStart',
+ 'void',
+ [param('int32_t', 'adjustment'), param('int32_t', 'prependOffset')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator ns3::ByteTagList::Begin(int32_t offsetStart, int32_t offsetEnd) const [member function]
+ cls.add_method('Begin',
+ 'ns3::ByteTagList::Iterator',
+ [param('int32_t', 'offsetStart'), param('int32_t', 'offsetEnd')],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): void ns3::ByteTagList::RemoveAll() [member function]
+ cls.add_method('RemoveAll',
+ 'void',
+ [])
+ return
+
+def register_Ns3ByteTagListIterator_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Iterator(ns3::ByteTagList::Iterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList::Iterator const &', 'arg0')])
+ ## byte-tag-list.h (module 'network'): uint32_t ns3::ByteTagList::Iterator::GetOffsetStart() const [member function]
+ cls.add_method('GetOffsetStart',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): bool ns3::ByteTagList::Iterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item ns3::ByteTagList::Iterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::ByteTagList::Iterator::Item',
+ [])
+ return
+
+def register_Ns3ByteTagListIteratorItem_methods(root_module, cls):
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::ByteTagList::Iterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ByteTagList::Iterator::Item const &', 'arg0')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::Item(ns3::TagBuffer buf) [constructor]
+ cls.add_constructor([param('ns3::TagBuffer', 'buf')])
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::buf [variable]
+ cls.add_instance_attribute('buf', 'ns3::TagBuffer', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::end [variable]
+ cls.add_instance_attribute('end', 'int32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::size [variable]
+ cls.add_instance_attribute('size', 'uint32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::start [variable]
+ cls.add_instance_attribute('start', 'int32_t', is_const=False)
+ ## byte-tag-list.h (module 'network'): ns3::ByteTagList::Iterator::Item::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3CallbackBase_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::CallbackBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackBase const &', 'arg0')])
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::Ptr<ns3::CallbackImplBase> ns3::CallbackBase::GetImpl() const [member function]
+ cls.add_method('GetImpl',
+ 'ns3::Ptr< ns3::CallbackImplBase >',
+ [],
+ is_const=True)
+ ## callback.h (module 'core'): ns3::CallbackBase::CallbackBase(ns3::Ptr<ns3::CallbackImplBase> impl) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::CallbackImplBase >', 'impl')],
+ visibility='protected')
+ ## callback.h (module 'core'): static std::string ns3::CallbackBase::Demangle(std::string const & mangled) [member function]
+ cls.add_method('Demangle',
+ 'std::string',
+ [param('std::string const &', 'mangled')],
+ is_static=True, visibility='protected')
+ return
+
+def register_Ns3DeviceEnergyModelContainer_methods(root_module, cls):
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'arg0')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer() [constructor]
+ cls.add_constructor([])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::Ptr<ns3::DeviceEnergyModel> model) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(std::string modelName) [constructor]
+ cls.add_constructor([param('std::string', 'modelName')])
+ ## device-energy-model-container.h (module 'energy'): ns3::DeviceEnergyModelContainer::DeviceEnergyModelContainer(ns3::DeviceEnergyModelContainer const & a, ns3::DeviceEnergyModelContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelContainer const &', 'a'), param('ns3::DeviceEnergyModelContainer const &', 'b')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::DeviceEnergyModelContainer container) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::DeviceEnergyModelContainer', 'container')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(ns3::Ptr<ns3::DeviceEnergyModel> model) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'model')])
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Add(std::string modelName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'modelName')])
+ ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
+ [],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): void ns3::DeviceEnergyModelContainer::Clear() [member function]
+ cls.add_method('Clear',
+ 'void',
+ [])
+ ## device-energy-model-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::DeviceEnergyModel>*,std::vector<ns3::Ptr<ns3::DeviceEnergyModel>, std::allocator<ns3::Ptr<ns3::DeviceEnergyModel> > > > ns3::DeviceEnergyModelContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::DeviceEnergyModel > const, std::vector< ns3::Ptr< ns3::DeviceEnergyModel > > >',
+ [],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## device-energy-model-container.h (module 'energy'): uint32_t ns3::DeviceEnergyModelContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3DeviceEnergyModelHelper_methods(root_module, cls):
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper() [constructor]
+ cls.add_constructor([])
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelHelper::DeviceEnergyModelHelper(ns3::DeviceEnergyModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModelHelper const &', 'arg0')])
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('Install',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::DeviceEnergyModelHelper::Install(ns3::NetDeviceContainer deviceContainer, ns3::EnergySourceContainer sourceContainer) const [member function]
+ cls.add_method('Install',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::NetDeviceContainer', 'deviceContainer'), param('ns3::EnergySourceContainer', 'sourceContainer')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): void ns3::DeviceEnergyModelHelper::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_pure_virtual=True, is_virtual=True)
+ ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::DeviceEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySourceHelper_methods(root_module, cls):
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper() [constructor]
+ cls.add_constructor([])
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceHelper::EnergySourceHelper(ns3::EnergySourceHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySourceHelper const &', 'arg0')])
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::Ptr<ns3::Node> node) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(ns3::NodeContainer c) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('ns3::NodeContainer', 'c')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::Install(std::string nodeName) const [member function]
+ cls.add_method('Install',
+ 'ns3::EnergySourceContainer',
+ [param('std::string', 'nodeName')],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): ns3::EnergySourceContainer ns3::EnergySourceHelper::InstallAll() const [member function]
+ cls.add_method('InstallAll',
+ 'ns3::EnergySourceContainer',
+ [],
+ is_const=True)
+ ## energy-model-helper.h (module 'energy'): void ns3::EnergySourceHelper::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_pure_virtual=True, is_virtual=True)
+ ## energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> node) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::EnergySource >',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EventId_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_binary_comparison_operator('==')
+ ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::EventId const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EventId const &', 'arg0')])
+ ## event-id.h (module 'core'): ns3::EventId::EventId() [constructor]
+ cls.add_constructor([])
+ ## event-id.h (module 'core'): ns3::EventId::EventId(ns3::Ptr<ns3::EventImpl> const & impl, uint64_t ts, uint32_t context, uint32_t uid) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::EventImpl > const &', 'impl'), param('uint64_t', 'ts'), param('uint32_t', 'context'), param('uint32_t', 'uid')])
+ ## event-id.h (module 'core'): void ns3::EventId::Cancel() [member function]
+ cls.add_method('Cancel',
+ 'void',
+ [])
+ ## event-id.h (module 'core'): uint32_t ns3::EventId::GetContext() const [member function]
+ cls.add_method('GetContext',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): uint64_t ns3::EventId::GetTs() const [member function]
+ cls.add_method('GetTs',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): uint32_t ns3::EventId::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): bool ns3::EventId::IsExpired() const [member function]
+ cls.add_method('IsExpired',
+ 'bool',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): bool ns3::EventId::IsRunning() const [member function]
+ cls.add_method('IsRunning',
+ 'bool',
+ [],
+ is_const=True)
+ ## event-id.h (module 'core'): ns3::EventImpl * ns3::EventId::PeekEventImpl() const [member function]
+ cls.add_method('PeekEventImpl',
+ 'ns3::EventImpl *',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3HighPrecision_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(ns3::HighPrecision const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::HighPrecision const &', 'arg0')])
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): ns3::HighPrecision::HighPrecision() [constructor]
+ cls.add_constructor([])
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(int64_t value, bool dummy) [constructor]
+ cls.add_constructor([param('int64_t', 'value'), param('bool', 'dummy')])
+ ## high-precision-128.h (module 'core'): ns3::HighPrecision::HighPrecision(double value) [constructor]
+ cls.add_constructor([param('double', 'value')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Add(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Div(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Div',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): double ns3::HighPrecision::GetDouble() const [member function]
+ cls.add_method('GetDouble',
+ 'double',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetHigh() const [member function]
+ cls.add_method('GetHigh',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): int64_t ns3::HighPrecision::GetInteger() const [member function]
+ cls.add_method('GetInteger',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): uint64_t ns3::HighPrecision::GetLow() const [member function]
+ cls.add_method('GetLow',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## high-precision-128.h (module 'core'): 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 (module 'core'): void ns3::HighPrecision::Mul(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Mul',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::MulByInvert(ns3::HighPrecision const & o) [member function]
+ cls.add_method('MulByInvert',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): void ns3::HighPrecision::Sub(ns3::HighPrecision const & o) [member function]
+ cls.add_method('Sub',
+ 'void',
+ [param('ns3::HighPrecision const &', 'o')])
+ ## high-precision-128.h (module 'core'): static ns3::HighPrecision ns3::HighPrecision::Zero() [member function]
+ cls.add_method('Zero',
+ 'ns3::HighPrecision',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Ipv4Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4Address const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(uint32_t address) [constructor]
+ cls.add_constructor([param('uint32_t', 'address')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(char const * address) [constructor]
+ cls.add_constructor([param('char const *', 'address')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::CombineMask(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('CombineMask',
+ 'ns3::Ipv4Address',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::ConvertFrom(ns3::Address const & address) [member function]
+ cls.add_method('ConvertFrom',
+ 'ns3::Ipv4Address',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::Deserialize(uint8_t const * buf) [member function]
+ cls.add_method('Deserialize',
+ 'ns3::Ipv4Address',
+ [param('uint8_t const *', 'buf')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
+ cls.add_method('Get',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
+ cls.add_method('GetAny',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetBroadcast() [member function]
+ cls.add_method('GetBroadcast',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4Address::GetSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('GetSubnetDirectedBroadcast',
+ 'ns3::Ipv4Address',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv4Address',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsBroadcast() const [member function]
+ cls.add_method('IsBroadcast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsEqual(ns3::Ipv4Address const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv4Address const &', 'other')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsLocalMulticast() const [member function]
+ cls.add_method('IsLocalMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static bool ns3::Ipv4Address::IsMatchingType(ns3::Address const & address) [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Address::IsSubnetDirectedBroadcast(ns3::Ipv4Mask const & mask) const [member function]
+ cls.add_method('IsSubnetDirectedBroadcast',
+ 'bool',
+ [param('ns3::Ipv4Mask const &', 'mask')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Serialize(uint8_t * buf) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(uint32_t address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint32_t', 'address')])
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Address::Set(char const * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('char const *', 'address')])
+ return
+
+def register_Ns3Ipv4Mask_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(ns3::Ipv4Mask const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4Mask const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(uint32_t mask) [constructor]
+ cls.add_constructor([param('uint32_t', 'mask')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask::Ipv4Mask(char const * mask) [constructor]
+ cls.add_constructor([param('char const *', 'mask')])
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::Get() const [member function]
+ cls.add_method('Get',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Mask::GetInverse() const [member function]
+ cls.add_method('GetInverse',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): uint16_t ns3::Ipv4Mask::GetPrefixLength() const [member function]
+ cls.add_method('GetPrefixLength',
+ 'uint16_t',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): static ns3::Ipv4Mask ns3::Ipv4Mask::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv4Mask',
+ [],
+ is_static=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsEqual(ns3::Ipv4Mask other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv4Mask', 'other')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4Mask::IsMatch(ns3::Ipv4Address a, ns3::Ipv4Address b) const [member function]
+ cls.add_method('IsMatch',
+ 'bool',
+ [param('ns3::Ipv4Address', 'a'), param('ns3::Ipv4Address', 'b')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4Mask::Set(uint32_t mask) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint32_t', 'mask')])
+ return
+
+def register_Ns3Ipv6Address_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(char const * address) [constructor]
+ cls.add_constructor([param('char const *', 'address')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(uint8_t * address) [constructor]
+ cls.add_constructor([param('uint8_t *', 'address')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const & addr) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const &', 'addr')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address(ns3::Ipv6Address const * addr) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const *', 'addr')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6Address::CombinePrefix(ns3::Ipv6Prefix const & prefix) [member function]
+ cls.add_method('CombinePrefix',
+ 'ns3::Ipv6Address',
+ [param('ns3::Ipv6Prefix const &', 'prefix')])
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::ConvertFrom(ns3::Address const & address) [member function]
+ cls.add_method('ConvertFrom',
+ 'ns3::Ipv6Address',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::Deserialize(uint8_t const * buf) [member function]
+ cls.add_method('Deserialize',
+ 'ns3::Ipv6Address',
+ [param('uint8_t const *', 'buf')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllHostsMulticast() [member function]
+ cls.add_method('GetAllHostsMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllNodesMulticast() [member function]
+ cls.add_method('GetAllNodesMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAllRoutersMulticast() [member function]
+ cls.add_method('GetAllRoutersMulticast',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetAny() [member function]
+ cls.add_method('GetAny',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::GetBytes(uint8_t * buf) const [member function]
+ cls.add_method('GetBytes',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv6Address',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllHostsMulticast() const [member function]
+ cls.add_method('IsAllHostsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllNodesMulticast() const [member function]
+ cls.add_method('IsAllNodesMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAllRoutersMulticast() const [member function]
+ cls.add_method('IsAllRoutersMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsAny() const [member function]
+ cls.add_method('IsAny',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsEqual(ns3::Ipv6Address const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv6Address const &', 'other')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLinkLocal() const [member function]
+ cls.add_method('IsLinkLocal',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsLocalhost() const [member function]
+ cls.add_method('IsLocalhost',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static bool ns3::Ipv6Address::IsMatchingType(ns3::Address const & address) [member function]
+ cls.add_method('IsMatchingType',
+ 'bool',
+ [param('ns3::Address const &', 'address')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Address::IsSolicitedMulticast() const [member function]
+ cls.add_method('IsSolicitedMulticast',
+ 'bool',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredAddress(ns3::Mac48Address addr, ns3::Ipv6Address prefix) [member function]
+ cls.add_method('MakeAutoconfiguredAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Mac48Address', 'addr'), param('ns3::Ipv6Address', 'prefix')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(ns3::Mac48Address mac) [member function]
+ cls.add_method('MakeAutoconfiguredLinkLocalAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Mac48Address', 'mac')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Address ns3::Ipv6Address::MakeSolicitedAddress(ns3::Ipv6Address addr) [member function]
+ cls.add_method('MakeSolicitedAddress',
+ 'ns3::Ipv6Address',
+ [param('ns3::Ipv6Address', 'addr')],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Serialize(uint8_t * buf) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(char const * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('char const *', 'address')])
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Address::Set(uint8_t * address) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint8_t *', 'address')])
+ return
+
+def register_Ns3Ipv6Prefix_methods(root_module, cls):
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t * prefix) [constructor]
+ cls.add_constructor([param('uint8_t *', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(char const * prefix) [constructor]
+ cls.add_constructor([param('char const *', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(uint8_t prefix) [constructor]
+ cls.add_constructor([param('uint8_t', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const & prefix) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const &', 'prefix')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix::Ipv6Prefix(ns3::Ipv6Prefix const * prefix) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const *', 'prefix')])
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::GetBytes(uint8_t * buf) const [member function]
+ cls.add_method('GetBytes',
+ 'void',
+ [param('uint8_t *', 'buf')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetLoopback() [member function]
+ cls.add_method('GetLoopback',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetOnes() [member function]
+ cls.add_method('GetOnes',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): uint8_t ns3::Ipv6Prefix::GetPrefixLength() const [member function]
+ cls.add_method('GetPrefixLength',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): static ns3::Ipv6Prefix ns3::Ipv6Prefix::GetZero() [member function]
+ cls.add_method('GetZero',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_static=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsEqual(ns3::Ipv6Prefix const & other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ipv6Prefix const &', 'other')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6Prefix::IsMatch(ns3::Ipv6Address a, ns3::Ipv6Address b) const [member function]
+ cls.add_method('IsMatch',
+ 'bool',
+ [param('ns3::Ipv6Address', 'a'), param('ns3::Ipv6Address', 'b')],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6Prefix::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ return
+
+def register_Ns3NetDeviceContainer_methods(root_module, cls):
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NetDeviceContainer const &', 'arg0')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer() [constructor]
+ cls.add_constructor([])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::Ptr<ns3::NetDevice> dev) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::NetDevice >', 'dev')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(std::string devName) [constructor]
+ cls.add_constructor([param('std::string', 'devName')])
+ ## net-device-container.h (module 'network'): ns3::NetDeviceContainer::NetDeviceContainer(ns3::NetDeviceContainer const & a, ns3::NetDeviceContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::NetDeviceContainer const &', 'a'), param('ns3::NetDeviceContainer const &', 'b')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::NetDeviceContainer other) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::NetDeviceContainer', 'other')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')])
+ ## net-device-container.h (module 'network'): void ns3::NetDeviceContainer::Add(std::string deviceName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'deviceName')])
+ ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
+ [],
+ is_const=True)
+ ## net-device-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::NetDevice>*,std::vector<ns3::Ptr<ns3::NetDevice>, std::allocator<ns3::Ptr<ns3::NetDevice> > > > ns3::NetDeviceContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::NetDevice > const, std::vector< ns3::Ptr< ns3::NetDevice > > >',
+ [],
+ is_const=True)
+ ## net-device-container.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::NetDeviceContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::NetDevice >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## net-device-container.h (module 'network'): uint32_t ns3::NetDeviceContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3NodeContainer_methods(root_module, cls):
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'arg0')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer() [constructor]
+ cls.add_constructor([])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::Ptr<ns3::Node> node) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::Node >', 'node')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(std::string nodeName) [constructor]
+ cls.add_constructor([param('std::string', 'nodeName')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd')])
+ ## node-container.h (module 'network'): ns3::NodeContainer::NodeContainer(ns3::NodeContainer const & a, ns3::NodeContainer const & b, ns3::NodeContainer const & c, ns3::NodeContainer const & d, ns3::NodeContainer const & e) [constructor]
+ cls.add_constructor([param('ns3::NodeContainer const &', 'a'), param('ns3::NodeContainer const &', 'b'), param('ns3::NodeContainer const &', 'c'), param('ns3::NodeContainer const &', 'd'), param('ns3::NodeContainer const &', 'e')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::NodeContainer other) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::NodeContainer', 'other')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Add(std::string nodeName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'nodeName')])
+ ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
+ [],
+ is_const=True)
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n) [member function]
+ cls.add_method('Create',
+ 'void',
+ [param('uint32_t', 'n')])
+ ## node-container.h (module 'network'): void ns3::NodeContainer::Create(uint32_t n, uint32_t systemId) [member function]
+ cls.add_method('Create',
+ 'void',
+ [param('uint32_t', 'n'), param('uint32_t', 'systemId')])
+ ## node-container.h (module 'network'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::Node>*,std::vector<ns3::Ptr<ns3::Node>, std::allocator<ns3::Ptr<ns3::Node> > > > ns3::NodeContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::Node > const, std::vector< ns3::Ptr< ns3::Node > > >',
+ [],
+ is_const=True)
+ ## node-container.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NodeContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::Node >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## node-container.h (module 'network'): static ns3::NodeContainer ns3::NodeContainer::GetGlobal() [member function]
+ cls.add_method('GetGlobal',
+ 'ns3::NodeContainer',
+ [],
+ is_static=True)
+ ## node-container.h (module 'network'): uint32_t ns3::NodeContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3ObjectBase_methods(root_module, cls):
+ ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase() [constructor]
+ cls.add_constructor([])
+ ## object-base.h (module 'core'): ns3::ObjectBase::ObjectBase(ns3::ObjectBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectBase const &', 'arg0')])
+ ## object-base.h (module 'core'): void ns3::ObjectBase::GetAttribute(std::string name, ns3::AttributeValue & value) const [member function]
+ cls.add_method('GetAttribute',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue &', 'value')],
+ is_const=True)
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::GetAttributeFailSafe(std::string name, ns3::AttributeValue & attribute) const [member function]
+ cls.add_method('GetAttributeFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue &', 'attribute')],
+ is_const=True)
+ ## object-base.h (module 'core'): ns3::TypeId ns3::ObjectBase::GetInstanceTypeId() const [member function]
+ cls.add_method('GetInstanceTypeId',
+ 'ns3::TypeId',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## object-base.h (module 'core'): static ns3::TypeId ns3::ObjectBase::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## object-base.h (module 'core'): void ns3::ObjectBase::SetAttribute(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetAttribute',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::SetAttributeFailSafe(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('SetAttributeFailSafe',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceConnect',
+ 'bool',
+ [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceConnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceConnectWithoutContext',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnect(std::string name, std::string context, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceDisconnect',
+ 'bool',
+ [param('std::string', 'name'), param('std::string', 'context'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): bool ns3::ObjectBase::TraceDisconnectWithoutContext(std::string name, ns3::CallbackBase const & cb) [member function]
+ cls.add_method('TraceDisconnectWithoutContext',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::CallbackBase const &', 'cb')])
+ ## object-base.h (module 'core'): void ns3::ObjectBase::ConstructSelf(ns3::AttributeList const & attributes) [member function]
+ cls.add_method('ConstructSelf',
+ 'void',
+ [param('ns3::AttributeList const &', 'attributes')],
+ visibility='protected')
+ ## object-base.h (module 'core'): void ns3::ObjectBase::NotifyConstructionCompleted() [member function]
+ cls.add_method('NotifyConstructionCompleted',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3ObjectDeleter_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): ns3::ObjectDeleter::ObjectDeleter(ns3::ObjectDeleter const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectDeleter const &', 'arg0')])
+ ## object.h (module 'core'): static void ns3::ObjectDeleter::Delete(ns3::Object * object) [member function]
+ cls.add_method('Delete',
+ 'void',
+ [param('ns3::Object *', 'object')],
+ is_static=True)
+ return
+
+def register_Ns3ObjectFactory_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory(ns3::ObjectFactory const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactory const &', 'arg0')])
+ ## object-factory.h (module 'core'): ns3::ObjectFactory::ObjectFactory() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::Ptr<ns3::Object> ns3::ObjectFactory::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::Object >',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): ns3::TypeId ns3::ObjectFactory::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(std::string name, ns3::AttributeValue const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::Set(ns3::AttributeList const & list) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::AttributeList const &', 'list')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(ns3::TypeId tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('ns3::TypeId', 'tid')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(char const * tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('char const *', 'tid')])
+ ## object-factory.h (module 'core'): void ns3::ObjectFactory::SetTypeId(std::string tid) [member function]
+ cls.add_method('SetTypeId',
+ 'void',
+ [param('std::string', 'tid')])
+ return
+
+def register_Ns3PacketMetadata_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(uint64_t uid, uint32_t size) [constructor]
+ cls.add_constructor([param('uint64_t', 'uid'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::PacketMetadata const &', 'o')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
+ cls.add_method('AddHeader',
+ 'void',
+ [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
+ cls.add_method('AddPaddingAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
+ cls.add_method('AddTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
+ cls.add_method('BeginItem',
+ 'ns3::PacketMetadata::ItemIterator',
+ [param('ns3::Buffer', 'buffer')],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::PacketMetadata',
+ [param('uint32_t', 'start'), param('uint32_t', 'end')],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Deserialize(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::Enable() [member function]
+ cls.add_method('Enable',
+ 'void',
+ [],
+ is_static=True)
+ ## packet-metadata.h (module 'network'): static void ns3::PacketMetadata::EnableChecking() [member function]
+ cls.add_method('EnableChecking',
+ 'void',
+ [],
+ is_static=True)
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): uint64_t ns3::PacketMetadata::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'end')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'start')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
+ cls.add_method('RemoveHeader',
+ 'void',
+ [param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
+ cls.add_method('RemoveTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
+ ## packet-metadata.h (module 'network'): uint32_t ns3::PacketMetadata::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3PacketMetadataItem_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item() [constructor]
+ cls.add_constructor([])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::current [variable]
+ cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentSize [variable]
+ cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
+ cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
+ cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::isFragment [variable]
+ cls.add_instance_attribute('isFragment', 'bool', is_const=False)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
+ cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
+ ## packet-metadata.h (module 'network'): bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet-metadata.h (module 'network'): ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::PacketMetadata::Item',
+ [])
+ return
+
+def register_Ns3PacketTagIterator_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
+ ## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::PacketTagIterator::Item',
+ [])
+ return
+
+def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
+ ## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
+ ## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
+ cls.add_method('GetTag',
+ 'void',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3PacketTagList_methods(root_module, cls):
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
+ cls.add_constructor([])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
+ ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
+ cls.add_method('Head',
+ 'ns3::PacketTagList::TagData const *',
+ [],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
+ cls.add_method('Peek',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
+ cls.add_method('Remove',
+ 'bool',
+ [param('ns3::Tag &', 'tag')])
+ ## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
+ cls.add_method('RemoveAll',
+ 'void',
+ [])
+ return
+
+def register_Ns3PacketTagListTagData_methods(root_module, cls):
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
+ cls.add_constructor([])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
+ cls.add_instance_attribute('count', 'uint32_t', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
+ cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
+ cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
+ ## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
+ cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
+ return
+
+def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
+ ## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper() [constructor]
+ cls.add_constructor([])
+ ## rv-battery-model-helper.h (module 'energy'): 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 (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::RvBatteryModelHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount(ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Tag_methods(root_module, cls):
+ ## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
+ cls.add_constructor([])
+ ## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Tag const &', 'arg0')])
+ ## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
+ cls.add_method('Deserialize',
+ 'void',
+ [param('ns3::TagBuffer', 'i')],
+ is_pure_virtual=True, is_virtual=True)
+ ## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::TagBuffer', 'i')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3TagBuffer_methods(root_module, cls):
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
+ ## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(uint8_t * start, uint8_t * end) [constructor]
+ cls.add_constructor([param('uint8_t *', 'start'), param('uint8_t *', 'end')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::CopyFrom(ns3::TagBuffer o) [member function]
+ cls.add_method('CopyFrom',
+ 'void',
+ [param('ns3::TagBuffer', 'o')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Read(uint8_t * buffer, uint32_t size) [member function]
+ cls.add_method('Read',
+ 'void',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
+ ## tag-buffer.h (module 'network'): double ns3::TagBuffer::ReadDouble() [member function]
+ cls.add_method('ReadDouble',
+ 'double',
+ [])
+ ## tag-buffer.h (module 'network'): uint16_t ns3::TagBuffer::ReadU16() [member function]
+ cls.add_method('ReadU16',
+ 'uint16_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint32_t ns3::TagBuffer::ReadU32() [member function]
+ cls.add_method('ReadU32',
+ 'uint32_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint64_t ns3::TagBuffer::ReadU64() [member function]
+ cls.add_method('ReadU64',
+ 'uint64_t',
+ [])
+ ## tag-buffer.h (module 'network'): uint8_t ns3::TagBuffer::ReadU8() [member function]
+ cls.add_method('ReadU8',
+ 'uint8_t',
+ [])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::TrimAtEnd(uint32_t trim) [member function]
+ cls.add_method('TrimAtEnd',
+ 'void',
+ [param('uint32_t', 'trim')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::Write(uint8_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Write',
+ 'void',
+ [param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteDouble(double v) [member function]
+ cls.add_method('WriteDouble',
+ 'void',
+ [param('double', 'v')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU16(uint16_t data) [member function]
+ cls.add_method('WriteU16',
+ 'void',
+ [param('uint16_t', 'data')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU32(uint32_t data) [member function]
+ cls.add_method('WriteU32',
+ 'void',
+ [param('uint32_t', 'data')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU64(uint64_t v) [member function]
+ cls.add_method('WriteU64',
+ 'void',
+ [param('uint64_t', 'v')])
+ ## tag-buffer.h (module 'network'): void ns3::TagBuffer::WriteU8(uint8_t v) [member function]
+ cls.add_method('WriteU8',
+ 'void',
+ [param('uint8_t', 'v')])
+ return
+
+def register_Ns3Time_methods(root_module, cls):
+ cls.add_binary_numeric_operator('*', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_numeric_operator('/', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('>')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_inplace_numeric_operator('*=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
+ cls.add_inplace_numeric_operator('/=', param('ns3::Time const &', 'right'))
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('<=')
+ cls.add_binary_comparison_operator('==')
+ cls.add_binary_comparison_operator('>=')
+ ## nstime.h (module 'core'): ns3::Time::Time() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::Time::Time(ns3::Time const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Time const &', 'o')])
+ ## nstime.h (module 'core'): ns3::Time::Time(ns3::HighPrecision const & data) [constructor]
+ cls.add_constructor([param('ns3::HighPrecision const &', 'data')])
+ ## nstime.h (module 'core'): ns3::Time::Time(std::string const & s) [constructor]
+ cls.add_constructor([param('std::string const &', 's')])
+ ## nstime.h (module 'core'): int ns3::Time::Compare(ns3::Time const & o) const [member function]
+ cls.add_method('Compare',
+ 'int',
+ [param('ns3::Time const &', 'o')],
+ is_const=True)
+ ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromDouble(double value, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('FromDouble',
+ 'ns3::Time',
+ [param('double', 'value'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): static ns3::Time ns3::Time::FromInteger(uint64_t value, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('FromInteger',
+ 'ns3::Time',
+ [param('uint64_t', 'value'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetFemtoSeconds() const [member function]
+ cls.add_method('GetFemtoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): ns3::HighPrecision const & ns3::Time::GetHighPrecision() const [member function]
+ cls.add_method('GetHighPrecision',
+ 'ns3::HighPrecision const &',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetMicroSeconds() const [member function]
+ cls.add_method('GetMicroSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetMilliSeconds() const [member function]
+ cls.add_method('GetMilliSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetNanoSeconds() const [member function]
+ cls.add_method('GetNanoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetPicoSeconds() const [member function]
+ cls.add_method('GetPicoSeconds',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): static ns3::Time::Unit ns3::Time::GetResolution() [member function]
+ cls.add_method('GetResolution',
+ 'ns3::Time::Unit',
+ [],
+ is_static=True)
+ ## nstime.h (module 'core'): double ns3::Time::GetSeconds() const [member function]
+ cls.add_method('GetSeconds',
+ 'double',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): int64_t ns3::Time::GetTimeStep() const [member function]
+ cls.add_method('GetTimeStep',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsNegative() const [member function]
+ cls.add_method('IsNegative',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsPositive() const [member function]
+ cls.add_method('IsPositive',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyNegative() const [member function]
+ cls.add_method('IsStrictlyNegative',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsStrictlyPositive() const [member function]
+ cls.add_method('IsStrictlyPositive',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): bool ns3::Time::IsZero() const [member function]
+ cls.add_method('IsZero',
+ 'bool',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): ns3::HighPrecision * ns3::Time::PeekHighPrecision() [member function]
+ cls.add_method('PeekHighPrecision',
+ 'ns3::HighPrecision *',
+ [])
+ ## nstime.h (module 'core'): static void ns3::Time::SetResolution(ns3::Time::Unit resolution) [member function]
+ cls.add_method('SetResolution',
+ 'void',
+ [param('ns3::Time::Unit', 'resolution')],
+ is_static=True)
+ ## nstime.h (module 'core'): static double ns3::Time::ToDouble(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('ToDouble',
+ 'double',
+ [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ ## nstime.h (module 'core'): static uint64_t ns3::Time::ToInteger(ns3::Time const & time, ns3::Time::Unit timeUnit) [member function]
+ cls.add_method('ToInteger',
+ 'uint64_t',
+ [param('ns3::Time const &', 'time'), param('ns3::Time::Unit', 'timeUnit')],
+ is_static=True)
+ return
+
+def register_Ns3TracedValue__Double_methods(root_module, cls):
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue() [constructor]
+ cls.add_constructor([])
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(ns3::TracedValue<double> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TracedValue< double > const &', 'o')])
+ ## traced-value.h (module 'core'): ns3::TracedValue<double>::TracedValue(double const & v) [constructor]
+ cls.add_constructor([param('double const &', 'v')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Connect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('ConnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Disconnect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('DisconnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): double ns3::TracedValue<double>::Get() const [member function]
+ cls.add_method('Get',
+ 'double',
+ [],
+ is_const=True)
+ ## traced-value.h (module 'core'): void ns3::TracedValue<double>::Set(double const & v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('double const &', 'v')])
+ return
+
+def register_Ns3TracedValue__Ns3Time_methods(root_module, cls):
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue() [constructor]
+ cls.add_constructor([])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::TracedValue<ns3::Time> const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TracedValue< ns3::Time > const &', 'o')])
+ ## traced-value.h (module 'core'): ns3::TracedValue<ns3::Time>::TracedValue(ns3::Time const & v) [constructor]
+ cls.add_constructor([param('ns3::Time const &', 'v')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Connect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::ConnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('ConnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
+ cls.add_method('Disconnect',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::DisconnectWithoutContext(ns3::CallbackBase const & cb) [member function]
+ cls.add_method('DisconnectWithoutContext',
+ 'void',
+ [param('ns3::CallbackBase const &', 'cb')])
+ ## traced-value.h (module 'core'): ns3::Time ns3::TracedValue<ns3::Time>::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## traced-value.h (module 'core'): void ns3::TracedValue<ns3::Time>::Set(ns3::Time const & v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Time const &', 'v')])
+ return
+
+def register_Ns3TypeId_methods(root_module, cls):
+ cls.add_binary_comparison_operator('<')
+ cls.add_binary_comparison_operator('!=')
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
+ cls.add_constructor([param('char const *', 'name')])
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeId::TypeId(ns3::TypeId const & o) [copy constructor]
+ cls.add_constructor([param('ns3::TypeId const &', 'o')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('AddAttribute',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddAttribute(std::string name, std::string help, uint32_t flags, ns3::AttributeValue const & initialValue, ns3::Ptr<ns3::AttributeAccessor const> accessor, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('AddAttribute',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('uint32_t', 'flags'), param('ns3::AttributeValue const &', 'initialValue'), param('ns3::Ptr< ns3::AttributeAccessor const >', 'accessor'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::AddTraceSource(std::string name, std::string help, ns3::Ptr<const ns3::TraceSourceAccessor> accessor) [member function]
+ cls.add_method('AddTraceSource',
+ 'ns3::TypeId',
+ [param('std::string', 'name'), param('std::string', 'help'), param('ns3::Ptr< ns3::TraceSourceAccessor const >', 'accessor')])
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeAccessor const> ns3::TypeId::GetAttributeAccessor(uint32_t i) const [member function]
+ cls.add_method('GetAttributeAccessor',
+ 'ns3::Ptr< ns3::AttributeAccessor const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeChecker const> ns3::TypeId::GetAttributeChecker(uint32_t i) const [member function]
+ cls.add_method('GetAttributeChecker',
+ 'ns3::Ptr< ns3::AttributeChecker const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeFlags(uint32_t i) const [member function]
+ cls.add_method('GetAttributeFlags',
+ 'uint32_t',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeFullName(uint32_t i) const [member function]
+ cls.add_method('GetAttributeFullName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeHelp(uint32_t i) const [member function]
+ cls.add_method('GetAttributeHelp',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue const> ns3::TypeId::GetAttributeInitialValue(uint32_t i) const [member function]
+ cls.add_method('GetAttributeInitialValue',
+ 'ns3::Ptr< ns3::AttributeValue const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetAttributeN() const [member function]
+ cls.add_method('GetAttributeN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetAttributeName(uint32_t i) const [member function]
+ cls.add_method('GetAttributeName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::Callback<ns3::ObjectBase*,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ns3::TypeId::GetConstructor() const [member function]
+ cls.add_method('GetConstructor',
+ 'ns3::Callback< ns3::ObjectBase *, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetGroupName() const [member function]
+ cls.add_method('GetGroupName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetName() const [member function]
+ cls.add_method('GetName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::GetParent() const [member function]
+ cls.add_method('GetParent',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::GetRegistered(uint32_t i) [member function]
+ cls.add_method('GetRegistered',
+ 'ns3::TypeId',
+ [param('uint32_t', 'i')],
+ is_static=True)
+ ## type-id.h (module 'core'): static uint32_t ns3::TypeId::GetRegisteredN() [member function]
+ cls.add_method('GetRegisteredN',
+ 'uint32_t',
+ [],
+ is_static=True)
+ ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::GetTraceSourceAccessor(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceAccessor',
+ 'ns3::Ptr< ns3::TraceSourceAccessor const >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceHelp(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceHelp',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint32_t ns3::TypeId::GetTraceSourceN() const [member function]
+ cls.add_method('GetTraceSourceN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeId::GetTraceSourceName(uint32_t i) const [member function]
+ cls.add_method('GetTraceSourceName',
+ 'std::string',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## type-id.h (module 'core'): uint16_t ns3::TypeId::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint16_t',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::HasConstructor() const [member function]
+ cls.add_method('HasConstructor',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::HasParent() const [member function]
+ cls.add_method('HasParent',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::HideFromDocumentation() [member function]
+ cls.add_method('HideFromDocumentation',
+ 'ns3::TypeId',
+ [])
+ ## type-id.h (module 'core'): bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
+ cls.add_method('IsChildOf',
+ 'bool',
+ [param('ns3::TypeId', 'other')],
+ is_const=True)
+ ## type-id.h (module 'core'): static bool ns3::TypeId::LookupAttributeByFullName(std::string fullName, ns3::TypeId::AttributeInfo * info) [member function]
+ cls.add_method('LookupAttributeByFullName',
+ 'bool',
+ [param('std::string', 'fullName'), param('ns3::TypeId::AttributeInfo *', 'info')],
+ is_static=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
+ cls.add_method('LookupAttributeByName',
+ 'bool',
+ [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)],
+ is_const=True)
+ ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function]
+ cls.add_method('LookupByName',
+ 'ns3::TypeId',
+ [param('std::string', 'name')],
+ is_static=True)
+ ## type-id.h (module 'core'): ns3::Ptr<const ns3::TraceSourceAccessor> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
+ cls.add_method('LookupTraceSourceByName',
+ 'ns3::Ptr< ns3::TraceSourceAccessor const >',
+ [param('std::string', 'name')],
+ is_const=True)
+ ## type-id.h (module 'core'): bool ns3::TypeId::MustHideFromDocumentation() const [member function]
+ cls.add_method('MustHideFromDocumentation',
+ 'bool',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetGroupName(std::string groupName) [member function]
+ cls.add_method('SetGroupName',
+ 'ns3::TypeId',
+ [param('std::string', 'groupName')])
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeId::SetParent(ns3::TypeId tid) [member function]
+ cls.add_method('SetParent',
+ 'ns3::TypeId',
+ [param('ns3::TypeId', 'tid')])
+ ## type-id.h (module 'core'): void ns3::TypeId::SetUid(uint16_t tid) [member function]
+ cls.add_method('SetUid',
+ 'void',
+ [param('uint16_t', 'tid')])
+ return
+
+def register_Ns3TypeIdAttributeInfo_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::AttributeInfo(ns3::TypeId::AttributeInfo const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeId::AttributeInfo const &', 'arg0')])
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::accessor [variable]
+ cls.add_instance_attribute('accessor', 'ns3::Ptr< ns3::AttributeAccessor const >', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::checker [variable]
+ cls.add_instance_attribute('checker', 'ns3::Ptr< ns3::AttributeChecker const >', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::flags [variable]
+ cls.add_instance_attribute('flags', 'uint32_t', is_const=False)
+ ## type-id.h (module 'core'): ns3::TypeId::AttributeInfo::initialValue [variable]
+ cls.add_instance_attribute('initialValue', 'ns3::Ptr< ns3::AttributeValue const >', is_const=False)
+ return
+
+def register_Ns3UnsafeAttributeList_methods(root_module, cls):
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
+ cls.add_constructor([])
+ ## attribute-list.h (module 'core'): ns3::UnsafeAttributeList::UnsafeAttributeList(ns3::UnsafeAttributeList const & o) [copy constructor]
+ cls.add_constructor([param('ns3::UnsafeAttributeList const &', 'o')])
+ ## attribute-list.h (module 'core'): ns3::AttributeList ns3::UnsafeAttributeList::GetSafe(std::string name) const [member function]
+ cls.add_method('GetSafe',
+ 'ns3::AttributeList',
+ [param('std::string', 'name')],
+ is_const=True)
+ ## attribute-list.h (module 'core'): void ns3::UnsafeAttributeList::Set(std::string name, ns3::AttributeValue const & param) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('std::string', 'name'), param('ns3::AttributeValue const &', 'param')])
+ return
+
+def register_Ns3WifiMode_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ cls.add_binary_comparison_operator('==')
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(ns3::WifiMode const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiMode const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode::WifiMode(std::string name) [constructor]
+ cls.add_constructor([param('std::string', 'name')])
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetBandwidth() const [member function]
+ cls.add_method('GetBandwidth',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate ns3::WifiMode::GetCodeRate() const [member function]
+ cls.add_method('GetCodeRate',
+ 'ns3::WifiCodeRate',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint8_t ns3::WifiMode::GetConstellationSize() const [member function]
+ cls.add_method('GetConstellationSize',
+ 'uint8_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetDataRate() const [member function]
+ cls.add_method('GetDataRate',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModulationClass ns3::WifiMode::GetModulationClass() const [member function]
+ cls.add_method('GetModulationClass',
+ 'ns3::WifiModulationClass',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetPhyRate() const [member function]
+ cls.add_method('GetPhyRate',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): uint32_t ns3::WifiMode::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): std::string ns3::WifiMode::GetUniqueName() const [member function]
+ cls.add_method('GetUniqueName',
+ 'std::string',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): bool ns3::WifiMode::IsMandatory() const [member function]
+ cls.add_method('IsMandatory',
+ 'bool',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3WifiModeFactory_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeFactory::WifiModeFactory(ns3::WifiModeFactory const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeFactory const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): static ns3::WifiMode ns3::WifiModeFactory::CreateWifiMode(std::string uniqueName, ns3::WifiModulationClass modClass, bool isMandatory, uint32_t bandwidth, uint32_t dataRate, ns3::WifiCodeRate codingRate, uint8_t constellationSize) [member function]
+ cls.add_method('CreateWifiMode',
+ 'ns3::WifiMode',
+ [param('std::string', 'uniqueName'), param('ns3::WifiModulationClass', 'modClass'), param('bool', 'isMandatory'), param('uint32_t', 'bandwidth'), param('uint32_t', 'dataRate'), param('ns3::WifiCodeRate', 'codingRate'), param('uint8_t', 'constellationSize')],
+ is_static=True)
+ return
+
+def register_Ns3WifiPhyListener_methods(root_module, cls):
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener() [constructor]
+ cls.add_constructor([])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhyListener::WifiPhyListener(ns3::WifiPhyListener const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiPhyListener const &', 'arg0')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyMaybeCcaBusyStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyMaybeCcaBusyStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndError() [member function]
+ cls.add_method('NotifyRxEndError',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxEndOk() [member function]
+ cls.add_method('NotifyRxEndOk',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyRxStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyRxStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifySwitchingStart(ns3::Time duration) [member function]
+ cls.add_method('NotifySwitchingStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhyListener::NotifyTxStart(ns3::Time duration) [member function]
+ cls.add_method('NotifyTxStart',
+ 'void',
+ [param('ns3::Time', 'duration')],
+ is_pure_virtual=True, is_virtual=True)
+ return
+
+def register_Ns3WifiRadioEnergyModelHelper_methods(root_module, cls):
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper(ns3::WifiRadioEnergyModelHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModelHelper const &', 'arg0')])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::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)
+ ## wifi-radio-energy-model-helper.h (module 'energy'): void ns3::WifiRadioEnergyModelHelper::SetDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('SetDepletionCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
+ ## wifi-radio-energy-model-helper.h (module 'energy'): ns3::Ptr<ns3::DeviceEnergyModel> ns3::WifiRadioEnergyModelHelper::DoInstall(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::EnergySource> source) const [member function]
+ cls.add_method('DoInstall',
+ 'ns3::Ptr< ns3::DeviceEnergyModel >',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3WifiRadioEnergyModelPhyListener_methods(root_module, cls):
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener(ns3::WifiRadioEnergyModelPhyListener const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModelPhyListener const &', 'arg0')])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndError() [member function]
+ cls.add_method('NotifyRxEndError',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::NotifyRxEndOk() [member function]
+ cls.add_method('NotifyRxEndOk',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): 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 (module 'energy'): void ns3::WifiRadioEnergyModelPhyListener::SetChangeStateCallback(ns3::Callback<void, int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> 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_Ns3Empty_methods(root_module, cls):
+ ## empty.h (module 'core'): ns3::empty::empty() [constructor]
+ cls.add_constructor([])
+ ## empty.h (module 'core'): ns3::empty::empty(ns3::empty const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::empty const &', 'arg0')])
+ return
+
+def register_Ns3BasicEnergySourceHelper_methods(root_module, cls):
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper(ns3::BasicEnergySourceHelper const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BasicEnergySourceHelper const &', 'arg0')])
+ ## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper::BasicEnergySourceHelper() [constructor]
+ cls.add_constructor([])
+ ## basic-energy-source-helper.h (module 'energy'): void ns3::BasicEnergySourceHelper::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)
+ ## basic-energy-source-helper.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::BasicEnergySourceHelper::DoInstall(ns3::Ptr<ns3::Node> 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_Ns3Chunk_methods(root_module, cls):
+ ## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
+ cls.add_constructor([])
+ ## chunk.h (module 'network'): ns3::Chunk::Chunk(ns3::Chunk const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Chunk const &', 'arg0')])
+ ## chunk.h (module 'network'): uint32_t ns3::Chunk::Deserialize(ns3::Buffer::Iterator start) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_virtual=True)
+ ## chunk.h (module 'network'): static ns3::TypeId ns3::Chunk::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## chunk.h (module 'network'): void ns3::Chunk::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3Header_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## header.h (module 'network'): ns3::Header::Header() [constructor]
+ cls.add_constructor([])
+ ## header.h (module 'network'): ns3::Header::Header(ns3::Header const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Header const &', 'arg0')])
+ ## header.h (module 'network'): uint32_t ns3::Header::Deserialize(ns3::Buffer::Iterator start) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_virtual=True)
+ ## header.h (module 'network'): uint32_t ns3::Header::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## header.h (module 'network'): static ns3::TypeId ns3::Header::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## header.h (module 'network'): void ns3::Header::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## header.h (module 'network'): void ns3::Header::Serialize(ns3::Buffer::Iterator start) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3Object_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::Object::Object() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function]
+ cls.add_method('AggregateObject',
+ 'void',
+ [param('ns3::Ptr< ns3::Object >', 'other')])
+ ## object.h (module 'core'): void ns3::Object::Dispose() [member function]
+ cls.add_method('Dispose',
+ 'void',
+ [])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator ns3::Object::GetAggregateIterator() const [member function]
+ cls.add_method('GetAggregateIterator',
+ 'ns3::Object::AggregateIterator',
+ [],
+ is_const=True)
+ ## object.h (module 'core'): ns3::TypeId ns3::Object::GetInstanceTypeId() const [member function]
+ cls.add_method('GetInstanceTypeId',
+ 'ns3::TypeId',
+ [],
+ is_const=True, is_virtual=True)
+ ## object.h (module 'core'): static ns3::TypeId ns3::Object::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## object.h (module 'core'): void ns3::Object::Start() [member function]
+ cls.add_method('Start',
+ 'void',
+ [])
+ ## object.h (module 'core'): ns3::Object::Object(ns3::Object const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Object const &', 'o')],
+ visibility='protected')
+ ## object.h (module 'core'): void ns3::Object::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## object.h (module 'core'): void ns3::Object::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## object.h (module 'core'): void ns3::Object::NotifyNewAggregate() [member function]
+ cls.add_method('NotifyNewAggregate',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3ObjectAggregateIterator_methods(root_module, cls):
+ ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator(ns3::Object::AggregateIterator const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Object::AggregateIterator const &', 'arg0')])
+ ## object.h (module 'core'): ns3::Object::AggregateIterator::AggregateIterator() [constructor]
+ cls.add_constructor([])
+ ## object.h (module 'core'): bool ns3::Object::AggregateIterator::HasNext() const [member function]
+ cls.add_method('HasNext',
+ 'bool',
+ [],
+ is_const=True)
+ ## object.h (module 'core'): ns3::Ptr<ns3::Object const> ns3::Object::AggregateIterator::Next() [member function]
+ cls.add_method('Next',
+ 'ns3::Ptr< ns3::Object const >',
+ [])
+ return
+
+def register_Ns3Scalar_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Scalar const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Scalar const &', 'arg0')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(double v) [constructor]
+ cls.add_constructor([param('double', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint32_t v) [constructor]
+ cls.add_constructor([param('uint32_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(int32_t v) [constructor]
+ cls.add_constructor([param('int32_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(uint64_t v) [constructor]
+ cls.add_constructor([param('uint64_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(int64_t v) [constructor]
+ cls.add_constructor([param('int64_t', 'v')])
+ ## nstime.h (module 'core'): ns3::Scalar::Scalar(ns3::Time t) [constructor]
+ cls.add_constructor([param('ns3::Time', 't')])
+ ## nstime.h (module 'core'): double ns3::Scalar::GetDouble() const [member function]
+ cls.add_method('GetDouble',
+ 'double',
+ [],
+ is_const=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeAccessor__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter< ns3::AttributeAccessor > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeChecker_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeChecker__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter< ns3::AttributeChecker > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeChecker, ns3::empty, ns3::DefaultDeleter<ns3::AttributeChecker> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3AttributeValue_Ns3Empty_Ns3DefaultDeleter__lt__ns3AttributeValue__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::SimpleRefCount(ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter< ns3::AttributeValue > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::AttributeValue, ns3::empty, ns3::DefaultDeleter<ns3::AttributeValue> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3CallbackImplBase_Ns3Empty_Ns3DefaultDeleter__lt__ns3CallbackImplBase__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::SimpleRefCount(ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter< ns3::CallbackImplBase > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::CallbackImplBase, ns3::empty, ns3::DefaultDeleter<ns3::CallbackImplBase> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3EventImpl_Ns3Empty_Ns3DefaultDeleter__lt__ns3EventImpl__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::SimpleRefCount(ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::EventImpl, ns3::empty, ns3::DefaultDeleter< ns3::EventImpl > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::EventImpl, ns3::empty, ns3::DefaultDeleter<ns3::EventImpl> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::SimpleRefCount(ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter< ns3::NixVector > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, cls):
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount() [constructor]
+ cls.add_constructor([])
+ ## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> > const & o) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter< ns3::Packet > > const &', 'o')])
+ ## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >::Cleanup() [member function]
+ cls.add_method('Cleanup',
+ 'void',
+ [],
+ is_static=True)
+ return
+
+def register_Ns3Trailer_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## trailer.h (module 'network'): ns3::Trailer::Trailer() [constructor]
+ cls.add_constructor([])
+ ## trailer.h (module 'network'): ns3::Trailer::Trailer(ns3::Trailer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Trailer const &', 'arg0')])
+ ## trailer.h (module 'network'): uint32_t ns3::Trailer::Deserialize(ns3::Buffer::Iterator end) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('ns3::Buffer::Iterator', 'end')],
+ is_pure_virtual=True, is_virtual=True)
+ ## trailer.h (module 'network'): uint32_t ns3::Trailer::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## trailer.h (module 'network'): static ns3::TypeId ns3::Trailer::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## trailer.h (module 'network'): void ns3::Trailer::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## trailer.h (module 'network'): void ns3::Trailer::Serialize(ns3::Buffer::Iterator start) const [member function]
+ cls.add_method('Serialize',
+ 'void',
+ [param('ns3::Buffer::Iterator', 'start')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3WifiPhy_methods(root_module, cls):
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy(ns3::WifiPhy const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiPhy const &', 'arg0')])
+ ## wifi-phy.h (module 'wifi'): ns3::WifiPhy::WifiPhy() [constructor]
+ cls.add_constructor([])
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::CalculateSnr(ns3::WifiMode txMode, double ber) const [member function]
+ cls.add_method('CalculateSnr',
+ 'double',
+ [param('ns3::WifiMode', 'txMode'), param('double', 'ber')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::CalculateTxDuration(uint32_t size, ns3::WifiMode payloadMode, ns3::WifiPreamble preamble) const [member function]
+ cls.add_method('CalculateTxDuration',
+ 'ns3::Time',
+ [param('uint32_t', 'size'), param('ns3::WifiMode', 'payloadMode'), param('ns3::WifiPreamble', 'preamble')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::ConfigureStandard(ns3::WifiPhyStandard standard) [member function]
+ cls.add_method('ConfigureStandard',
+ 'void',
+ [param('ns3::WifiPhyStandard', 'standard')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Ptr<ns3::WifiChannel> ns3::WifiPhy::GetChannel() const [member function]
+ cls.add_method('GetChannel',
+ 'ns3::Ptr< ns3::WifiChannel >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint16_t ns3::WifiPhy::GetChannelNumber() const [member function]
+ cls.add_method('GetChannelNumber',
+ 'uint16_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetDelayUntilIdle() [member function]
+ cls.add_method('GetDelayUntilIdle',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate11Mbps() [member function]
+ cls.add_method('GetDsssRate11Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate1Mbps() [member function]
+ cls.add_method('GetDsssRate1Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate2Mbps() [member function]
+ cls.add_method('GetDsssRate2Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetDsssRate5_5Mbps() [member function]
+ cls.add_method('GetDsssRate5_5Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate12Mbps() [member function]
+ cls.add_method('GetErpOfdmRate12Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate18Mbps() [member function]
+ cls.add_method('GetErpOfdmRate18Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate24Mbps() [member function]
+ cls.add_method('GetErpOfdmRate24Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate36Mbps() [member function]
+ cls.add_method('GetErpOfdmRate36Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate48Mbps() [member function]
+ cls.add_method('GetErpOfdmRate48Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate54Mbps() [member function]
+ cls.add_method('GetErpOfdmRate54Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate6Mbps() [member function]
+ cls.add_method('GetErpOfdmRate6Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetErpOfdmRate9Mbps() [member function]
+ cls.add_method('GetErpOfdmRate9Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetLastRxStartTime() const [member function]
+ cls.add_method('GetLastRxStartTime',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): ns3::WifiMode ns3::WifiPhy::GetMode(uint32_t mode) const [member function]
+ cls.add_method('GetMode',
+ 'ns3::WifiMode',
+ [param('uint32_t', 'mode')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNModes() const [member function]
+ cls.add_method('GetNModes',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): uint32_t ns3::WifiPhy::GetNTxPower() const [member function]
+ cls.add_method('GetNTxPower',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12Mbps() [member function]
+ cls.add_method('GetOfdmRate12Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate12MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate12MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate12MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate13_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate13_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18Mbps() [member function]
+ cls.add_method('GetOfdmRate18Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate18MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate18MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate1_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate1_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24Mbps() [member function]
+ cls.add_method('GetOfdmRate24Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate24MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate24MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate27MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate27MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate2_25MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate2_25MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate36Mbps() [member function]
+ cls.add_method('GetOfdmRate36Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate3MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate3MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate3MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate48Mbps() [member function]
+ cls.add_method('GetOfdmRate48Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate4_5MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate4_5MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate4_5MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate54Mbps() [member function]
+ cls.add_method('GetOfdmRate54Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6Mbps() [member function]
+ cls.add_method('GetOfdmRate6Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate6MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate6MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate6MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9Mbps() [member function]
+ cls.add_method('GetOfdmRate9Mbps',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW10MHz() [member function]
+ cls.add_method('GetOfdmRate9MbpsBW10MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::WifiMode ns3::WifiPhy::GetOfdmRate9MbpsBW5MHz() [member function]
+ cls.add_method('GetOfdmRate9MbpsBW5MHz',
+ 'ns3::WifiMode',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): ns3::Time ns3::WifiPhy::GetStateDuration() [member function]
+ cls.add_method('GetStateDuration',
+ 'ns3::Time',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerEnd() const [member function]
+ cls.add_method('GetTxPowerEnd',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): double ns3::WifiPhy::GetTxPowerStart() const [member function]
+ cls.add_method('GetTxPowerStart',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): static ns3::TypeId ns3::WifiPhy::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateBusy() [member function]
+ cls.add_method('IsStateBusy',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateCcaBusy() [member function]
+ cls.add_method('IsStateCcaBusy',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateIdle() [member function]
+ cls.add_method('IsStateIdle',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateRx() [member function]
+ cls.add_method('IsStateRx',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateSwitching() [member function]
+ cls.add_method('IsStateSwitching',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): bool ns3::WifiPhy::IsStateTx() [member function]
+ cls.add_method('IsStateTx',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffRx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble, double signalDbm, double noiseDbm) [member function]
+ cls.add_method('NotifyPromiscSniffRx',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble'), param('double', 'signalDbm'), param('double', 'noiseDbm')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyPromiscSniffTx(ns3::Ptr<const ns3::Packet> packet, uint16_t channelFreqMhz, uint16_t channelNumber, uint32_t rate, bool isShortPreamble) [member function]
+ cls.add_method('NotifyPromiscSniffTx',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'channelFreqMhz'), param('uint16_t', 'channelNumber'), param('uint32_t', 'rate'), param('bool', 'isShortPreamble')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxBegin',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxDrop',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyRxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyRxEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxBegin(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxBegin',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxDrop(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxDrop',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::NotifyTxEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('NotifyTxEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::RegisterListener(ns3::WifiPhyListener * listener) [member function]
+ cls.add_method('RegisterListener',
+ 'void',
+ [param('ns3::WifiPhyListener *', 'listener')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SendPacket(ns3::Ptr<const ns3::Packet> packet, ns3::WifiMode mode, ns3::WifiPreamble preamble, uint8_t txPowerLevel) [member function]
+ cls.add_method('SendPacket',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet'), param('ns3::WifiMode', 'mode'), param('ns3::WifiPreamble', 'preamble'), param('uint8_t', 'txPowerLevel')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetChannelNumber(uint16_t id) [member function]
+ cls.add_method('SetChannelNumber',
+ 'void',
+ [param('uint16_t', 'id')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveErrorCallback(ns3::Callback<void,ns3::Ptr<const ns3::Packet>,double,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
+ cls.add_method('SetReceiveErrorCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, double, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ ## wifi-phy.h (module 'wifi'): void ns3::WifiPhy::SetReceiveOkCallback(ns3::Callback<void,ns3::Ptr<ns3::Packet>,double,ns3::WifiMode,ns3::WifiPreamble,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> callback) [member function]
+ cls.add_method('SetReceiveOkCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::Packet >, double, ns3::WifiMode, ns3::WifiPreamble, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeAccessor_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Get(ns3::ObjectBase const * object, ns3::AttributeValue & attribute) const [member function]
+ cls.add_method('Get',
+ 'bool',
+ [param('ns3::ObjectBase const *', 'object'), param('ns3::AttributeValue &', 'attribute')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasGetter() const [member function]
+ cls.add_method('HasGetter',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::HasSetter() const [member function]
+ cls.add_method('HasSetter',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeAccessor::Set(ns3::ObjectBase * object, ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Set',
+ 'bool',
+ [param('ns3::ObjectBase *', 'object', transfer_ownership=False), param('ns3::AttributeValue const &', 'value')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeChecker_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker(ns3::AttributeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeChecker const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeChecker::AttributeChecker() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::Check(ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Check',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'value')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::Copy(ns3::AttributeValue const & source, ns3::AttributeValue & destination) const [member function]
+ cls.add_method('Copy',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'source'), param('ns3::AttributeValue &', 'destination')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeChecker::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetUnderlyingTypeInformation() const [member function]
+ cls.add_method('GetUnderlyingTypeInformation',
+ 'std::string',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeChecker::GetValueTypeName() const [member function]
+ cls.add_method('GetValueTypeName',
+ 'std::string',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeChecker::HasUnderlyingTypeInformation() const [member function]
+ cls.add_method('HasUnderlyingTypeInformation',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3AttributeValue_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue(ns3::AttributeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AttributeValue const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::AttributeValue::AttributeValue() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::AttributeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::AttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_pure_virtual=True, is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::AttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3BooleanChecker_methods(root_module, cls):
+ ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker() [constructor]
+ cls.add_constructor([])
+ ## boolean.h (module 'core'): ns3::BooleanChecker::BooleanChecker(ns3::BooleanChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BooleanChecker const &', 'arg0')])
+ return
+
+def register_Ns3BooleanValue_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(ns3::BooleanValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BooleanValue const &', 'arg0')])
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue() [constructor]
+ cls.add_constructor([])
+ ## boolean.h (module 'core'): ns3::BooleanValue::BooleanValue(bool value) [constructor]
+ cls.add_constructor([param('bool', 'value')])
+ ## boolean.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::BooleanValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## boolean.h (module 'core'): bool ns3::BooleanValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## boolean.h (module 'core'): bool ns3::BooleanValue::Get() const [member function]
+ cls.add_method('Get',
+ 'bool',
+ [],
+ is_const=True)
+ ## boolean.h (module 'core'): std::string ns3::BooleanValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## boolean.h (module 'core'): void ns3::BooleanValue::Set(bool value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('bool', 'value')])
+ return
+
+def register_Ns3CallbackChecker_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
+ return
+
+def register_Ns3CallbackImplBase_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackImplBase::CallbackImplBase(ns3::CallbackImplBase const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackImplBase const &', 'arg0')])
+ ## callback.h (module 'core'): bool ns3::CallbackImplBase::IsEqual(ns3::Ptr<ns3::CallbackImplBase const> other) const [member function]
+ cls.add_method('IsEqual',
+ 'bool',
+ [param('ns3::Ptr< ns3::CallbackImplBase const >', 'other')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3CallbackValue_methods(root_module, cls):
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue() [constructor]
+ cls.add_constructor([])
+ ## callback.h (module 'core'): ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
+ cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
+ ## callback.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## callback.h (module 'core'): bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## callback.h (module 'core'): std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## callback.h (module 'core'): void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::CallbackBase', 'base')])
+ return
+
+def register_Ns3DeviceEnergyModel_methods(root_module, cls):
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel(ns3::DeviceEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DeviceEnergyModel const &', 'arg0')])
+ ## device-energy-model.h (module 'energy'): ns3::DeviceEnergyModel::DeviceEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetCurrentA() const [member function]
+ cls.add_method('GetCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): static ns3::TypeId ns3::DeviceEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): void ns3::DeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_pure_virtual=True, is_virtual=True)
+ ## device-energy-model.h (module 'energy'): double ns3::DeviceEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3DoubleValue_methods(root_module, cls):
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue() [constructor]
+ cls.add_constructor([])
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(ns3::DoubleValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::DoubleValue const &', 'arg0')])
+ ## double.h (module 'core'): ns3::DoubleValue::DoubleValue(double const & value) [constructor]
+ cls.add_constructor([param('double const &', 'value')])
+ ## double.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::DoubleValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## double.h (module 'core'): bool ns3::DoubleValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## double.h (module 'core'): double ns3::DoubleValue::Get() const [member function]
+ cls.add_method('Get',
+ 'double',
+ [],
+ is_const=True)
+ ## double.h (module 'core'): std::string ns3::DoubleValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## double.h (module 'core'): void ns3::DoubleValue::Set(double const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('double const &', 'value')])
+ return
+
+def register_Ns3EmptyAttributeValue_methods(root_module, cls):
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue(ns3::EmptyAttributeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EmptyAttributeValue const &', 'arg0')])
+ ## attribute.h (module 'core'): ns3::EmptyAttributeValue::EmptyAttributeValue() [constructor]
+ cls.add_constructor([])
+ ## attribute.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EmptyAttributeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ ## attribute.h (module 'core'): bool ns3::EmptyAttributeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ visibility='private', is_virtual=True)
+ ## attribute.h (module 'core'): std::string ns3::EmptyAttributeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySource_methods(root_module, cls):
+ ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource(ns3::EnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySource const &', 'arg0')])
+ ## energy-source.h (module 'energy'): ns3::EnergySource::EnergySource() [constructor]
+ cls.add_constructor([])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::AppendDeviceEnergyModel(ns3::Ptr<ns3::DeviceEnergyModel> deviceEnergyModelPtr) [member function]
+ cls.add_method('AppendDeviceEnergyModel',
+ 'void',
+ [param('ns3::Ptr< ns3::DeviceEnergyModel >', 'deviceEnergyModelPtr')])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::DisposeDeviceModels() [member function]
+ cls.add_method('DisposeDeviceModels',
+ 'void',
+ [])
+ ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(ns3::TypeId tid) [member function]
+ cls.add_method('FindDeviceEnergyModels',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('ns3::TypeId', 'tid')])
+ ## energy-source.h (module 'energy'): ns3::DeviceEnergyModelContainer ns3::EnergySource::FindDeviceEnergyModels(std::string name) [member function]
+ cls.add_method('FindDeviceEnergyModels',
+ 'ns3::DeviceEnergyModelContainer',
+ [param('std::string', 'name')])
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::EnergySource::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_const=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): static ns3::TypeId ns3::EnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::StartDeviceModels() [member function]
+ cls.add_method('StartDeviceModels',
+ 'void',
+ [])
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_pure_virtual=True, is_virtual=True)
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::BreakDeviceEnergyModelRefCycle() [member function]
+ cls.add_method('BreakDeviceEnergyModelRefCycle',
+ 'void',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): double ns3::EnergySource::CalculateTotalCurrent() [member function]
+ cls.add_method('CalculateTotalCurrent',
+ 'double',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::NotifyEnergyDrained() [member function]
+ cls.add_method('NotifyEnergyDrained',
+ 'void',
+ [],
+ visibility='protected')
+ ## energy-source.h (module 'energy'): void ns3::EnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnergySourceContainer_methods(root_module, cls):
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnergySourceContainer const &', 'arg0')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer() [constructor]
+ cls.add_constructor([])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::Ptr<ns3::EnergySource> source) [constructor]
+ cls.add_constructor([param('ns3::Ptr< ns3::EnergySource >', 'source')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(std::string sourceName) [constructor]
+ cls.add_constructor([param('std::string', 'sourceName')])
+ ## energy-source-container.h (module 'energy'): ns3::EnergySourceContainer::EnergySourceContainer(ns3::EnergySourceContainer const & a, ns3::EnergySourceContainer const & b) [constructor]
+ cls.add_constructor([param('ns3::EnergySourceContainer const &', 'a'), param('ns3::EnergySourceContainer const &', 'b')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::EnergySourceContainer container) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::EnergySourceContainer', 'container')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')])
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::Add(std::string sourceName) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('std::string', 'sourceName')])
+ ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::Begin() const [member function]
+ cls.add_method('Begin',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): __gnu_cxx::__normal_iterator<const ns3::Ptr<ns3::EnergySource>*,std::vector<ns3::Ptr<ns3::EnergySource>, std::allocator<ns3::Ptr<ns3::EnergySource> > > > ns3::EnergySourceContainer::End() const [member function]
+ cls.add_method('End',
+ '__gnu_cxx::__normal_iterator< ns3::Ptr< ns3::EnergySource > const, std::vector< ns3::Ptr< ns3::EnergySource > > >',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): ns3::Ptr<ns3::EnergySource> ns3::EnergySourceContainer::Get(uint32_t i) const [member function]
+ cls.add_method('Get',
+ 'ns3::Ptr< ns3::EnergySource >',
+ [param('uint32_t', 'i')],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): uint32_t ns3::EnergySourceContainer::GetN() const [member function]
+ cls.add_method('GetN',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## energy-source-container.h (module 'energy'): static ns3::TypeId ns3::EnergySourceContainer::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## energy-source-container.h (module 'energy'): void ns3::EnergySourceContainer::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3EnumChecker_methods(root_module, cls):
+ ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker(ns3::EnumChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnumChecker const &', 'arg0')])
+ ## enum.h (module 'core'): ns3::EnumChecker::EnumChecker() [constructor]
+ cls.add_constructor([])
+ ## enum.h (module 'core'): void ns3::EnumChecker::Add(int v, std::string name) [member function]
+ cls.add_method('Add',
+ 'void',
+ [param('int', 'v'), param('std::string', 'name')])
+ ## enum.h (module 'core'): void ns3::EnumChecker::AddDefault(int v, std::string name) [member function]
+ cls.add_method('AddDefault',
+ 'void',
+ [param('int', 'v'), param('std::string', 'name')])
+ ## enum.h (module 'core'): bool ns3::EnumChecker::Check(ns3::AttributeValue const & value) const [member function]
+ cls.add_method('Check',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'value')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumChecker::Copy(ns3::AttributeValue const & src, ns3::AttributeValue & dst) const [member function]
+ cls.add_method('Copy',
+ 'bool',
+ [param('ns3::AttributeValue const &', 'src'), param('ns3::AttributeValue &', 'dst')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumChecker::Create() const [member function]
+ cls.add_method('Create',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): std::string ns3::EnumChecker::GetUnderlyingTypeInformation() const [member function]
+ cls.add_method('GetUnderlyingTypeInformation',
+ 'std::string',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): std::string ns3::EnumChecker::GetValueTypeName() const [member function]
+ cls.add_method('GetValueTypeName',
+ 'std::string',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumChecker::HasUnderlyingTypeInformation() const [member function]
+ cls.add_method('HasUnderlyingTypeInformation',
+ 'bool',
+ [],
+ is_const=True, is_virtual=True)
+ return
+
+def register_Ns3EnumValue_methods(root_module, cls):
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue(ns3::EnumValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EnumValue const &', 'arg0')])
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue() [constructor]
+ cls.add_constructor([])
+ ## enum.h (module 'core'): ns3::EnumValue::EnumValue(int v) [constructor]
+ cls.add_constructor([param('int', 'v')])
+ ## enum.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::EnumValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): bool ns3::EnumValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## enum.h (module 'core'): int ns3::EnumValue::Get() const [member function]
+ cls.add_method('Get',
+ 'int',
+ [],
+ is_const=True)
+ ## enum.h (module 'core'): std::string ns3::EnumValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## enum.h (module 'core'): void ns3::EnumValue::Set(int v) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('int', 'v')])
+ return
+
+def register_Ns3EventImpl_methods(root_module, cls):
+ ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl(ns3::EventImpl const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::EventImpl const &', 'arg0')])
+ ## event-impl.h (module 'core'): ns3::EventImpl::EventImpl() [constructor]
+ cls.add_constructor([])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Cancel() [member function]
+ cls.add_method('Cancel',
+ 'void',
+ [])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Invoke() [member function]
+ cls.add_method('Invoke',
+ 'void',
+ [])
+ ## event-impl.h (module 'core'): bool ns3::EventImpl::IsCancelled() [member function]
+ cls.add_method('IsCancelled',
+ 'bool',
+ [])
+ ## event-impl.h (module 'core'): void ns3::EventImpl::Notify() [member function]
+ cls.add_method('Notify',
+ 'void',
+ [],
+ is_pure_virtual=True, visibility='protected', is_virtual=True)
+ return
+
+def register_Ns3IntegerValue_methods(root_module, cls):
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue() [constructor]
+ cls.add_constructor([])
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(ns3::IntegerValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::IntegerValue const &', 'arg0')])
+ ## integer.h (module 'core'): ns3::IntegerValue::IntegerValue(int64_t const & value) [constructor]
+ cls.add_constructor([param('int64_t const &', 'value')])
+ ## integer.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::IntegerValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## integer.h (module 'core'): bool ns3::IntegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## integer.h (module 'core'): int64_t ns3::IntegerValue::Get() const [member function]
+ cls.add_method('Get',
+ 'int64_t',
+ [],
+ is_const=True)
+ ## integer.h (module 'core'): std::string ns3::IntegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## integer.h (module 'core'): void ns3::IntegerValue::Set(int64_t const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('int64_t const &', 'value')])
+ return
+
+def register_Ns3Ipv4AddressChecker_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressChecker::Ipv4AddressChecker(ns3::Ipv4AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv4AddressValue_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4AddressValue const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4AddressValue::Ipv4AddressValue(ns3::Ipv4Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv4Address const &', 'value')])
+ ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Address ns3::Ipv4AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv4Address',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): std::string ns3::Ipv4AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4AddressValue::Set(ns3::Ipv4Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv4Address const &', 'value')])
+ return
+
+def register_Ns3Ipv4MaskChecker_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskChecker::Ipv4MaskChecker(ns3::Ipv4MaskChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4MaskChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv4MaskValue_methods(root_module, cls):
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue() [constructor]
+ cls.add_constructor([])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4MaskValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv4MaskValue const &', 'arg0')])
+ ## ipv4-address.h (module 'network'): ns3::Ipv4MaskValue::Ipv4MaskValue(ns3::Ipv4Mask const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv4Mask const &', 'value')])
+ ## ipv4-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv4MaskValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): bool ns3::Ipv4MaskValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv4-address.h (module 'network'): ns3::Ipv4Mask ns3::Ipv4MaskValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv4Mask',
+ [],
+ is_const=True)
+ ## ipv4-address.h (module 'network'): std::string ns3::Ipv4MaskValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv4-address.h (module 'network'): void ns3::Ipv4MaskValue::Set(ns3::Ipv4Mask const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv4Mask const &', 'value')])
+ return
+
+def register_Ns3Ipv6AddressChecker_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressChecker::Ipv6AddressChecker(ns3::Ipv6AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv6AddressValue_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6AddressValue const &', 'arg0')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6AddressValue::Ipv6AddressValue(ns3::Ipv6Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Address const &', 'value')])
+ ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Address ns3::Ipv6AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv6Address',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): std::string ns3::Ipv6AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6AddressValue::Set(ns3::Ipv6Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv6Address const &', 'value')])
+ return
+
+def register_Ns3Ipv6PrefixChecker_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixChecker::Ipv6PrefixChecker(ns3::Ipv6PrefixChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6PrefixChecker const &', 'arg0')])
+ return
+
+def register_Ns3Ipv6PrefixValue_methods(root_module, cls):
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue() [constructor]
+ cls.add_constructor([])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6PrefixValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Ipv6PrefixValue const &', 'arg0')])
+ ## ipv6-address.h (module 'network'): ns3::Ipv6PrefixValue::Ipv6PrefixValue(ns3::Ipv6Prefix const & value) [constructor]
+ cls.add_constructor([param('ns3::Ipv6Prefix const &', 'value')])
+ ## ipv6-address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::Ipv6PrefixValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): bool ns3::Ipv6PrefixValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## ipv6-address.h (module 'network'): ns3::Ipv6Prefix ns3::Ipv6PrefixValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Ipv6Prefix',
+ [],
+ is_const=True)
+ ## ipv6-address.h (module 'network'): std::string ns3::Ipv6PrefixValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## ipv6-address.h (module 'network'): void ns3::Ipv6PrefixValue::Set(ns3::Ipv6Prefix const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Ipv6Prefix const &', 'value')])
+ return
+
+def register_Ns3LiIonEnergySource_methods(root_module, cls):
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource(ns3::LiIonEnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::LiIonEnergySource const &', 'arg0')])
+ ## li-ion-energy-source.h (module 'energy'): ns3::LiIonEnergySource::LiIonEnergySource() [constructor]
+ cls.add_constructor([])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DecreaseRemainingEnergy(double energyJ) [member function]
+ cls.add_method('DecreaseRemainingEnergy',
+ 'void',
+ [param('double', 'energyJ')],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): ns3::Time ns3::LiIonEnergySource::GetEnergyUpdateInterval() const [member function]
+ cls.add_method('GetEnergyUpdateInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): double ns3::LiIonEnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): static ns3::TypeId ns3::LiIonEnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::IncreaseRemainingEnergy(double energyJ) [member function]
+ cls.add_method('IncreaseRemainingEnergy',
+ 'void',
+ [param('double', 'energyJ')],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
+ cls.add_method('SetEnergyUpdateInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
+ cls.add_method('SetInitialEnergy',
+ 'void',
+ [param('double', 'initialEnergyJ')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::SetInitialSupplyVoltage(double supplyVoltageV) [member function]
+ cls.add_method('SetInitialSupplyVoltage',
+ 'void',
+ [param('double', 'supplyVoltageV')])
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## li-ion-energy-source.h (module 'energy'): void ns3::LiIonEnergySource::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3NetDevice_methods(root_module, cls):
+ ## net-device.h (module 'network'): ns3::NetDevice::NetDevice() [constructor]
+ cls.add_constructor([])
+ ## net-device.h (module 'network'): ns3::NetDevice::NetDevice(ns3::NetDevice const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::NetDevice const &', 'arg0')])
+ ## net-device.h (module 'network'): void ns3::NetDevice::AddLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('AddLinkChangeCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetAddress() const [member function]
+ cls.add_method('GetAddress',
+ 'ns3::Address',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetBroadcast() const [member function]
+ cls.add_method('GetBroadcast',
+ 'ns3::Address',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Ptr<ns3::Channel> ns3::NetDevice::GetChannel() const [member function]
+ cls.add_method('GetChannel',
+ 'ns3::Ptr< ns3::Channel >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): uint32_t ns3::NetDevice::GetIfIndex() const [member function]
+ cls.add_method('GetIfIndex',
+ 'uint32_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): uint16_t ns3::NetDevice::GetMtu() const [member function]
+ cls.add_method('GetMtu',
+ 'uint16_t',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
+ cls.add_method('GetMulticast',
+ 'ns3::Address',
+ [param('ns3::Ipv4Address', 'multicastGroup')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
+ cls.add_method('GetMulticast',
+ 'ns3::Address',
+ [param('ns3::Ipv6Address', 'addr')],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): ns3::Ptr<ns3::Node> ns3::NetDevice::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): static ns3::TypeId ns3::NetDevice::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsBridge() const [member function]
+ cls.add_method('IsBridge',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsBroadcast() const [member function]
+ cls.add_method('IsBroadcast',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsLinkUp() const [member function]
+ cls.add_method('IsLinkUp',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsMulticast() const [member function]
+ cls.add_method('IsMulticast',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::IsPointToPoint() const [member function]
+ cls.add_method('IsPointToPoint',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::NeedsArp() const [member function]
+ cls.add_method('NeedsArp',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
+ cls.add_method('Send',
+ 'bool',
+ [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
+ cls.add_method('SendFrom',
+ 'bool',
+ [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetAddress(ns3::Address address) [member function]
+ cls.add_method('SetAddress',
+ 'void',
+ [param('ns3::Address', 'address')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetIfIndex(uint32_t const index) [member function]
+ cls.add_method('SetIfIndex',
+ 'void',
+ [param('uint32_t const', 'index')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SetMtu(uint16_t const mtu) [member function]
+ cls.add_method('SetMtu',
+ 'bool',
+ [param('uint16_t const', 'mtu')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetPromiscReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,const ns3::Address&,ns3::NetDevice::PacketType,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
+ cls.add_method('SetPromiscReceiveCallback',
+ 'void',
+ [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): void ns3::NetDevice::SetReceiveCallback(ns3::Callback<bool,ns3::Ptr<ns3::NetDevice>,ns3::Ptr<const ns3::Packet>,short unsigned int,const ns3::Address&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> cb) [member function]
+ cls.add_method('SetReceiveCallback',
+ 'void',
+ [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, short unsigned int, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
+ is_pure_virtual=True, is_virtual=True)
+ ## net-device.h (module 'network'): bool ns3::NetDevice::SupportsSendFrom() const [member function]
+ cls.add_method('SupportsSendFrom',
+ 'bool',
+ [],
+ is_pure_virtual=True, is_const=True, is_virtual=True)
+ return
+
+def register_Ns3NixVector_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## nix-vector.h (module 'network'): ns3::NixVector::NixVector() [constructor]
+ cls.add_constructor([])
+ ## nix-vector.h (module 'network'): ns3::NixVector::NixVector(ns3::NixVector const & o) [copy constructor]
+ cls.add_constructor([param('ns3::NixVector const &', 'o')])
+ ## nix-vector.h (module 'network'): void ns3::NixVector::AddNeighborIndex(uint32_t newBits, uint32_t numberOfBits) [member function]
+ cls.add_method('AddNeighborIndex',
+ 'void',
+ [param('uint32_t', 'newBits'), param('uint32_t', 'numberOfBits')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::BitCount(uint32_t numberOfNeighbors) const [member function]
+ cls.add_method('BitCount',
+ 'uint32_t',
+ [param('uint32_t', 'numberOfNeighbors')],
+ is_const=True)
+ ## nix-vector.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::NixVector::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::NixVector >',
+ [],
+ is_const=True)
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Deserialize(uint32_t const * buffer, uint32_t size) [member function]
+ cls.add_method('Deserialize',
+ 'uint32_t',
+ [param('uint32_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::ExtractNeighborIndex(uint32_t numberOfBits) [member function]
+ cls.add_method('ExtractNeighborIndex',
+ 'uint32_t',
+ [param('uint32_t', 'numberOfBits')])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetRemainingBits() [member function]
+ cls.add_method('GetRemainingBits',
+ 'uint32_t',
+ [])
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## nix-vector.h (module 'network'): uint32_t ns3::NixVector::Serialize(uint32_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint32_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ return
+
+def register_Ns3Node_methods(root_module, cls):
+ ## node.h (module 'network'): ns3::Node::Node(ns3::Node const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::Node const &', 'arg0')])
+ ## node.h (module 'network'): ns3::Node::Node() [constructor]
+ cls.add_constructor([])
+ ## node.h (module 'network'): ns3::Node::Node(uint32_t systemId) [constructor]
+ cls.add_constructor([param('uint32_t', 'systemId')])
+ ## node.h (module 'network'): uint32_t ns3::Node::AddApplication(ns3::Ptr<ns3::Application> application) [member function]
+ cls.add_method('AddApplication',
+ 'uint32_t',
+ [param('ns3::Ptr< ns3::Application >', 'application')])
+ ## node.h (module 'network'): uint32_t ns3::Node::AddDevice(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('AddDevice',
+ 'uint32_t',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')])
+ ## node.h (module 'network'): static bool ns3::Node::ChecksumEnabled() [member function]
+ cls.add_method('ChecksumEnabled',
+ 'bool',
+ [],
+ is_static=True)
+ ## node.h (module 'network'): ns3::Ptr<ns3::Application> ns3::Node::GetApplication(uint32_t index) const [member function]
+ cls.add_method('GetApplication',
+ 'ns3::Ptr< ns3::Application >',
+ [param('uint32_t', 'index')],
+ is_const=True)
+ ## node.h (module 'network'): ns3::Ptr<ns3::NetDevice> ns3::Node::GetDevice(uint32_t index) const [member function]
+ cls.add_method('GetDevice',
+ 'ns3::Ptr< ns3::NetDevice >',
+ [param('uint32_t', 'index')],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetId() const [member function]
+ cls.add_method('GetId',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetNApplications() const [member function]
+ cls.add_method('GetNApplications',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetNDevices() const [member function]
+ cls.add_method('GetNDevices',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): uint32_t ns3::Node::GetSystemId() const [member function]
+ cls.add_method('GetSystemId',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## node.h (module 'network'): static ns3::TypeId ns3::Node::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## node.h (module 'network'): void ns3::Node::RegisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler, uint16_t protocolType, ns3::Ptr<ns3::NetDevice> device, bool promiscuous=false) [member function]
+ cls.add_method('RegisterProtocolHandler',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler'), param('uint16_t', 'protocolType'), param('ns3::Ptr< ns3::NetDevice >', 'device'), param('bool', 'promiscuous', default_value='false')])
+ ## node.h (module 'network'): void ns3::Node::UnregisterProtocolHandler(ns3::Callback<void, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> handler) [member function]
+ cls.add_method('UnregisterProtocolHandler',
+ 'void',
+ [param('ns3::Callback< void, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'handler')])
+ ## node.h (module 'network'): void ns3::Node::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## node.h (module 'network'): void ns3::Node::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='protected', is_virtual=True)
+ ## node.h (module 'network'): void ns3::Node::NotifyDeviceAdded(ns3::Ptr<ns3::NetDevice> device) [member function]
+ cls.add_method('NotifyDeviceAdded',
+ 'void',
+ [param('ns3::Ptr< ns3::NetDevice >', 'device')],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3ObjectFactoryChecker_methods(root_module, cls):
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryChecker::ObjectFactoryChecker(ns3::ObjectFactoryChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactoryChecker const &', 'arg0')])
+ return
+
+def register_Ns3ObjectFactoryValue_methods(root_module, cls):
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue() [constructor]
+ cls.add_constructor([])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactoryValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::ObjectFactoryValue const &', 'arg0')])
+ ## object-factory.h (module 'core'): ns3::ObjectFactoryValue::ObjectFactoryValue(ns3::ObjectFactory const & value) [constructor]
+ cls.add_constructor([param('ns3::ObjectFactory const &', 'value')])
+ ## object-factory.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::ObjectFactoryValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## object-factory.h (module 'core'): bool ns3::ObjectFactoryValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## object-factory.h (module 'core'): ns3::ObjectFactory ns3::ObjectFactoryValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::ObjectFactory',
+ [],
+ is_const=True)
+ ## object-factory.h (module 'core'): std::string ns3::ObjectFactoryValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## object-factory.h (module 'core'): void ns3::ObjectFactoryValue::Set(ns3::ObjectFactory const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::ObjectFactory const &', 'value')])
+ return
+
+def register_Ns3Packet_methods(root_module, cls):
+ cls.add_output_stream_operator()
+ ## packet.h (module 'network'): ns3::Packet::Packet() [constructor]
+ cls.add_constructor([])
+ ## packet.h (module 'network'): ns3::Packet::Packet(ns3::Packet const & o) [copy constructor]
+ cls.add_constructor([param('ns3::Packet const &', 'o')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint32_t size) [constructor]
+ cls.add_constructor([param('uint32_t', 'size')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size, bool magic) [constructor]
+ cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size'), param('bool', 'magic')])
+ ## packet.h (module 'network'): ns3::Packet::Packet(uint8_t const * buffer, uint32_t size) [constructor]
+ cls.add_constructor([param('uint8_t const *', 'buffer'), param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::AddAtEnd(ns3::Ptr<const ns3::Packet> packet) [member function]
+ cls.add_method('AddAtEnd',
+ 'void',
+ [param('ns3::Ptr< ns3::Packet const >', 'packet')])
+ ## packet.h (module 'network'): void ns3::Packet::AddByteTag(ns3::Tag const & tag) const [member function]
+ cls.add_method('AddByteTag',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::AddHeader(ns3::Header const & header) [member function]
+ cls.add_method('AddHeader',
+ 'void',
+ [param('ns3::Header const &', 'header')])
+ ## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
+ cls.add_method('AddPacketTag',
+ 'void',
+ [param('ns3::Tag const &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
+ cls.add_method('AddPaddingAtEnd',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::AddTrailer(ns3::Trailer const & trailer) [member function]
+ cls.add_method('AddTrailer',
+ 'void',
+ [param('ns3::Trailer const &', 'trailer')])
+ ## packet.h (module 'network'): ns3::PacketMetadata::ItemIterator ns3::Packet::BeginItem() const [member function]
+ cls.add_method('BeginItem',
+ 'ns3::PacketMetadata::ItemIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::Packet >',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::CopyData(std::ostream * os, uint32_t size) const [member function]
+ cls.add_method('CopyData',
+ 'void',
+ [param('std::ostream *', 'os'), param('uint32_t', 'size')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
+ cls.add_method('CreateFragment',
+ 'ns3::Ptr< ns3::Packet >',
+ [param('uint32_t', 'start'), param('uint32_t', 'length')],
+ is_const=True)
+ ## packet.h (module 'network'): static void ns3::Packet::EnableChecking() [member function]
+ cls.add_method('EnableChecking',
+ 'void',
+ [],
+ is_static=True)
+ ## packet.h (module 'network'): static void ns3::Packet::EnablePrinting() [member function]
+ cls.add_method('EnablePrinting',
+ 'void',
+ [],
+ is_static=True)
+ ## packet.h (module 'network'): bool ns3::Packet::FindFirstMatchingByteTag(ns3::Tag & tag) const [member function]
+ cls.add_method('FindFirstMatchingByteTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::ByteTagIterator ns3::Packet::GetByteTagIterator() const [member function]
+ cls.add_method('GetByteTagIterator',
+ 'ns3::ByteTagIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::Ptr<ns3::NixVector> ns3::Packet::GetNixVector() const [member function]
+ cls.add_method('GetNixVector',
+ 'ns3::Ptr< ns3::NixVector >',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
+ cls.add_method('GetPacketTagIterator',
+ 'ns3::PacketTagIterator',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
+ cls.add_method('GetSerializedSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::GetSize() const [member function]
+ cls.add_method('GetSize',
+ 'uint32_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint64_t ns3::Packet::GetUid() const [member function]
+ cls.add_method('GetUid',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## packet.h (module 'network'): uint8_t const * ns3::Packet::PeekData() const [member function]
+ cls.add_method('PeekData',
+ 'uint8_t const *',
+ [],
+ deprecated=True, is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::PeekHeader(ns3::Header & header) const [member function]
+ cls.add_method('PeekHeader',
+ 'uint32_t',
+ [param('ns3::Header &', 'header')],
+ is_const=True)
+ ## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
+ cls.add_method('PeekPacketTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')],
+ is_const=True)
+ ## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
+ cls.add_method('PeekTrailer',
+ 'uint32_t',
+ [param('ns3::Trailer &', 'trailer')])
+ ## packet.h (module 'network'): void ns3::Packet::Print(std::ostream & os) const [member function]
+ cls.add_method('Print',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::PrintByteTags(std::ostream & os) const [member function]
+ cls.add_method('PrintByteTags',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::PrintPacketTags(std::ostream & os) const [member function]
+ cls.add_method('PrintPacketTags',
+ 'void',
+ [param('std::ostream &', 'os')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAllByteTags() [member function]
+ cls.add_method('RemoveAllByteTags',
+ 'void',
+ [])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAllPacketTags() [member function]
+ cls.add_method('RemoveAllPacketTags',
+ 'void',
+ [])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAtEnd(uint32_t size) [member function]
+ cls.add_method('RemoveAtEnd',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): void ns3::Packet::RemoveAtStart(uint32_t size) [member function]
+ cls.add_method('RemoveAtStart',
+ 'void',
+ [param('uint32_t', 'size')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveHeader(ns3::Header & header) [member function]
+ cls.add_method('RemoveHeader',
+ 'uint32_t',
+ [param('ns3::Header &', 'header')])
+ ## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
+ cls.add_method('RemovePacketTag',
+ 'bool',
+ [param('ns3::Tag &', 'tag')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
+ cls.add_method('RemoveTrailer',
+ 'uint32_t',
+ [param('ns3::Trailer &', 'trailer')])
+ ## packet.h (module 'network'): uint32_t ns3::Packet::Serialize(uint8_t * buffer, uint32_t maxSize) const [member function]
+ cls.add_method('Serialize',
+ 'uint32_t',
+ [param('uint8_t *', 'buffer'), param('uint32_t', 'maxSize')],
+ is_const=True)
+ ## packet.h (module 'network'): void ns3::Packet::SetNixVector(ns3::Ptr<ns3::NixVector> arg0) [member function]
+ cls.add_method('SetNixVector',
+ 'void',
+ [param('ns3::Ptr< ns3::NixVector >', 'arg0')])
+ return
+
+def register_Ns3RvBatteryModel_methods(root_module, cls):
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel(ns3::RvBatteryModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::RvBatteryModel const &', 'arg0')])
+ ## rv-battery-model.h (module 'energy'): ns3::RvBatteryModel::RvBatteryModel() [constructor]
+ cls.add_constructor([])
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetAlpha() const [member function]
+ cls.add_method('GetAlpha',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBatteryLevel() [member function]
+ cls.add_method('GetBatteryLevel',
+ 'double',
+ [])
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetBeta() const [member function]
+ cls.add_method('GetBeta',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetCutoffVoltage() const [member function]
+ cls.add_method('GetCutoffVoltage',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetLifetime() const [member function]
+ cls.add_method('GetLifetime',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): int ns3::RvBatteryModel::GetNumOfTerms() const [member function]
+ cls.add_method('GetNumOfTerms',
+ 'int',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetOpenCircuitVoltage() const [member function]
+ cls.add_method('GetOpenCircuitVoltage',
+ 'double',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): ns3::Time ns3::RvBatteryModel::GetSamplingInterval() const [member function]
+ cls.add_method('GetSamplingInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## rv-battery-model.h (module 'energy'): double ns3::RvBatteryModel::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): static ns3::TypeId ns3::RvBatteryModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetAlpha(double alpha) [member function]
+ cls.add_method('SetAlpha',
+ 'void',
+ [param('double', 'alpha')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetBeta(double beta) [member function]
+ cls.add_method('SetBeta',
+ 'void',
+ [param('double', 'beta')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetCutoffVoltage(double voltage) [member function]
+ cls.add_method('SetCutoffVoltage',
+ 'void',
+ [param('double', 'voltage')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetNumOfTerms(int num) [member function]
+ cls.add_method('SetNumOfTerms',
+ 'void',
+ [param('int', 'num')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetOpenCircuitVoltage(double voltage) [member function]
+ cls.add_method('SetOpenCircuitVoltage',
+ 'void',
+ [param('double', 'voltage')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::SetSamplingInterval(ns3::Time interval) [member function]
+ cls.add_method('SetSamplingInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## rv-battery-model.h (module 'energy'): void ns3::RvBatteryModel::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_Ns3SimpleDeviceEnergyModel_methods(root_module, cls):
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel(ns3::SimpleDeviceEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::SimpleDeviceEnergyModel const &', 'arg0')])
+ ## simple-device-energy-model.h (module 'energy'): ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): ns3::Ptr<ns3::Node> ns3::SimpleDeviceEnergyModel::GetNode() const [member function]
+ cls.add_method('GetNode',
+ 'ns3::Ptr< ns3::Node >',
+ [],
+ is_const=True, is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): static ns3::TypeId ns3::SimpleDeviceEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetCurrentA(double current) [member function]
+ cls.add_method('SetCurrentA',
+ 'void',
+ [param('double', 'current')])
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::SetNode(ns3::Ptr<ns3::Node> node) [member function]
+ cls.add_method('SetNode',
+ 'void',
+ [param('ns3::Ptr< ns3::Node >', 'node')],
+ is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): void ns3::SimpleDeviceEnergyModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## simple-device-energy-model.h (module 'energy'): double ns3::SimpleDeviceEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3TimeChecker_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker(ns3::TimeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TimeChecker const &', 'arg0')])
+ return
+
+def register_Ns3TimeValue_methods(root_module, cls):
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue() [constructor]
+ cls.add_constructor([])
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::TimeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TimeValue const &', 'arg0')])
+ ## nstime.h (module 'core'): ns3::TimeValue::TimeValue(ns3::Time const & value) [constructor]
+ cls.add_constructor([param('ns3::Time const &', 'value')])
+ ## nstime.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TimeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## nstime.h (module 'core'): bool ns3::TimeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## nstime.h (module 'core'): ns3::Time ns3::TimeValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## nstime.h (module 'core'): std::string ns3::TimeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## nstime.h (module 'core'): void ns3::TimeValue::Set(ns3::Time const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Time const &', 'value')])
+ return
+
+def register_Ns3TypeIdChecker_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeIdChecker::TypeIdChecker(ns3::TypeIdChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeIdChecker const &', 'arg0')])
+ return
+
+def register_Ns3TypeIdValue_methods(root_module, cls):
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue() [constructor]
+ cls.add_constructor([])
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeIdValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::TypeIdValue const &', 'arg0')])
+ ## type-id.h (module 'core'): ns3::TypeIdValue::TypeIdValue(ns3::TypeId const & value) [constructor]
+ cls.add_constructor([param('ns3::TypeId const &', 'value')])
+ ## type-id.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::TypeIdValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## type-id.h (module 'core'): bool ns3::TypeIdValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## type-id.h (module 'core'): ns3::TypeId ns3::TypeIdValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::TypeId',
+ [],
+ is_const=True)
+ ## type-id.h (module 'core'): std::string ns3::TypeIdValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## type-id.h (module 'core'): void ns3::TypeIdValue::Set(ns3::TypeId const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::TypeId const &', 'value')])
+ return
+
+def register_Ns3UintegerValue_methods(root_module, cls):
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue() [constructor]
+ cls.add_constructor([])
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(ns3::UintegerValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::UintegerValue const &', 'arg0')])
+ ## uinteger.h (module 'core'): ns3::UintegerValue::UintegerValue(uint64_t const & value) [constructor]
+ cls.add_constructor([param('uint64_t const &', 'value')])
+ ## uinteger.h (module 'core'): ns3::Ptr<ns3::AttributeValue> ns3::UintegerValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## uinteger.h (module 'core'): bool ns3::UintegerValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## uinteger.h (module 'core'): uint64_t ns3::UintegerValue::Get() const [member function]
+ cls.add_method('Get',
+ 'uint64_t',
+ [],
+ is_const=True)
+ ## uinteger.h (module 'core'): std::string ns3::UintegerValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## uinteger.h (module 'core'): void ns3::UintegerValue::Set(uint64_t const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('uint64_t const &', 'value')])
+ return
+
+def register_Ns3WifiModeChecker_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeChecker::WifiModeChecker(ns3::WifiModeChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeChecker const &', 'arg0')])
+ return
+
+def register_Ns3WifiModeValue_methods(root_module, cls):
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue() [constructor]
+ cls.add_constructor([])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiModeValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiModeValue const &', 'arg0')])
+ ## wifi-mode.h (module 'wifi'): ns3::WifiModeValue::WifiModeValue(ns3::WifiMode const & value) [constructor]
+ cls.add_constructor([param('ns3::WifiMode const &', 'value')])
+ ## wifi-mode.h (module 'wifi'): ns3::Ptr<ns3::AttributeValue> ns3::WifiModeValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): bool ns3::WifiModeValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): ns3::WifiMode ns3::WifiModeValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::WifiMode',
+ [],
+ is_const=True)
+ ## wifi-mode.h (module 'wifi'): std::string ns3::WifiModeValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## wifi-mode.h (module 'wifi'): void ns3::WifiModeValue::Set(ns3::WifiMode const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::WifiMode const &', 'value')])
+ return
+
+def register_Ns3WifiRadioEnergyModel_methods(root_module, cls):
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel(ns3::WifiRadioEnergyModel const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::WifiRadioEnergyModel const &', 'arg0')])
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModel::WifiRadioEnergyModel() [constructor]
+ cls.add_constructor([])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::ChangeState(int newState) [member function]
+ cls.add_method('ChangeState',
+ 'void',
+ [param('int', 'newState')],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetCcaBusyCurrentA() const [member function]
+ cls.add_method('GetCcaBusyCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiPhy::State ns3::WifiRadioEnergyModel::GetCurrentState() const [member function]
+ cls.add_method('GetCurrentState',
+ 'ns3::WifiPhy::State',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetIdleCurrentA() const [member function]
+ cls.add_method('GetIdleCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): ns3::WifiRadioEnergyModelPhyListener * ns3::WifiRadioEnergyModel::GetPhyListener() [member function]
+ cls.add_method('GetPhyListener',
+ 'ns3::WifiRadioEnergyModelPhyListener *',
+ [])
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetRxCurrentA() const [member function]
+ cls.add_method('GetRxCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetSwitchingCurrentA() const [member function]
+ cls.add_method('GetSwitchingCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTotalEnergyConsumption() const [member function]
+ cls.add_method('GetTotalEnergyConsumption',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::GetTxCurrentA() const [member function]
+ cls.add_method('GetTxCurrentA',
+ 'double',
+ [],
+ is_const=True)
+ ## wifi-radio-energy-model.h (module 'energy'): static ns3::TypeId ns3::WifiRadioEnergyModel::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::HandleEnergyDepletion() [member function]
+ cls.add_method('HandleEnergyDepletion',
+ 'void',
+ [],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetCcaBusyCurrentA(double ccaBusyCurrentA) [member function]
+ cls.add_method('SetCcaBusyCurrentA',
+ 'void',
+ [param('double', 'ccaBusyCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergyDepletionCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
+ cls.add_method('SetEnergyDepletionCallback',
+ 'void',
+ [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetEnergySource(ns3::Ptr<ns3::EnergySource> source) [member function]
+ cls.add_method('SetEnergySource',
+ 'void',
+ [param('ns3::Ptr< ns3::EnergySource >', 'source')],
+ is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetIdleCurrentA(double idleCurrentA) [member function]
+ cls.add_method('SetIdleCurrentA',
+ 'void',
+ [param('double', 'idleCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetRxCurrentA(double rxCurrentA) [member function]
+ cls.add_method('SetRxCurrentA',
+ 'void',
+ [param('double', 'rxCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetSwitchingCurrentA(double switchingCurrentA) [member function]
+ cls.add_method('SetSwitchingCurrentA',
+ 'void',
+ [param('double', 'switchingCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::SetTxCurrentA(double txCurrentA) [member function]
+ cls.add_method('SetTxCurrentA',
+ 'void',
+ [param('double', 'txCurrentA')])
+ ## wifi-radio-energy-model.h (module 'energy'): void ns3::WifiRadioEnergyModel::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## wifi-radio-energy-model.h (module 'energy'): double ns3::WifiRadioEnergyModel::DoGetCurrentA() const [member function]
+ cls.add_method('DoGetCurrentA',
+ 'double',
+ [],
+ is_const=True, visibility='private', is_virtual=True)
+ return
+
+def register_Ns3AddressChecker_methods(root_module, cls):
+ ## address.h (module 'network'): ns3::AddressChecker::AddressChecker() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::AddressChecker::AddressChecker(ns3::AddressChecker const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AddressChecker const &', 'arg0')])
+ return
+
+def register_Ns3AddressValue_methods(root_module, cls):
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue() [constructor]
+ cls.add_constructor([])
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::AddressValue const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::AddressValue const &', 'arg0')])
+ ## address.h (module 'network'): ns3::AddressValue::AddressValue(ns3::Address const & value) [constructor]
+ cls.add_constructor([param('ns3::Address const &', 'value')])
+ ## address.h (module 'network'): ns3::Ptr<ns3::AttributeValue> ns3::AddressValue::Copy() const [member function]
+ cls.add_method('Copy',
+ 'ns3::Ptr< ns3::AttributeValue >',
+ [],
+ is_const=True, is_virtual=True)
+ ## address.h (module 'network'): bool ns3::AddressValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
+ cls.add_method('DeserializeFromString',
+ 'bool',
+ [param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_virtual=True)
+ ## address.h (module 'network'): ns3::Address ns3::AddressValue::Get() const [member function]
+ cls.add_method('Get',
+ 'ns3::Address',
+ [],
+ is_const=True)
+ ## address.h (module 'network'): std::string ns3::AddressValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
+ cls.add_method('SerializeToString',
+ 'std::string',
+ [param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
+ is_const=True, is_virtual=True)
+ ## address.h (module 'network'): void ns3::AddressValue::Set(ns3::Address const & value) [member function]
+ cls.add_method('Set',
+ 'void',
+ [param('ns3::Address const &', 'value')])
+ return
+
+def register_Ns3BasicEnergySource_methods(root_module, cls):
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource(ns3::BasicEnergySource const & arg0) [copy constructor]
+ cls.add_constructor([param('ns3::BasicEnergySource const &', 'arg0')])
+ ## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource::BasicEnergySource() [constructor]
+ cls.add_constructor([])
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetEnergyFraction() [member function]
+ cls.add_method('GetEnergyFraction',
+ 'double',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): ns3::Time ns3::BasicEnergySource::GetEnergyUpdateInterval() const [member function]
+ cls.add_method('GetEnergyUpdateInterval',
+ 'ns3::Time',
+ [],
+ is_const=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetInitialEnergy() const [member function]
+ cls.add_method('GetInitialEnergy',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetRemainingEnergy() [member function]
+ cls.add_method('GetRemainingEnergy',
+ 'double',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): double ns3::BasicEnergySource::GetSupplyVoltage() const [member function]
+ cls.add_method('GetSupplyVoltage',
+ 'double',
+ [],
+ is_const=True, is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): static ns3::TypeId ns3::BasicEnergySource::GetTypeId() [member function]
+ cls.add_method('GetTypeId',
+ 'ns3::TypeId',
+ [],
+ is_static=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetEnergyUpdateInterval(ns3::Time interval) [member function]
+ cls.add_method('SetEnergyUpdateInterval',
+ 'void',
+ [param('ns3::Time', 'interval')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetInitialEnergy(double initialEnergyJ) [member function]
+ cls.add_method('SetInitialEnergy',
+ 'void',
+ [param('double', 'initialEnergyJ')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::SetSupplyVoltage(double supplyVoltageV) [member function]
+ cls.add_method('SetSupplyVoltage',
+ 'void',
+ [param('double', 'supplyVoltageV')])
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::UpdateEnergySource() [member function]
+ cls.add_method('UpdateEnergySource',
+ 'void',
+ [],
+ is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoDispose() [member function]
+ cls.add_method('DoDispose',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ ## basic-energy-source.h (module 'energy'): void ns3::BasicEnergySource::DoStart() [member function]
+ cls.add_method('DoStart',
+ 'void',
+ [],
+ visibility='private', is_virtual=True)
+ return
+
+def register_functions(root_module):
+ module = root_module
+ register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
+ register_functions_ns3_internal(module.get_submodule('internal'), root_module)
+ return
+
+def register_functions_ns3_FatalImpl(module, root_module):
+ return
+
+def register_functions_ns3_internal(module, root_module):
+ return
+
+def main():
+ out = FileCodeSink(sys.stdout)
+ root_module = module_init()
+ register_types(root_module)
+ register_methods(root_module)
+ register_functions(root_module)
+ root_module.generate(out)
+
+if __name__ == '__main__':
+ main()
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/examples/li-ion-energy-source.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,102 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Andrea Sacco
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Andrea Sacco <andrea.sacco85@gmail.com>
+ */
+
+#include "ns3/log.h"
+#include "ns3/simulator.h"
+#include "ns3/simple-device-energy-model.h"
+#include "ns3/li-ion-energy-source.h"
+#include "ns3/energy-source-container.h"
+
+using namespace ns3;
+
+/**
+ * In this simple example, we show how to create and drain energy from a
+ * LiIonEnergySource.
+ * We make a series of discharge calls to the energy source class with
+ * different current drain and duration until all the energy is depleted
+ * from the cell.
+ *
+ * Every 20 seconds it is printed out the actual cell voltage to verify
+ * that it follows the discharge curve of the datasheet [1].
+ *
+ * At the end of the example it is verified that after the energy depletion
+ * call, the cell voltage is below the threshold voltage.
+ *
+ * References:
+ * [1] Panasonic CGR18650DA Datasheet, http://www.panasonic.com/industrial/includes/pdf/Panasonic_LiIon_CGR18650DA.pdf
+ */
+
+static void
+PrintCellInfo (Ptr<LiIonEnergySource> es)
+{
+ std::cout << "At " << Simulator::Now ().GetSeconds () << " Cell voltage: " << es->GetSupplyVoltage () << " V Remaining Capacity: " <<
+ es->GetRemainingEnergy () / (3.6 * 3600) << " Ah" << std::endl;
+
+ if (!Simulator::IsFinished ())
+ {
+ Simulator::Schedule (Seconds (20),
+ &PrintCellInfo,
+ es);
+ }
+}
+
+int
+main (int argc, char **argv)
+{
+ // uncomment below to see the energy consumption details
+ // LogComponentEnable ("LiIonEnergySource", LOG_LEVEL_DEBUG);
+
+ Ptr<Node> node = CreateObject<Node> ();
+
+ Ptr<SimpleDeviceEnergyModel> sem = CreateObject<SimpleDeviceEnergyModel> ();
+ Ptr<EnergySourceContainer> esCont = CreateObject<EnergySourceContainer> ();
+ Ptr<LiIonEnergySource> es = CreateObject<LiIonEnergySource> ();
+ esCont->Add (es);
+ es->SetNode (node);
+ sem->SetEnergySource (es);
+ es->AppendDeviceEnergyModel (sem);
+ sem->SetNode (node);
+ node->AggregateObject (esCont);
+
+ Time now = Simulator::Now ();
+
+ // discharge at 2.33 A for 1700 seconds
+ sem->SetCurrentA (2.33);
+ now += Seconds (1701);
+
+
+ // discharge at 4.66 A for 628 seconds
+ Simulator::Schedule (now,
+ &SimpleDeviceEnergyModel::SetCurrentA,
+ sem,
+ 4.66);
+ now += Seconds (600);
+
+ PrintCellInfo (es);
+
+ Simulator::Stop (now);
+ Simulator::Run ();
+ Simulator::Destroy ();
+
+ // the cell voltage should be under 3.3v
+ DoubleValue v;
+ es->GetAttribute ("ThresholdVoltage", v);
+ NS_ASSERT (es->GetSupplyVoltage () <= v.Get ());
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/examples/wscript Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,5 @@
+## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+def build(bld):
+ obj = bld.create_ns3_program('li-ion-energy-source', ['core', 'energy'])
+ obj.source = 'li-ion-energy-source.cc'
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/basic-energy-source-helper.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,57 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "basic-energy-source-helper.h"
+#include "ns3/energy-source.h"
+
+namespace ns3 {
+
+BasicEnergySourceHelper::BasicEnergySourceHelper ()
+{
+ m_basicEnergySource.SetTypeId ("ns3::BasicEnergySource");
+}
+
+BasicEnergySourceHelper::~BasicEnergySourceHelper ()
+{
+}
+
+void
+BasicEnergySourceHelper::Set (std::string name, const AttributeValue &v)
+{
+ m_basicEnergySource.Set (name, v);
+}
+
+Ptr<EnergySource>
+BasicEnergySourceHelper::DoInstall (Ptr<Node> node) const
+{
+ NS_ASSERT (node != NULL);
+ // check if energy source already exists
+ Ptr<EnergySource> source = node->GetObject<EnergySource> ();
+ if (source != NULL)
+ {
+ NS_FATAL_ERROR ("Energy source already installed!");
+ }
+ source = m_basicEnergySource.Create<EnergySource> ();
+ NS_ASSERT (source != NULL);
+ source->SetNode (node);
+ return source;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/basic-energy-source-helper.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,50 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef BASIC_ENERGY_SOURCE_HELPER_H
+#define BASIC_ENERGY_SOURCE_HELPER_H
+
+#include "energy-model-helper.h"
+#include "ns3/node.h"
+
+namespace ns3 {
+
+/**
+ * \brief Creates a BasicEnergySource object.
+ */
+class BasicEnergySourceHelper : public EnergySourceHelper
+{
+public:
+ BasicEnergySourceHelper ();
+ ~BasicEnergySourceHelper ();
+
+ void Set (std::string name, const AttributeValue &v);
+
+private:
+ virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const;
+
+private:
+ ObjectFactory m_basicEnergySource;
+
+};
+
+} // namespace ns3
+
+#endif /* BASIC_ENERGY_SOURCE_HELPER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/energy-model-helper.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,122 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "energy-model-helper.h"
+#include "ns3/config.h"
+#include "ns3/names.h"
+
+namespace ns3 {
+
+/*
+ * EnergySourceHelper
+ */
+EnergySourceHelper::~EnergySourceHelper ()
+{
+}
+
+EnergySourceContainer
+EnergySourceHelper::Install (Ptr<Node> node) const
+{
+ return Install (NodeContainer (node));
+}
+
+EnergySourceContainer
+EnergySourceHelper::Install (NodeContainer c) const
+{
+ EnergySourceContainer container;
+ for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i)
+ {
+ Ptr<EnergySource> src = DoInstall (*i);
+ container.Add (src);
+ /*
+ * Check if EnergySourceContainer is already aggregated to target node. If
+ * not, create a new EnergySourceContainer and aggregate it to node.
+ */
+ Ptr<EnergySourceContainer> EnergySourceContrainerOnNode =
+ (*i)->GetObject<EnergySourceContainer> ();
+ if (EnergySourceContrainerOnNode == NULL)
+ {
+ ObjectFactory fac;
+ fac.SetTypeId ("ns3::EnergySourceContainer");
+ EnergySourceContrainerOnNode = fac.Create<EnergySourceContainer> ();
+ EnergySourceContrainerOnNode->Add (src);
+ (*i)->AggregateObject (EnergySourceContrainerOnNode);
+ }
+ else
+ {
+ EnergySourceContrainerOnNode->Add (src); // append new EnergySource
+ }
+ }
+ return container;
+}
+
+EnergySourceContainer
+EnergySourceHelper::Install (std::string nodeName) const
+{
+ Ptr<Node> node = Names::Find<Node> (nodeName);
+ return Install (node);
+}
+
+EnergySourceContainer
+EnergySourceHelper::InstallAll (void) const
+{
+ return Install (NodeContainer::GetGlobal ());
+}
+
+/*
+ * DeviceEnergyModelHelper
+ */
+DeviceEnergyModelHelper::~DeviceEnergyModelHelper ()
+{
+}
+
+DeviceEnergyModelContainer
+DeviceEnergyModelHelper::Install (Ptr<NetDevice> device,
+ Ptr<EnergySource> source) const
+{
+ NS_ASSERT (device != NULL);
+ NS_ASSERT (source != NULL);
+ // check to make sure source and net device are on the same node
+ NS_ASSERT (device->GetNode () == source->GetNode ());
+ DeviceEnergyModelContainer container (DoInstall (device, source));
+ return container;
+}
+
+DeviceEnergyModelContainer
+DeviceEnergyModelHelper::Install (NetDeviceContainer deviceContainer,
+ EnergySourceContainer sourceContainer) const
+{
+ NS_ASSERT (deviceContainer.GetN () <= sourceContainer.GetN ());
+ DeviceEnergyModelContainer container;
+ NetDeviceContainer::Iterator dev = deviceContainer.Begin ();
+ EnergySourceContainer::Iterator src = sourceContainer.Begin ();
+ while (dev != deviceContainer.End ())
+ {
+ // check to make sure source and net device are on the same node
+ NS_ASSERT ((*dev)->GetNode () == (*src)->GetNode ());
+ Ptr<DeviceEnergyModel> model = DoInstall (*dev, *src);
+ container.Add (model);
+ dev++;
+ src++;
+ }
+ return container;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/energy-model-helper.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,168 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef ENERGY_MODEL_HELPER_H
+#define ENERGY_MODEL_HELPER_H
+
+#include "ns3/attribute.h"
+#include "ns3/object-factory.h"
+#include "ns3/node-container.h"
+#include "ns3/ptr.h"
+#include "ns3/net-device.h"
+#include "ns3/net-device-container.h"
+#include "ns3/energy-source.h"
+#include "ns3/device-energy-model.h"
+#include "ns3/device-energy-model-container.h"
+#include "energy-source-container.h"
+
+namespace ns3 {
+
+/**
+ * \brief Creates EnergySource objects.
+ *
+ * This class creates and installs an energy source onto network nodes. Only a
+ * single source can exist on a network node.
+ */
+class EnergySourceHelper
+{
+public:
+ virtual ~EnergySourceHelper ();
+
+ /**
+ * \param name Name of attribute to set.
+ * \param v Value of the attribute.
+ *
+ * Sets one of the attributes of underlying EnergySource.
+ */
+ virtual void Set (std::string name, const AttributeValue &v) = 0;
+
+ /**
+ * \param node Pointer to the node where EnergySource will be installed.
+ * \returns An EnergySourceContainer which contains all the EnergySources.
+ *
+ * This function installs an EnergySource onto a node.
+ */
+ EnergySourceContainer Install (Ptr<Node> node) const;
+
+ /**
+ * \param c List of nodes where EnergySource will be installed.
+ * \returns An EnergySourceContainer which contains all the EnergySources.
+ *
+ * This function installs an EnergySource onto a list of nodes.
+ */
+ EnergySourceContainer Install (NodeContainer c) const;
+
+ /**
+ * \param nodeName Name of node where EnergySource will be installed.
+ * \returns An EnergySourceContainer which contains all the EnergySources.
+ *
+ * This function installs an EnergySource onto a node.
+ */
+ EnergySourceContainer Install (std::string nodeName) const;
+
+ /**
+ * \brief This function installs an EnergySource on all nodes in simulation.
+ *
+ * \returns An EnergySourceContainer which contains all the EnergySources.
+ */
+ EnergySourceContainer InstallAll (void) const;
+
+
+private:
+ /**
+ * \param node Pointer to node where the energy source is to be installed.
+ * \returns Pointer to the created EnergySource.
+ *
+ * Child classes of EnergySourceHelper only have to implement this function,
+ * to create and aggregate an EnergySource object onto a single node. Rest of
+ * the installation process (eg. installing EnergySource on set of nodes) is
+ * implemented in the EnergySourceHelper base class.
+ */
+ virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const = 0;
+
+};
+
+
+/**
+ * \brief Creates DeviceEnergyModel objects.
+ *
+ * This class helps to create and install DeviceEnergyModel onto NetDevice. A
+ * DeviceEnergyModel is connected to a NetDevice (or PHY object) by callbacks.
+ * Note that DeviceEnergyModel objects are *not* aggregated onto the node. They
+ * can be accessed through the EnergySource object, which *is* aggregated onto
+ * the node.
+ */
+class DeviceEnergyModelHelper
+{
+public:
+ virtual ~DeviceEnergyModelHelper ();
+
+ /**
+ * \param name Name of attribute to set.
+ * \param v Value of the attribute.
+ *
+ * Sets one of the attributes of underlying DeviceEnergyModel.
+ */
+ virtual void Set (std::string name, const AttributeValue &v) = 0;
+
+ /**
+ * \param device Pointer to the NetDevice to install DeviceEnergyModel.
+ * \param source The EnergySource the DeviceEnergyModel will be using.
+ * \returns An DeviceEnergyModelContainer contains all the DeviceEnergyModels.
+ *
+ * Installs an DeviceEnergyModel with a specified EnergySource onto a
+ * xNetDevice.
+ */
+ DeviceEnergyModelContainer Install (Ptr<NetDevice> device,
+ Ptr<EnergySource> source) const;
+
+ /**
+ * \param deviceContainer List of NetDevices to be install DeviceEnergyModel
+ * objects.
+ * \param sourceContainer List of EnergySource the DeviceEnergyModel will be
+ * using.
+ * \returns An DeviceEnergyModelContainer contains all the DeviceEnergyModels.
+ *
+ * Installs DeviceEnergyModels with specified EnergySources onto a list of
+ * NetDevices.
+ */
+ DeviceEnergyModelContainer Install (NetDeviceContainer deviceContainer,
+ EnergySourceContainer sourceContainer) const;
+
+
+private:
+ /**
+ * \param device The net device corresponding to DeviceEnergyModel object.
+ * \param source The EnergySource the DeviceEnergyModel will be using.
+ * \returns Pointer to the created DeviceEnergyModel.
+ *
+ * Child classes of DeviceEnergyModelHelper only have to implement this
+ * function, to create and aggregate an DeviceEnergyModel object onto a single
+ * node. The rest of the installation process (eg. installing EnergySource on
+ * set of nodes) is implemented in the DeviceEnergyModelHelper base class.
+ */
+ virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device,
+ Ptr<EnergySource> source) const = 0;
+
+};
+
+} // namespace ns3
+
+#endif /* ENERGY_MODEL_HELPER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/energy-source-container.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,143 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2008 INRIA
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
+ * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "energy-source-container.h"
+#include "ns3/names.h"
+
+namespace ns3 {
+
+TypeId
+EnergySourceContainer::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::EnergySourceContainer")
+ .SetParent<Object> ()
+ .AddConstructor<EnergySourceContainer> ()
+ ;
+ return tid;
+}
+
+EnergySourceContainer::EnergySourceContainer ()
+{
+}
+
+EnergySourceContainer::~EnergySourceContainer ()
+{
+}
+
+EnergySourceContainer::EnergySourceContainer (Ptr<EnergySource> source)
+{
+ NS_ASSERT (source != NULL);
+ m_sources.push_back (source);
+}
+
+EnergySourceContainer::EnergySourceContainer (std::string sourceName)
+{
+ Ptr<EnergySource> source = Names::Find<EnergySource> (sourceName);
+ NS_ASSERT (source != NULL);
+ m_sources.push_back (source);
+}
+
+EnergySourceContainer::EnergySourceContainer (const EnergySourceContainer &a,
+ const EnergySourceContainer &b)
+{
+ *this = a;
+ Add (b);
+}
+
+EnergySourceContainer::Iterator
+EnergySourceContainer::Begin (void) const
+{
+ return m_sources.begin ();
+}
+
+EnergySourceContainer::Iterator
+EnergySourceContainer::End (void) const
+{
+ return m_sources.end ();
+}
+
+uint32_t
+EnergySourceContainer::GetN (void) const
+{
+ return m_sources.size ();
+}
+
+Ptr<EnergySource>
+EnergySourceContainer::Get (uint32_t i) const
+{
+ return m_sources[i];
+}
+
+void
+EnergySourceContainer::Add (EnergySourceContainer container)
+{
+ for (Iterator i = container.Begin (); i != container.End (); i++)
+ {
+ m_sources.push_back (*i);
+ }
+}
+
+void
+EnergySourceContainer::Add (Ptr<EnergySource> source)
+{
+ NS_ASSERT (source != NULL);
+ m_sources.push_back (source);
+}
+
+void
+EnergySourceContainer::Add (std::string sourceName)
+{
+ Ptr<EnergySource> source = Names::Find<EnergySource> (sourceName);
+ NS_ASSERT (source != NULL);
+ m_sources.push_back (source);
+}
+
+/*
+ * Private functions start here.
+ */
+
+void
+EnergySourceContainer::DoDispose (void)
+{
+ // call Object::Dispose for all EnergySource objects
+ for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin ();
+ i != m_sources.end (); i++)
+ {
+ (*i)->DisposeDeviceModels ();
+ (*i)->Dispose ();
+ }
+ m_sources.clear ();
+}
+
+void
+EnergySourceContainer::DoStart (void)
+{
+ // call Object::Start for all EnergySource objects
+ for (std::vector< Ptr<EnergySource> >::iterator i = m_sources.begin ();
+ i != m_sources.end (); i++)
+ {
+ (*i)->Start ();
+ (*i)->StartDeviceModels ();
+ }
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/energy-source-container.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,180 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2008 INRIA
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
+ * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef ENERGY_SOURCE_CONTAINER_H
+#define ENERGY_SOURCE_CONTAINER_H
+
+#include "ns3/energy-source.h"
+#include "ns3/object.h"
+#include <vector>
+#include <stdint.h>
+
+namespace ns3 {
+
+/**
+ * \brief Holds a vector of ns3::EnergySource pointers.
+ *
+ * EnergySourceHelper returns a list of EnergySource pointers installed onto a
+ * node. Users can use this list to access EnergySource objects to obtain total
+ * energy consumption on a node easily.
+ *
+ * \see NetDeviceContainer
+ */
+class EnergySourceContainer : public Object
+{
+public:
+ typedef std::vector< Ptr<EnergySource> >::const_iterator Iterator;
+
+public:
+ static TypeId GetTypeId (void);
+ /**
+ * Creates an empty EnergySourceContainer.
+ */
+ EnergySourceContainer ();
+ ~EnergySourceContainer ();
+
+ /**
+ * \param source Pointer to an EnergySource.
+ *
+ * Creates an EnergySourceContianer with exactly one EnergySource previously
+ * instantiated.
+ */
+ EnergySourceContainer (Ptr<EnergySource> source);
+
+ /**
+ * \param sourceName Name of EnergySource.
+ *
+ * Creates an EnergySourceContainer with exactly one EnergySource previously
+ * instantiated and assigned a name using the Object name service. This
+ * EnergySource is specified by its assigned name.
+ */
+ EnergySourceContainer (std::string sourceName);
+
+ /**
+ * \param a A EnergySourceContainer.
+ * \param b Another EnergySourceContainer.
+ *
+ * Creates an EnergySourceContainer by concatenating EnergySourceContainer b
+ * to EnergySourceContainer a.
+ *
+ * \note Can be used to concatenate 2 Ptr<EnergySource> directly. C++ will be
+ * calling EnergySourceContainer constructor with Ptr<EnergySource> first.
+ */
+ EnergySourceContainer (const EnergySourceContainer &a,
+ const EnergySourceContainer &b);
+
+ /**
+ * \brief Get an iterator which refers to the first EnergySource pointer in
+ * the container.
+ *
+ * \returns An iterator which refers to the first EnergySource in container.
+ *
+ * EnergySources can be retrieved from the container in two ways. First,
+ * directly by an index into the container, and second, using an iterator.
+ * This method is used in the iterator method and is typically used in a
+ * for-loop to run through the EnergySources.
+ *
+ * \code
+ * EnergySourceContainer::Iterator i;
+ * for (i = container.Begin (); i != container.End (); ++i)
+ * {
+ * (*i)->method (); // some EnergySource method
+ * }
+ * \endcode
+ */
+ Iterator Begin (void) const;
+
+ /**
+ * \brief Get an iterator which refers to the last EnergySource pointer in
+ * the container.
+ *
+ * \returns An iterator which refers to the last EnergySource in container.
+ *
+ * EnergySources can be retrieved from the container in two ways. First,
+ * directly by an index into the container, and second, using an iterator.
+ * This method is used in the iterator method and is typically used in a
+ * for-loop to run through the EnergySources.
+ *
+ * \code
+ * EnergySourceContainer::Iterator i;
+ * for (i = container.Begin (); i != container.End (); ++i)
+ * {
+ * (*i)->method (); // some EnergySource method
+ * }
+ * \endcode
+ */
+ Iterator End (void) const;
+
+ /**
+ * \brief Get the number of Ptr<EnergySource> stored in this container.
+ *
+ * \returns The number of Ptr<EnergySource> stored in this container.
+ */
+ uint32_t GetN (void) const;
+
+ /**
+ * \brief Get the i-th Ptr<EnergySource> stored in this container.
+ *
+ * \param i Index of the requested Ptr<EnergySource>.
+ * \returns The requested Ptr<EnergySource>.
+ */
+ Ptr<EnergySource> Get (uint32_t i) const;
+
+ /**
+ * \param container Another EnergySourceContainer to append.
+ *
+ * Appends the contents of another EnergySourceContainer to the end of this
+ * EnergySourceContainer.
+ */
+ void Add (EnergySourceContainer container);
+
+ /**
+ * \brief Append a single Ptr<EnergySource> to the end of this container.
+ *
+ * \param source Pointer to an EnergySource.
+ */
+ void Add (Ptr<EnergySource> source);
+
+ /**
+ * \brief Append a single Ptr<EnergySource> referred to by its object name to
+ * the end of this container.
+ *
+ * \param sourceName Name of EnergySource object.
+ */
+ void Add (std::string sourceName);
+
+private:
+ virtual void DoDispose (void);
+
+ /**
+ * \brief Calls Object::Start () for all EnergySource objects.
+ */
+ virtual void DoStart (void);
+
+private:
+ std::vector< Ptr<EnergySource> > m_sources;
+
+};
+
+} // namespace ns3
+
+#endif /* ENERGY_SOURCE_CONTAINER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/rv-battery-model-helper.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,57 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "rv-battery-model-helper.h"
+#include "ns3/energy-source.h"
+
+namespace ns3 {
+
+RvBatteryModelHelper::RvBatteryModelHelper ()
+{
+ m_rvBatteryModel.SetTypeId ("ns3::RvBatteryModel");
+}
+
+RvBatteryModelHelper::~RvBatteryModelHelper ()
+{
+}
+
+void
+RvBatteryModelHelper::Set (std::string name, const AttributeValue &v)
+{
+ m_rvBatteryModel.Set (name, v);
+}
+
+Ptr<EnergySource>
+RvBatteryModelHelper::DoInstall (Ptr<Node> node) const
+{
+ NS_ASSERT (node != NULL);
+ // check if energy source already exists
+ Ptr<EnergySource> source = node->GetObject<EnergySource> ();
+ if (source != NULL)
+ {
+ NS_FATAL_ERROR ("Energy source already installed!");
+ }
+ source = m_rvBatteryModel.Create<EnergySource> ();
+ NS_ASSERT (source != NULL);
+ source->SetNode (node);
+ return source;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/rv-battery-model-helper.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,50 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef RV_BATTERY_MODEL_HELPER_H
+#define RV_BATTERY_MODEL_HELPER_H
+
+#include "energy-model-helper.h"
+#include "ns3/node.h"
+
+namespace ns3 {
+
+/**
+ * \brief Creates a RvBatteryModel object.
+ */
+class RvBatteryModelHelper : public EnergySourceHelper
+{
+public:
+ RvBatteryModelHelper ();
+ ~RvBatteryModelHelper ();
+
+ void Set (std::string name, const AttributeValue &v);
+
+private:
+ virtual Ptr<EnergySource> DoInstall (Ptr<Node> node) const;
+
+private:
+ ObjectFactory m_rvBatteryModel;
+
+};
+
+} // namespace ns3
+
+#endif /* RV_BATTERY_MODEL_HELPER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/wifi-radio-energy-model-helper.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,85 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "wifi-radio-energy-model-helper.h"
+#include "basic-energy-source-helper.h"
+#include "ns3/wifi-phy.h"
+#include "ns3/wifi-net-device.h"
+#include "ns3/config.h"
+#include "ns3/names.h"
+
+namespace ns3 {
+
+WifiRadioEnergyModelHelper::WifiRadioEnergyModelHelper ()
+{
+ m_radioEnergy.SetTypeId ("ns3::WifiRadioEnergyModel");
+ m_depletionCallback.Nullify ();
+}
+
+WifiRadioEnergyModelHelper::~WifiRadioEnergyModelHelper ()
+{
+}
+
+void
+WifiRadioEnergyModelHelper::Set (std::string name, const AttributeValue &v)
+{
+ m_radioEnergy.Set (name, v);
+}
+
+void
+WifiRadioEnergyModelHelper::SetDepletionCallback (
+ WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback)
+{
+ m_depletionCallback = callback;
+}
+
+/*
+ * Private function starts here.
+ */
+
+Ptr<DeviceEnergyModel>
+WifiRadioEnergyModelHelper::DoInstall (Ptr<NetDevice> device,
+ Ptr<EnergySource> source) const
+{
+ NS_ASSERT (device != NULL);
+ NS_ASSERT (source != NULL);
+ // check if device is WifiNetDevice
+ std::string deviceName = device->GetInstanceTypeId ().GetName ();
+ if (deviceName.compare ("ns3::WifiNetDevice") != 0)
+ {
+ NS_FATAL_ERROR ("NetDevice type is not WifiNetDevice!");
+ }
+ Ptr<Node> node = device->GetNode ();
+ Ptr<WifiRadioEnergyModel> model = m_radioEnergy.Create ()->GetObject<WifiRadioEnergyModel> ();
+ NS_ASSERT (model != NULL);
+ // set energy source pointer
+ model->SetEnergySource (source);
+ // set energy depletion callback
+ model->SetEnergyDepletionCallback (m_depletionCallback);
+ // add model to device model list in energy source
+ source->AppendDeviceEnergyModel (model);
+ // create and register energy model phy listener
+ Ptr<WifiNetDevice> wifiDevice = DynamicCast<WifiNetDevice> (device);
+ Ptr<WifiPhy> wifiPhy = wifiDevice->GetPhy ();
+ wifiPhy->RegisterListener (model->GetPhyListener ());
+ return model;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/helper/wifi-radio-energy-model-helper.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,81 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+* Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+*
+* This program is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License version 2 as
+* published by the Free Software Foundation;
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*
+* Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+*/
+
+#ifndef WIFI_RADIO_ENERGY_MODEL_HELPER_H
+#define WIFI_RADIO_ENERGY_MODEL_HELPER_H
+
+#include "energy-model-helper.h"
+#include "ns3/wifi-radio-energy-model.h"
+
+namespace ns3 {
+
+/**
+ * \brief Assign WifiRadioEnergyModel to wifi devices.
+ *
+ * This installer installs WifiRadioEnergyModel for only WifiNetDevice objects.
+ */
+class WifiRadioEnergyModelHelper : public DeviceEnergyModelHelper
+{
+public:
+ /**
+ * Construct a helper which is used to add a radio energy model to a node
+ */
+ WifiRadioEnergyModelHelper ();
+
+ /**
+ * Destroy a RadioEnergy Helper
+ */
+ ~WifiRadioEnergyModelHelper ();
+
+ /**
+ * \param name the name of the attribute to set
+ * \param v the value of the attribute
+ *
+ * Sets an attribute of the underlying PHY object.
+ */
+ void Set (std::string name, const AttributeValue &v);
+
+ /**
+ * \param callback Callback function for energy depletion handling.
+ *
+ * Sets the callback to be invoked when energy is depleted.
+ */
+ void SetDepletionCallback (
+ WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback);
+
+
+private:
+ /**
+ * \param device Pointer to the NetDevice to install DeviceEnergyModel.
+ *
+ * Implements DeviceEnergyModel::Install.
+ */
+ virtual Ptr<DeviceEnergyModel> DoInstall (Ptr<NetDevice> device,
+ Ptr<EnergySource> source) const;
+
+private:
+ ObjectFactory m_radioEnergy;
+ WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback m_depletionCallback;
+
+};
+
+} // namespace ns3
+
+#endif /* WIFI_RADIO_ENERGY_MODEL_HELPER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/basic-energy-source.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,202 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "basic-energy-source.h"
+#include "ns3/log.h"
+#include "ns3/assert.h"
+#include "ns3/double.h"
+#include "ns3/trace-source-accessor.h"
+#include "ns3/simulator.h"
+
+NS_LOG_COMPONENT_DEFINE ("BasicEnergySource");
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (BasicEnergySource);
+
+TypeId
+BasicEnergySource::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::BasicEnergySource")
+ .SetParent<EnergySource> ()
+ .AddConstructor<BasicEnergySource> ()
+ .AddAttribute ("BasicEnergySourceInitialEnergyJ",
+ "Initial energy stored in basic energy source.",
+ DoubleValue (10), // in Joules
+ MakeDoubleAccessor (&BasicEnergySource::SetInitialEnergy,
+ &BasicEnergySource::GetInitialEnergy),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("BasicEnergySupplyVoltageV",
+ "Initial supply voltage for basic energy source.",
+ DoubleValue (3.0), // in Volts
+ MakeDoubleAccessor (&BasicEnergySource::SetSupplyVoltage,
+ &BasicEnergySource::GetSupplyVoltage),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("PeriodicEnergyUpdateInterval",
+ "Time between two consecutive periodic energy updates.",
+ TimeValue (Seconds (1.0)),
+ MakeTimeAccessor (&BasicEnergySource::SetEnergyUpdateInterval,
+ &BasicEnergySource::GetEnergyUpdateInterval),
+ MakeTimeChecker ())
+ .AddTraceSource ("RemainingEnergy",
+ "Remaining energy at BasicEnergySource.",
+ MakeTraceSourceAccessor (&BasicEnergySource::m_remainingEnergyJ))
+ ;
+ return tid;
+}
+
+BasicEnergySource::BasicEnergySource ()
+{
+ m_lastUpdateTime = Seconds (0.0);
+}
+
+BasicEnergySource::~BasicEnergySource ()
+{
+}
+
+void
+BasicEnergySource::SetInitialEnergy (double initialEnergyJ)
+{
+ NS_LOG_FUNCTION (this << initialEnergyJ);
+ NS_ASSERT (initialEnergyJ >= 0);
+ m_initialEnergyJ = initialEnergyJ;
+ m_remainingEnergyJ = m_initialEnergyJ;
+}
+
+void
+BasicEnergySource::SetSupplyVoltage (double supplyVoltageV)
+{
+ NS_LOG_FUNCTION (this << supplyVoltageV);
+ m_supplyVoltageV = supplyVoltageV;
+}
+
+void
+BasicEnergySource::SetEnergyUpdateInterval (Time interval)
+{
+ NS_LOG_FUNCTION (this << interval);
+ m_energyUpdateInterval = interval;
+}
+
+Time
+BasicEnergySource::GetEnergyUpdateInterval (void) const
+{
+ return m_energyUpdateInterval;
+}
+
+double
+BasicEnergySource::GetSupplyVoltage (void) const
+{
+ return m_supplyVoltageV;
+}
+
+double
+BasicEnergySource::GetInitialEnergy (void) const
+{
+ return m_initialEnergyJ;
+}
+
+double
+BasicEnergySource::GetRemainingEnergy (void)
+{
+ NS_LOG_FUNCTION (this);
+ // update energy source to get the latest remaining energy.
+ UpdateEnergySource ();
+ return m_remainingEnergyJ;
+}
+
+double
+BasicEnergySource::GetEnergyFraction (void)
+{
+ NS_LOG_FUNCTION (this);
+ // update energy source to get the latest remaining energy.
+ UpdateEnergySource ();
+ return m_remainingEnergyJ / m_initialEnergyJ;
+}
+
+void
+BasicEnergySource::UpdateEnergySource (void)
+{
+ NS_LOG_FUNCTION (this);
+ NS_LOG_DEBUG ("BasicEnergySource:Updating remaining energy.");
+
+ // do not update if simulation has finished
+ if (Simulator::IsFinished ())
+ {
+ return;
+ }
+
+ m_energyUpdateEvent.Cancel ();
+
+ CalculateRemainingEnergy ();
+
+ if (m_remainingEnergyJ <= 0)
+ {
+ HandleEnergyDrainedEvent ();
+ return; // stop periodic update
+ }
+
+ m_lastUpdateTime = Simulator::Now ();
+
+ m_energyUpdateEvent = Simulator::Schedule (m_energyUpdateInterval,
+ &BasicEnergySource::UpdateEnergySource,
+ this);
+}
+
+/*
+ * Private functions start here.
+ */
+
+void
+BasicEnergySource::DoStart (void)
+{
+ NS_LOG_FUNCTION (this);
+ UpdateEnergySource (); // start periodic update
+}
+
+void
+BasicEnergySource::DoDispose (void)
+{
+ NS_LOG_FUNCTION (this);
+ BreakDeviceEnergyModelRefCycle (); // break reference cycle
+}
+
+void
+BasicEnergySource::HandleEnergyDrainedEvent (void)
+{
+ NS_LOG_FUNCTION (this);
+ NS_LOG_DEBUG ("BasicEnergySource:Energy depleted!");
+ NotifyEnergyDrained (); // notify DeviceEnergyModel objects
+ m_remainingEnergyJ = 0; // energy never goes below 0
+}
+
+void
+BasicEnergySource::CalculateRemainingEnergy (void)
+{
+ NS_LOG_FUNCTION (this);
+ double totalCurrentA = CalculateTotalCurrent ();
+ Time duration = Simulator::Now () - m_lastUpdateTime;
+ NS_ASSERT (duration.GetSeconds () >= 0);
+ // energy = current * voltage * time
+ double energyToDecreaseJ = totalCurrentA * m_supplyVoltageV * duration.GetSeconds ();
+ m_remainingEnergyJ -= energyToDecreaseJ;
+ NS_LOG_DEBUG ("BasicEnergySource:Remaining energy = " << m_remainingEnergyJ);
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/basic-energy-source.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,140 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef BASIC_ENERGY_SOURCE_H
+#define BASIC_ENERGY_SOURCE_H
+
+#include "ns3/traced-value.h"
+#include "ns3/nstime.h"
+#include "ns3/event-id.h"
+#include "energy-source.h"
+
+namespace ns3 {
+
+/**
+ * BasicEnergySource decreases/increases remaining energy stored in itself in
+ * linearly.
+ */
+class BasicEnergySource : public EnergySource
+{
+public:
+ static TypeId GetTypeId (void);
+ BasicEnergySource ();
+ virtual ~BasicEnergySource ();
+
+ /**
+ * \return Initial energy stored in energy source, in Joules.
+ *
+ * Implements GetInitialEnergy.
+ */
+ virtual double GetInitialEnergy (void) const;
+
+ /**
+ * \returns Supply voltage at the energy source.
+ *
+ * Implements GetSupplyVoltage.
+ */
+ virtual double GetSupplyVoltage (void) const;
+
+ /**
+ * \return Remaining energy in energy source, in Joules
+ *
+ * Implements GetRemainingEnergy.
+ */
+ virtual double GetRemainingEnergy (void);
+
+ /**
+ * \returns Energy fraction.
+ *
+ * Implements GetEnergyFraction.
+ */
+ virtual double GetEnergyFraction (void);
+
+ /**
+ * Implements UpdateEnergySource.
+ */
+ virtual void UpdateEnergySource (void);
+
+ /**
+ * \param initialEnergyJ Initial energy, in Joules
+ *
+ * Sets initial energy stored in the energy source. Note that initial energy
+ * is assumed to be set before simulation starts and is set only once per
+ * simulation.
+ */
+ void SetInitialEnergy (double initialEnergyJ);
+
+ /**
+ * \param supplyVoltageV Supply voltage at the energy source, in Volts.
+ *
+ * Sets supply voltage of the energy source.
+ */
+ void SetSupplyVoltage (double supplyVoltageV);
+
+ /**
+ * \param interval Energy update interval.
+ *
+ * This function sets the interval between each energy update.
+ */
+ void SetEnergyUpdateInterval (Time interval);
+
+ /**
+ * \returns The interval between each energy update.
+ */
+ Time GetEnergyUpdateInterval (void) const;
+
+
+private:
+ /// Defined in ns3::Object
+ void DoStart (void);
+
+ /// Defined in ns3::Object
+ void DoDispose (void);
+
+ /**
+ * Handles the remaining energy going to zero event. This function notifies
+ * all the energy models aggregated to the node about the energy being
+ * depleted. Each energy model is then responsible for its own handler.
+ */
+ void HandleEnergyDrainedEvent (void);
+
+ /**
+ * Calculates remaining energy. This function uses the total current from all
+ * device models to calculate the amount of energy to decrease. The energy to
+ * decrease is given by:
+ * energy to decrease = total current * supply voltage * time duration
+ * This function subtracts the calculated energy to decrease from remaining
+ * energy.
+ */
+ void CalculateRemainingEnergy (void);
+
+private:
+ double m_initialEnergyJ; // initial energy, in Joules
+ double m_supplyVoltageV; // supply voltage, in Volts
+ TracedValue<double> m_remainingEnergyJ; // remaining energy, in Joules
+ EventId m_energyUpdateEvent; // energy update event
+ Time m_lastUpdateTime; // last update time
+ Time m_energyUpdateInterval; // energy update interval
+
+};
+
+} // namespace ns3
+
+#endif /* BASIC_ENERGY_SOURCE_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/device-energy-model-container.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,106 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2008 INRIA
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
+ * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "device-energy-model-container.h"
+#include "ns3/names.h"
+
+namespace ns3 {
+
+DeviceEnergyModelContainer::DeviceEnergyModelContainer ()
+{
+}
+
+DeviceEnergyModelContainer::DeviceEnergyModelContainer (Ptr<DeviceEnergyModel> model)
+{
+ NS_ASSERT (model != NULL);
+ m_models.push_back (model);
+}
+
+DeviceEnergyModelContainer::DeviceEnergyModelContainer (std::string modelName)
+{
+ Ptr<DeviceEnergyModel> model = Names::Find<DeviceEnergyModel> (modelName);
+ NS_ASSERT (model != NULL);
+ m_models.push_back (model);
+}
+
+DeviceEnergyModelContainer::DeviceEnergyModelContainer (const DeviceEnergyModelContainer &a,
+ const DeviceEnergyModelContainer &b)
+{
+ *this = a;
+ Add (b);
+}
+
+DeviceEnergyModelContainer::Iterator
+DeviceEnergyModelContainer::Begin (void) const
+{
+ return m_models.begin ();
+}
+
+DeviceEnergyModelContainer::Iterator
+DeviceEnergyModelContainer::End (void) const
+{
+ return m_models.end ();
+}
+
+uint32_t
+DeviceEnergyModelContainer::GetN (void) const
+{
+ return m_models.size ();
+}
+
+Ptr<DeviceEnergyModel>
+DeviceEnergyModelContainer::Get (uint32_t i) const
+{
+ return m_models[i];
+}
+
+void
+DeviceEnergyModelContainer::Add (DeviceEnergyModelContainer container)
+{
+ for (Iterator i = container.Begin (); i != container.End (); i++)
+ {
+ m_models.push_back (*i);
+ }
+}
+
+void
+DeviceEnergyModelContainer::Add (Ptr<DeviceEnergyModel> model)
+{
+ NS_ASSERT (model != NULL);
+ m_models.push_back (model);
+}
+
+void
+DeviceEnergyModelContainer::Add (std::string modelName)
+{
+ Ptr<DeviceEnergyModel> model = Names::Find<DeviceEnergyModel> (modelName);
+ NS_ASSERT (model != NULL);
+ m_models.push_back (model);
+}
+
+void
+DeviceEnergyModelContainer::Clear (void)
+{
+ m_models.clear ();
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/device-energy-model-container.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,175 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2008 INRIA
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
+ * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef DEVICE_ENERGY_MODEL_CONTAINER_H
+#define DEVICE_ENERGY_MODEL_CONTAINER_H
+
+#include "ns3/device-energy-model.h"
+#include <vector>
+#include <stdint.h>
+
+namespace ns3 {
+
+/**
+ * \brief Holds a vector of ns3::DeviceEnergyModel pointers.
+ *
+ * DeviceEnergyModelContainer returns a list of DeviceEnergyModel pointers
+ * installed on a node. Users can use this list to access DeviceEnergyModel
+ * objects to obtain total device energy consumption on a node easily.
+ *
+ * \see NetDeviceContainer
+ */
+class DeviceEnergyModelContainer
+{
+public:
+ typedef std::vector< Ptr<DeviceEnergyModel> >::const_iterator Iterator;
+
+public:
+ /**
+ * Creates an empty DeviceEnergyModelContainer.
+ */
+ DeviceEnergyModelContainer ();
+
+ /**
+ * \param model Pointer to a DeviceEnergyModel.
+ *
+ * Creates a DeviceEnergyModelContainer with exactly one DeviceEnergyModel
+ * previously instantiated.
+ */
+ DeviceEnergyModelContainer (Ptr<DeviceEnergyModel> model);
+
+ /**
+ * \param modelName Name of DeviceEnergyModel.
+ *
+ * Creates an DeviceEnergyModelContainer with exactly one DeviceEnergyModel
+ * previously instantiated and assigned a name using the Object name service.
+ * This DeviceEnergyModel is specified by its assigned name.
+ */
+ DeviceEnergyModelContainer (std::string modelName);
+
+ /**
+ * \param a A DeviceEnergyModelContainer.
+ * \param b Another DeviceEnergyModelContainer.
+ *
+ * Creates a DeviceEnergyModelContainer by concatenating DeviceEnergyModelContainer b
+ * to DeviceEnergyModelContainer a.
+ *
+ * \note Can be used to concatenate 2 Ptr<DeviceEnergyModel> directly. C++
+ * will be calling DeviceEnergyModelContainer constructor with Ptr<DeviceEnergyModel>
+ * first.
+ */
+ DeviceEnergyModelContainer (const DeviceEnergyModelContainer &a,
+ const DeviceEnergyModelContainer &b);
+
+ /**
+ * \brief Get an iterator which refers to the first DeviceEnergyModel pointer
+ * in the container.
+ *
+ * \returns An iterator which refers to the first DeviceEnergyModel in container.
+ *
+ * DeviceEnergyModels can be retrieved from the container in two ways. First,
+ * directly by an index into the container, and second, using an iterator.
+ * This method is used in the iterator method and is typically used in a
+ * for-loop to run through the DeviceEnergyModels.
+ *
+ * \code
+ * DeviceEnergyModelContainer::Iterator i;
+ * for (i = container.Begin (); i != container.End (); ++i)
+ * {
+ * (*i)->method (); // some DeviceEnergyModel method
+ * }
+ * \endcode
+ */
+ Iterator Begin (void) const;
+
+ /**
+ * \brief Get an iterator which refers to the last DeviceEnergyModel pointer
+ * in the container.
+ *
+ * \returns An iterator which refers to the last DeviceEnergyModel in container.
+ *
+ * DeviceEnergyModels can be retrieved from the container in two ways. First,
+ * directly by an index into the container, and second, using an iterator.
+ * This method is used in the iterator method and is typically used in a
+ * for-loop to run through the DeviceEnergyModels.
+ *
+ * \code
+ * DeviceEnergyModelContainer::Iterator i;
+ * for (i = container.Begin (); i != container.End (); ++i)
+ * {
+ * (*i)->method (); // some DeviceEnergyModel method
+ * }
+ * \endcode
+ */
+ Iterator End (void) const;
+
+ /**
+ * \brief Get the number of Ptr<DeviceEnergyModel> stored in this container.
+ *
+ * \returns The number of Ptr<DeviceEnergyModel> stored in this container.
+ */
+ uint32_t GetN (void) const;
+
+ /**
+ * \brief Get the i-th Ptr<DeviceEnergyModel> stored in this container.
+ *
+ * \param i Index of the requested Ptr<DeviceEnergyModel>.
+ * \returns The requested Ptr<DeviceEnergyModel>.
+ */
+ Ptr<DeviceEnergyModel> Get (uint32_t i) const;
+
+ /**
+ * \param container Another DeviceEnergyModelContainer.
+ *
+ * Appends the contents of another DeviceEnergyModelContainer to the end of
+ * this DeviceEnergyModelContainer.
+ */
+ void Add (DeviceEnergyModelContainer container);
+
+ /**
+ * \brief Append a single Ptr<DeviceEnergyModel> to the end of this container.
+ *
+ * \param model Pointer to an DeviceEnergyModel.
+ */
+ void Add (Ptr<DeviceEnergyModel> model);
+
+ /**
+ * \brief Append a single Ptr<DeviceEnergyModel> referred to by its object
+ * name to the end of this container.
+ *
+ * \param modelName Name of DeviceEnergyModel object.
+ */
+ void Add (std::string modelName);
+
+ /**
+ * \brief Removes all elements in the container.
+ */
+ void Clear (void);
+
+private:
+ std::vector< Ptr<DeviceEnergyModel> > m_models;
+
+};
+
+} // namespace ns3
+
+#endif /* DEVICE_ENERGY_MODEL_CONTAINER_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/device-energy-model.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,60 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "device-energy-model.h"
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (DeviceEnergyModel);
+
+TypeId
+DeviceEnergyModel::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::DeviceEnergyModel")
+ .SetParent<Object> ()
+ ;
+ return tid;
+}
+
+DeviceEnergyModel::DeviceEnergyModel ()
+{
+}
+
+DeviceEnergyModel::~DeviceEnergyModel ()
+{
+}
+
+double
+DeviceEnergyModel::GetCurrentA (void) const
+{
+ return DoGetCurrentA ();
+}
+
+/*
+ * Private function starts here.
+ */
+
+double
+DeviceEnergyModel::DoGetCurrentA (void) const
+{
+ return 0.0;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/device-energy-model.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,110 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef DEVICE_ENERGY_MODEL_H
+#define DEVICE_ENERGY_MODEL_H
+
+#include "ns3/object.h"
+#include "ns3/ptr.h"
+#include "ns3/type-id.h"
+#include "ns3/node.h"
+
+namespace ns3 {
+
+class EnergySource;
+
+/**
+ * \brief Base class for device energy models.
+ *
+ * A device energy model should represent the energy consumption behavior of a
+ * specific device. It will update remaining energy stored in the EnergySource
+ * object installed on node. When energy is depleted, each DeviceEnergyModel
+ * object installed on the same node will be informed by the EnergySource.
+ */
+class DeviceEnergyModel : public Object
+{
+public:
+ /**
+ * Callback type for ChangeState function. Devices uses this state to notify
+ * DeviceEnergyModel of a state change.
+ */
+ typedef Callback<void, int> ChangeStateCallback;
+
+public:
+ static TypeId GetTypeId (void);
+ DeviceEnergyModel ();
+ virtual ~DeviceEnergyModel ();
+
+ /**
+ * \param source Pointer to energy source installed on node.
+ *
+ * This function sets the pointer to energy source installed on node. Should
+ * be called only by DeviceEnergyModel helper classes.
+ */
+ virtual void SetEnergySource (Ptr<EnergySource> source) = 0;
+
+ /**
+ * \returns Total energy consumption of the device.
+ *
+ * DeviceEnergyModel records its own energy consumption during simulation.
+ */
+ virtual double GetTotalEnergyConsumption (void) const = 0;
+
+ /**
+ * \param newState New state the device is in.
+ *
+ * DeviceEnergyModel is a state based model. This function is implemented by
+ * all child of DeviceEnergyModel to change the model's state. States are to
+ * be defined by each child using an enum (int).
+ */
+ virtual void ChangeState (int newState) = 0;
+
+ /**
+ * \returns Current draw of the device, in Ampere.
+ *
+ * This function returns the current draw at the device in its current state.
+ * This function is called from the EnergySource to obtain the total current
+ * draw at any given time during simulation.
+ */
+ double GetCurrentA (void) const;
+
+ /**
+ * This function is called by the EnergySource object when energy stored in
+ * the energy source is depleted. Should be implemented by child classes.
+ */
+ virtual void HandleEnergyDepletion (void) = 0;
+
+
+private:
+ /**
+ * \returns 0.0 as the current value, in Ampere.
+ *
+ * Child class does not have to implement this method if current draw for its
+ * states are not know. This default method will always return 0.0A. For the
+ * devices who does know the current draw of its states, this method must be
+ * overwritten.
+ */
+ virtual double DoGetCurrentA (void) const;
+
+};
+
+}
+
+#endif /* DEVICE_ENERGY_MODEL_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/energy-source.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,176 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "energy-source.h"
+#include "ns3/log.h"
+
+NS_LOG_COMPONENT_DEFINE ("EnergySource");
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (EnergySource);
+
+TypeId
+EnergySource::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::EnergySource")
+ .SetParent<Object> ()
+ ;
+ return tid;
+}
+
+EnergySource::EnergySource ()
+{
+}
+
+EnergySource::~EnergySource ()
+{
+}
+
+void
+EnergySource::SetNode (Ptr<Node> node)
+{
+ NS_ASSERT (node != NULL);
+ m_node = node;
+}
+
+Ptr<Node>
+EnergySource::GetNode (void) const
+{
+ return m_node;
+}
+
+void
+EnergySource::AppendDeviceEnergyModel (Ptr<DeviceEnergyModel> deviceEnergyModelPtr)
+{
+ NS_LOG_FUNCTION (this << deviceEnergyModelPtr);
+ NS_ASSERT (deviceEnergyModelPtr != NULL); // model must exist
+ m_models.Add (deviceEnergyModelPtr);
+}
+
+DeviceEnergyModelContainer
+EnergySource::FindDeviceEnergyModels (TypeId tid)
+{
+ NS_LOG_FUNCTION (this << tid);
+ DeviceEnergyModelContainer container;
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ if ((*i)->GetInstanceTypeId () == tid)
+ {
+ container.Add (*i);
+ }
+ }
+ return container;
+}
+
+DeviceEnergyModelContainer
+EnergySource::FindDeviceEnergyModels (std::string name)
+{
+ NS_LOG_FUNCTION (this << name);
+ DeviceEnergyModelContainer container;
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ if ((*i)->GetInstanceTypeId ().GetName ().compare (name) == 0)
+ {
+ container.Add (*i);
+ }
+ }
+ return container;
+}
+
+void
+EnergySource::StartDeviceModels (void)
+{
+ /*
+ * Device models are not aggregated to the node, hence we have to manually
+ * call dispose method here.
+ */
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ (*i)->Start ();
+ }
+}
+
+void
+EnergySource::DisposeDeviceModels (void)
+{
+ /*
+ * Device models are not aggregated to the node, hence we have to manually
+ * call dispose method here.
+ */
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ (*i)->Dispose ();
+ }
+}
+
+/*
+ * Private function starts here.
+ */
+
+void
+EnergySource::DoDispose (void)
+{
+ NS_LOG_FUNCTION (this);
+ BreakDeviceEnergyModelRefCycle ();
+}
+
+/*
+ * Protected functions start here.
+ */
+
+double
+EnergySource::CalculateTotalCurrent (void)
+{
+ NS_LOG_FUNCTION (this);
+ double totalCurrentA = 0.0;
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ totalCurrentA += (*i)->GetCurrentA ();
+ }
+ return totalCurrentA;
+}
+
+void
+EnergySource::NotifyEnergyDrained (void)
+{
+ NS_LOG_FUNCTION (this);
+ // notify all device energy models installed on node
+ DeviceEnergyModelContainer::Iterator i;
+ for (i = m_models.Begin (); i != m_models.End (); i++)
+ {
+ (*i)->HandleEnergyDepletion ();
+ }
+}
+
+void
+EnergySource::BreakDeviceEnergyModelRefCycle (void)
+{
+ NS_LOG_FUNCTION (this);
+ m_models.Clear ();
+ m_node = NULL;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/energy-source.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,205 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef ENERGY_SOURCE_H
+#define ENERGY_SOURCE_H
+
+#include "ns3/object.h"
+#include "ns3/ptr.h"
+#include "ns3/type-id.h"
+#include "ns3/node.h"
+#include "device-energy-model-container.h" // #include "device-energy-model.h"
+
+namespace ns3 {
+
+/**
+ * \brief Energy source base class.
+ *
+ * This is the base class for energy sources. Energy sources keep track of
+ * remaining energy. Device energy models will be updating the remaining energy
+ * in the energy source. The energy source itself does not update the remaining
+ * energy. Energy source also keeps a list of device energy models installed on
+ * the same node. When the remaining energy level reaches 0, the energy source
+ * will notify all device energy models stored in the list.
+ *
+ * EnergySource provides 2 types of interfaces for DeviceEnergyModels to update
+ * the remaining energy stored in EnergySource:
+ * -Direct energy update interface (Joules):
+ * DecreaseRemainingEnergy
+ * IncreaseRemainingEnergy
+ * -Indirect energy update interface (Current):
+ * UpdateEnergySource
+ * Direct energy update interface will decrease/increase energy from the source
+ * directly (in Joules). Direct energy update interface is typically used by
+ * simple DeviceEnergyModel which knows only average power consumption for each
+ * of its state.
+ * Indirect energy update interface uses the total current cumulated from all
+ * DeviceEnergyModel to calculate energy to decrease from the source. Indirect
+ * energy update interface is typically used by DeviceEnergyModel who knows its
+ * current draw for each of its states. Nonlinear EnergySource also uses this
+ * interface.
+ *
+ * Unit of energy is chosen as Joules since energy models typically calculate
+ * energy as (time in seconds * power in Watts). If the energy source stores
+ * energy in different units (eg. kWh), a simple converter function should
+ * suffice.
+ */
+class EnergySource : public Object
+{
+public:
+ static TypeId GetTypeId (void);
+ EnergySource ();
+ virtual ~EnergySource ();
+
+ /**
+ * \returns Supply voltage of the energy source.
+ *
+ * Set method is to be defined in child class only if necessary. For sources
+ * with a fixed supply voltage, set method is not needed.
+ */
+ virtual double GetSupplyVoltage (void) const = 0;
+
+ /**
+ * \returns Initial energy (capacity) of the energy source.
+ *
+ * Set method is to be defined in child class only if necessary. For sources
+ * with a fixed initial energy (energy capacity), set method is not needed.
+ */
+ virtual double GetInitialEnergy (void) const = 0;
+
+ /**
+ * \returns Remaining energy at the energy source.
+ */
+ virtual double GetRemainingEnergy (void) = 0;
+
+ /**
+ * \return Energy fraction = remaining energy / initial energy [0, 1]
+ *
+ * This function returns the percentage of energy left in the energy source.
+ */
+ virtual double GetEnergyFraction (void) = 0;
+
+ /**
+ * This function goes through the list of DeviceEnergyModels to obtain total
+ * current draw at the energy source and updates remaining energy. Called by
+ * DeviceEnergyModels to inform EnergySource of a state change.
+ */
+ virtual void UpdateEnergySource (void) = 0;
+
+ /**
+ * \brief Sets pointer to node containing this EnergySource.
+ *
+ * \param node Pointer to node containing this EnergySource.
+ */
+ void SetNode (Ptr<Node> node);
+
+ /**
+ * \returns Pointer to node containing this EnergySource.
+ *
+ * When a subclass needs to get access to the underlying node base class to
+ * print the nodeId for example, it can invoke this method.
+ */
+ Ptr<Node> GetNode (void) const;
+
+ /**
+ * \param deviceEnergyModelPtr Pointer to device energy model.
+ *
+ * This function appends a device energy model to the end of a list of
+ * DeviceEnergyModelInfo structs.
+ */
+ void AppendDeviceEnergyModel (Ptr<DeviceEnergyModel> deviceEnergyModelPtr);
+
+ /**
+ * \param tid TypeId of the DeviceEnergyModel we are searching for.
+ * \returns List of pointers to DeviceEnergyModel objects installed on node.
+ */
+ DeviceEnergyModelContainer FindDeviceEnergyModels (TypeId tid);
+
+ /**
+ * \param name name of the DeviceEnergyModel we are searching for.
+ * \returns List of pointers to DeviceEnergyModel objects installed on node.
+ */
+ DeviceEnergyModelContainer FindDeviceEnergyModels (std::string name);
+
+ /**
+ * Calls Start () method of the device energy models. Device energy models are
+ * not aggregated to the node, therefore we need to manually start them here.
+ * Called by EnergySourceContainer, which is aggregated to the node.
+ */
+ void StartDeviceModels (void);
+
+ /**
+ * Calls Dispose () method of the device energy models. Device energy models
+ * are not aggregated to the node, therefore we need to manually start them
+ * here. Called by EnergySourceContainer, which is aggregated to the node.
+ */
+ void DisposeDeviceModels (void);
+
+
+private:
+ /**
+ * All child's implementation must call BreakDeviceEnergyModelRefCycle to
+ * ensure reference cycles to DeviceEnergyModel objects are broken.
+ *
+ * Defined in ns3::Object
+ */
+ virtual void DoDispose (void);
+
+private:
+ /**
+ * List of device energy models installed on the same node.
+ */
+ DeviceEnergyModelContainer m_models;
+
+ /**
+ * Pointer to node containing this EnergySource. Used by helper class to make
+ * sure device models are installed onto the corresponding node.
+ */
+ Ptr<Node> m_node;
+
+
+protected:
+ /**
+ * \returns Total current draw from all DeviceEnergyModels.
+ */
+ double CalculateTotalCurrent (void);
+
+ /**
+ * This function notifies all DeviceEnergyModel of energy depletion event. It
+ * is called by the child EnergySource class when energy depletion happens.
+ */
+ void NotifyEnergyDrained (void);
+
+ /**
+ * This function is called to break reference cycle between EnergySource and
+ * DeviceEnergyModel. Child of the EnergySource base class must call this
+ * function in their implementation of DoDispose to make sure the reference
+ * cycle is broken.
+ *
+ * Normally this work will be completed by the DoDispose function. However it
+ * will be overridden in the child class. Hence we introduced this function.
+ */
+ void BreakDeviceEnergyModelRefCycle (void);
+
+};
+
+} // namespace ns3
+
+#endif /* ENERGY_SOURCE_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/li-ion-energy-source.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,307 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Andrea Sacco
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Andrea Sacco <andrea.sacco85@gmail.com>
+ */
+
+#include "li-ion-energy-source.h"
+#include "ns3/log.h"
+#include "ns3/assert.h"
+#include "ns3/double.h"
+#include "ns3/trace-source-accessor.h"
+#include "ns3/simulator.h"
+
+#include <cmath>
+
+NS_LOG_COMPONENT_DEFINE ("LiIonEnergySource");
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (LiIonEnergySource);
+
+TypeId
+LiIonEnergySource::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::LiIonEnergySource")
+ .SetParent<EnergySource> ()
+ .AddConstructor<LiIonEnergySource> ()
+ .AddAttribute ("LiIonEnergySourceInitialEnergyJ",
+ "Initial energy stored in basic energy source.",
+ DoubleValue (31752.0), // in Joules
+ MakeDoubleAccessor (&LiIonEnergySource::SetInitialEnergy,
+ &LiIonEnergySource::GetInitialEnergy),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("IntialCellVoltage",
+ "Initial (maximum) voltage of the cell (fully charged).",
+ DoubleValue (4.05), // in Volts
+ MakeDoubleAccessor (&LiIonEnergySource::SetInitialSupplyVoltage,
+ &LiIonEnergySource::GetSupplyVoltage),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("NominalCellVoltage",
+ "Nominal voltage of the cell.",
+ DoubleValue (3.6), // in Volts
+ MakeDoubleAccessor (&LiIonEnergySource::m_eNom),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("ExpCellVoltage",
+ "Cell voltage at the end of the exponential zone.",
+ DoubleValue (3.6), // in Volts
+ MakeDoubleAccessor (&LiIonEnergySource::m_eExp),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RatedCapacity",
+ "Rated capacity of the cell.",
+ DoubleValue (2.45), // in Ah
+ MakeDoubleAccessor (&LiIonEnergySource::m_qRated),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("NomCapacity",
+ "Cell capacity at the end of the nominal zone.",
+ DoubleValue (1.1), // in Ah
+ MakeDoubleAccessor (&LiIonEnergySource::m_qNom),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("ExpCapacity",
+ "Cell Capacity at the end of the exponential zone.",
+ DoubleValue (1.2), // in Ah
+ MakeDoubleAccessor (&LiIonEnergySource::m_qExp),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("InternalResistance",
+ "Internal resistance of the cell",
+ DoubleValue (0.083), // in Ohms
+ MakeDoubleAccessor (&LiIonEnergySource::m_internalResistance),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("TypCurrent",
+ "Typical discharge current used to fit the curves",
+ DoubleValue (2.33), // in A
+ MakeDoubleAccessor (&LiIonEnergySource::m_typCurrent),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("ThresholdVoltage",
+ "Minimum threshold voltage to consider the battery depleted.",
+ DoubleValue (3.3), // in Volts
+ MakeDoubleAccessor (&LiIonEnergySource::m_minVoltTh),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("PeriodicEnergyUpdateInterval",
+ "Time between two consecutive periodic energy updates.",
+ TimeValue (Seconds (1.0)),
+ MakeTimeAccessor (&LiIonEnergySource::SetEnergyUpdateInterval,
+ &LiIonEnergySource::GetEnergyUpdateInterval),
+ MakeTimeChecker ())
+ .AddTraceSource ("RemainingEnergy",
+ "Remaining energy at BasicEnergySource.",
+ MakeTraceSourceAccessor (&LiIonEnergySource::m_remainingEnergyJ))
+ ;
+ return tid;
+}
+
+LiIonEnergySource::LiIonEnergySource ()
+ : m_drainedCapacity (0.0),
+ m_lastUpdateTime (Seconds (0.0))
+{
+}
+
+LiIonEnergySource::~LiIonEnergySource ()
+{
+}
+
+void
+LiIonEnergySource::SetInitialEnergy (double initialEnergyJ)
+{
+ NS_LOG_FUNCTION (this << initialEnergyJ);
+ NS_ASSERT (initialEnergyJ >= 0);
+ m_initialEnergyJ = initialEnergyJ;
+ // set remaining energy to be initial energy
+ m_remainingEnergyJ = m_initialEnergyJ;
+}
+
+double
+LiIonEnergySource::GetInitialEnergy (void) const
+{
+ NS_LOG_FUNCTION (this);
+ return m_initialEnergyJ;
+}
+
+void
+LiIonEnergySource::SetInitialSupplyVoltage (double supplyVoltageV)
+{
+ m_eFull = supplyVoltageV;
+ m_supplyVoltageV = supplyVoltageV;
+}
+
+double
+LiIonEnergySource::GetSupplyVoltage (void) const
+{
+ NS_LOG_FUNCTION (this);
+ return m_supplyVoltageV;
+}
+
+void
+LiIonEnergySource::SetEnergyUpdateInterval (Time interval)
+{
+ NS_LOG_FUNCTION (this);
+ m_energyUpdateInterval = interval;
+}
+
+Time
+LiIonEnergySource::GetEnergyUpdateInterval (void) const
+{
+ NS_LOG_FUNCTION (this);
+ return m_energyUpdateInterval;
+}
+
+double
+LiIonEnergySource::GetRemainingEnergy (void)
+{
+ NS_LOG_FUNCTION (this);
+ // update energy source to get the latest remaining energy.
+ UpdateEnergySource ();
+ return m_remainingEnergyJ;
+}
+
+double
+LiIonEnergySource::GetEnergyFraction (void)
+{
+ NS_LOG_FUNCTION (this);
+ // update energy source to get the latest remaining energy.
+ UpdateEnergySource ();
+ return m_remainingEnergyJ / m_initialEnergyJ;
+}
+
+void
+LiIonEnergySource::DecreaseRemainingEnergy (double energyJ)
+{
+ NS_LOG_FUNCTION (this << energyJ);
+ NS_ASSERT (energyJ >= 0);
+ m_remainingEnergyJ -= energyJ;
+
+ // check if remaining energy is 0
+ if (m_supplyVoltageV <= m_minVoltTh)
+ {
+ HandleEnergyDrainedEvent ();
+ }
+}
+
+void
+LiIonEnergySource::IncreaseRemainingEnergy (double energyJ)
+{
+ NS_LOG_FUNCTION (this << energyJ);
+ NS_ASSERT (energyJ >= 0);
+ m_remainingEnergyJ += energyJ;
+}
+
+void
+LiIonEnergySource::UpdateEnergySource (void)
+{
+ NS_LOG_FUNCTION (this);
+ NS_LOG_DEBUG ("LiIonEnergySource:Updating remaining energy at node #" <<
+ GetNode ()->GetId ());
+
+ // do not update if simulation has finished
+ if (Simulator::IsFinished ())
+ {
+ return;
+ }
+
+ m_energyUpdateEvent.Cancel ();
+
+ CalculateRemainingEnergy ();
+
+ if (m_remainingEnergyJ <= 0)
+ {
+ HandleEnergyDrainedEvent ();
+ return; // stop periodic update
+ }
+
+ m_lastUpdateTime = Simulator::Now ();
+
+ m_energyUpdateEvent = Simulator::Schedule (m_energyUpdateInterval,
+ &LiIonEnergySource::UpdateEnergySource,
+ this);
+}
+
+/*
+ * Private functions start here.
+ */
+void
+LiIonEnergySource::DoStart (void)
+{
+ NS_LOG_FUNCTION (this);
+ UpdateEnergySource (); // start periodic update
+}
+
+void
+LiIonEnergySource::DoDispose (void)
+{
+ NS_LOG_FUNCTION (this);
+ // calculate remaining energy at the end of simulation
+ CalculateRemainingEnergy ();
+ BreakDeviceEnergyModelRefCycle (); // break reference cycle
+}
+
+
+void
+LiIonEnergySource::HandleEnergyDrainedEvent (void)
+{
+ NS_LOG_FUNCTION (this);
+ NS_LOG_DEBUG ("LiIonEnergySource:Energy depleted at node #" <<
+ GetNode ()->GetId ());
+ NotifyEnergyDrained (); // notify DeviceEnergyModel objects
+ m_remainingEnergyJ = 0; // energy never goes below 0
+}
+
+
+void
+LiIonEnergySource::CalculateRemainingEnergy (void)
+{
+ NS_LOG_FUNCTION (this);
+ double totalCurrentA = CalculateTotalCurrent ();
+ Time duration = Simulator::Now () - m_lastUpdateTime;
+ NS_ASSERT (duration.GetSeconds () >= 0);
+ // energy = current * voltage * time
+ double energyToDecreaseJ = totalCurrentA * m_supplyVoltageV * duration.GetSeconds ();
+ m_remainingEnergyJ -= energyToDecreaseJ;
+ m_drainedCapacity += (totalCurrentA * duration.GetSeconds () / 3600);
+ // update the supply voltage
+ m_supplyVoltageV = GetVoltage (totalCurrentA);
+ NS_LOG_DEBUG ("LiIonEnergySource:Remaining energy = " << m_remainingEnergyJ);
+}
+
+double
+LiIonEnergySource::GetVoltage (double i) const
+{
+ NS_LOG_FUNCTION (this << i);
+
+ // integral of i in dt, drained capacity in Ah
+ double it = m_drainedCapacity;
+
+ // empirical factors
+ double A = m_eFull - m_eExp;
+ double B = 3 / m_qExp;
+
+ // slope of the polarization curve
+ double K = std::abs ( (m_eFull - m_eNom + A * (exp (-B * m_qNom) - 1)) * (m_qRated - m_qNom) / m_qNom);
+
+ // constant voltage
+ double E0 = m_eFull + K + m_internalResistance * m_typCurrent - A;
+
+ double E = E0 - K * m_qRated / (m_qRated - it) + A * exp (-B * it);
+
+ // cell voltage
+ double V = E - m_internalResistance * i;
+
+ NS_LOG_DEBUG ("Voltage: " << V << " with E: " << E);
+
+ return V;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/li-ion-energy-source.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,202 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Andrea Sacco
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Andrea Sacco <andrea.sacco85@gmail.com>
+ */
+
+#ifndef LI_ION_ENERGY_SOURCE
+#define LI_ION_ENERGY_SOURCE
+
+#include "ns3/traced-value.h"
+#include "ns3/energy-source.h"
+#include "ns3/nstime.h"
+#include "ns3/event-id.h"
+
+namespace ns3 {
+
+/**
+ * \brief Model a generic Lithium Ion Battery basing on [1][2].
+ *
+ * The model can be fitted to any type of Li-Ion Battery, simply changing the
+ * model parameters.
+ * The default values are fitted for the Panasonic CGR18650DA Li-Ion Battery [3].
+ *
+ * The energy is drained as defined from the EnergySource interface but, this class
+ * consider the non-linear behaviour of Li-Ion cell. Each time energy is drained from
+ * the cell, the class evaluates the discharge curve to get the actual cell's voltage,
+ * accordingly to State of Charge (SOC) and current's drain.
+ *
+ * If the actual voltage of the cell goes below the minimum threshold voltage, the
+ * cell is considered depleted and the energy drained event fired up.
+ *
+ *
+ * The model requires several parameters to approximates the discharge curves:
+ * - IntialCellVoltage, maximum voltage of the fully charged cell
+ * - NominalCellVoltage, nominal cell's voltage, is used to determine the end of the
+ * nominal zone.
+ * - ExpCellVoltage, cell's voltage at the end of the exponential zone
+ * - RatedCapacity, rated capacity of the cell, in Ah
+ * - NomCapacity, cell's capacity at the end of the nominal zone, in Ah
+ * - ExpCapacity, cell's capacity at the end of the exponential zone, in Ah
+ * - InternalResistance, internal resistance of the cell, in Ohms
+ * - TypCurrent, typical discharge current value, used during the fitting process, in Ah
+ * - ThresholdVoltage, minimum threshold voltage below which the cell is considered
+ * depleted
+ *
+ * For a complete reference of the energy source model and model's fitting please refer
+ * to <a href="http://www.nsnam.org/wiki/index.php/GSOC2010UANFramework">UAN Framework</a>
+ * page and <a href="http://www.nsnam.org/wiki/index.php/Li-Ion_model_fitting">Li-Ion model
+ * fitting</a> page.
+ *
+ * References:
+ * [1] C. M. Shepherd, "Design of Primary and Secondary Cells - Part 3. Battery discharge equation," U.S. Naval Research Laboratory, 1963
+ * [2] Tremblay, O.; Dessaint, L.-A.; Dekkiche, A.-I., "A Generic Battery Model for the Dynamic Simulation of Hybrid Electric Vehicles," Ecole de Technologie Superieure, Universite du Quebec, 2007
+ * [3] http://www.panasonic.com/industrial/includes/pdf/Panasonic_LiIon_CGR18650DA.pdf
+ */
+class LiIonEnergySource : public EnergySource
+{
+public:
+ static TypeId GetTypeId (void);
+ LiIonEnergySource ();
+ virtual ~LiIonEnergySource ();
+
+ /**
+ * \return Initial energy stored in energy source, in Joules.
+ *
+ * Implements GetInitialEnergy.
+ */
+ virtual double GetInitialEnergy (void) const;
+
+ /**
+ * \param initialEnergyJ Initial energy, in Joules
+ *
+ * Implements SetInitialEnergy. Note that initial energy is assumed to be set
+ * before simulation starts and is set only once per simulation.
+ */
+ void SetInitialEnergy (double initialEnergyJ);
+
+ /**
+ * \returns Supply voltage at the energy source.
+ *
+ * Implements GetSupplyVoltage.
+ */
+ virtual double GetSupplyVoltage (void) const;
+
+ /**
+ * \param supplyVoltageV Initial Supply voltage at the energy source, in Volts.
+ *
+ * Sets the initial supply voltage of the energy source.
+ * To be called only once.
+ */
+ void SetInitialSupplyVoltage (double supplyVoltageV);
+
+ /**
+ * \return Remaining energy in energy source, in Joules
+ *
+ * Implements GetRemainingEnergy.
+ */
+ virtual double GetRemainingEnergy (void);
+
+ /**
+ * \returns Energy fraction.
+ *
+ * Implements GetEnergyFraction.
+ */
+ virtual double GetEnergyFraction (void);
+
+ /**
+ * \param energyJ Amount of energy (in Joules) to decrease from energy source.
+ *
+ * Implements DecreaseRemainingEnergy.
+ */
+ virtual void DecreaseRemainingEnergy (double energyJ);
+
+ /**
+ * \param energyJ Amount of energy (in Joules) to increase from energy source.
+ *
+ * Implements IncreaseRemainingEnergy.
+ */
+ virtual void IncreaseRemainingEnergy (double energyJ);
+
+ /**
+ * Implements UpdateEnergySource.
+ */
+ virtual void UpdateEnergySource (void);
+
+ /**
+ * \param interval Energy update interval.
+ *
+ * This function sets the interval between each energy update.
+ */
+ void SetEnergyUpdateInterval (Time interval);
+
+ /**
+ * \returns The interval between each energy update.
+ */
+ Time GetEnergyUpdateInterval (void) const;
+private:
+ void DoStart (void);
+ void DoDispose (void);
+
+ /**
+ * Handles the remaining energy going to zero event. This function notifies
+ * all the energy models aggregated to the node about the energy being
+ * depleted. Each energy model is then responsible for its own handler.
+ */
+ void HandleEnergyDrainedEvent (void);
+
+ /**
+ * Calculates remaining energy. This function uses the total current from all
+ * device models to calculate the amount of energy to decrease. The energy to
+ * decrease is given by:
+ * energy to decrease = total current * supply voltage * time duration
+ * This function subtracts the calculated energy to decrease from remaining
+ * energy.
+ */
+ void CalculateRemainingEnergy (void);
+
+ /**
+ * \param current the actual discharge current value.
+ *
+ * Get the cell voltage in function of the discharge current.
+ * It consider different discharge curves for different discharge currents
+ * and the remaining energy of the cell.
+ */
+ double GetVoltage (double current) const;
+
+private:
+ double m_initialEnergyJ; // initial energy, in Joules
+ TracedValue<double> m_remainingEnergyJ; // remaining energy, in Joules
+ double m_drainedCapacity; // capacity drained from the cell, in Ah
+ double m_supplyVoltageV; // actual voltage of the cell
+ EventId m_energyUpdateEvent; // energy update event
+ Time m_lastUpdateTime; // last update time
+ Time m_energyUpdateInterval; // energy update interval
+ double m_eFull; // initial voltage of the cell, in Volts
+ double m_eNom; // nominal voltage of the cell, in Volts
+ double m_eExp; // cell voltage at the end of the exponential zone, in Volts
+ double m_internalResistance; // internal resistance of the cell, in Ohms
+ double m_qRated; // rated capacity of the cell, in Ah
+ double m_qNom; // cell capacity at the end of the nominal zone, in Ah
+ double m_qExp; // capacity value at the end of the exponential zone, in Ah
+ double m_typCurrent; // typical discharge current used to fit the curves
+ double m_minVoltTh; // minimum threshold voltage to consider the battery depleted
+};
+
+} // namespace ns3
+
+#endif /* LI_ION_ENERGY_SOURCE */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/rv-battery-model.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,367 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "rv-battery-model.h"
+#include "ns3/log.h"
+#include "ns3/assert.h"
+#include "ns3/double.h"
+#include "ns3/trace-source-accessor.h"
+#include "ns3/simulator.h"
+#include <math.h>
+
+NS_LOG_COMPONENT_DEFINE ("RvBatteryModel");
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (RvBatteryModel);
+
+TypeId
+RvBatteryModel::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::RvBatteryModel")
+ .SetParent<EnergySource> ()
+ .AddConstructor<RvBatteryModel> ()
+ .AddAttribute ("RvBatteryModelPeriodicEnergyUpdateInterval",
+ "RV battery model sampling interval.",
+ TimeValue (Seconds (1.0)),
+ MakeTimeAccessor (&RvBatteryModel::SetSamplingInterval,
+ &RvBatteryModel::GetSamplingInterval),
+ MakeTimeChecker ())
+ .AddAttribute ("RvBatteryModelOpenCircuitVoltage",
+ "RV battery model open circuit voltage.",
+ DoubleValue (4.1),
+ MakeDoubleAccessor (&RvBatteryModel::SetOpenCircuitVoltage,
+ &RvBatteryModel::GetOpenCircuitVoltage),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RvBatteryModelCutoffVoltage",
+ "RV battery model cutoff voltage.",
+ DoubleValue (3.0),
+ MakeDoubleAccessor (&RvBatteryModel::SetCutoffVoltage,
+ &RvBatteryModel::GetCutoffVoltage),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RvBatteryModelAlphaValue",
+ "RV battery model alpha value.",
+ DoubleValue (35220.0),
+ MakeDoubleAccessor (&RvBatteryModel::SetAlpha,
+ &RvBatteryModel::GetAlpha),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RvBatteryModelBetaValue",
+ "RV battery model beta value.",
+ DoubleValue (0.637),
+ MakeDoubleAccessor (&RvBatteryModel::SetBeta,
+ &RvBatteryModel::GetBeta),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RvBatteryModelNumOfTerms",
+ "The number of terms of the infinite sum for estimating battery level.",
+ IntegerValue (10), // value used in paper
+ MakeIntegerAccessor (&RvBatteryModel::SetNumOfTerms,
+ &RvBatteryModel::GetNumOfTerms),
+ MakeIntegerChecker<int> ())
+ .AddTraceSource ("RvBatteryModelBatteryLevel",
+ "RV battery model battery level.",
+ MakeTraceSourceAccessor (&RvBatteryModel::m_batteryLevel))
+ .AddTraceSource ("RvBatteryModelBatteryLifetime",
+ "RV battery model battery lifetime.",
+ MakeTraceSourceAccessor (&RvBatteryModel::m_lifetime))
+ ;
+ return tid;
+}
+
+RvBatteryModel::RvBatteryModel ()
+{
+ m_lastSampleTime = Seconds (0.0);
+ m_previousLoad = 0.0;
+ m_batteryLevel = 1; // fully charged
+ m_lifetime = Seconds (0.0);
+}
+
+RvBatteryModel::~RvBatteryModel ()
+{
+}
+
+double
+RvBatteryModel::GetInitialEnergy (void) const
+{
+ return m_alpha * GetSupplyVoltage ();
+}
+
+double
+RvBatteryModel::GetSupplyVoltage (void) const
+{
+ // average of Voc and Vcutoff
+ return (m_openCircuitVoltage - m_cutoffVoltage) / 2 + m_cutoffVoltage;
+}
+
+double
+RvBatteryModel::GetRemainingEnergy (void)
+{
+ NS_LOG_FUNCTION (this);
+ UpdateEnergySource ();
+ return m_alpha * GetSupplyVoltage () * m_batteryLevel;
+}
+
+double
+RvBatteryModel::GetEnergyFraction (void)
+{
+ return GetBatteryLevel ();
+}
+
+void
+RvBatteryModel::UpdateEnergySource (void)
+{
+ NS_LOG_FUNCTION (this);
+
+ // do not update if battery is already dead
+ if (m_batteryLevel <= 0)
+ {
+ NS_LOG_DEBUG ("RvBatteryModel:Battery is dead!");
+ return;
+ }
+
+ // do not update if simulation has finished
+ if (Simulator::IsFinished ())
+ {
+ return;
+ }
+
+ NS_LOG_DEBUG ("RvBatteryModel:Updating remaining energy!");
+
+ m_currentSampleEvent.Cancel ();
+
+ double currentLoad = CalculateTotalCurrent () * 1000; // must be in mA
+ double calculatedAlpha = Discharge (currentLoad, Simulator::Now ());
+
+ NS_LOG_DEBUG ("RvBatteryModel:Calculated alpha = " << calculatedAlpha <<
+ " time = " << Simulator::Now ().GetSeconds ());
+
+ // calculate battery level
+ m_batteryLevel = 1 - (calculatedAlpha / m_alpha);
+ if (m_batteryLevel < 0)
+ {
+ m_batteryLevel = 0;
+ }
+
+ // check if battery is dead.
+ if (calculatedAlpha >= m_alpha)
+ {
+ m_lifetime = Simulator::Now ();
+ NS_LOG_DEBUG ("RvBatteryModel:Battery is dead!");
+ HandleEnergyDrainedEvent ();
+ return; // stop periodic sampling
+ }
+
+ m_previousLoad = currentLoad;
+ m_lastSampleTime = Simulator::Now ();
+ m_currentSampleEvent = Simulator::Schedule (m_samplingInterval,
+ &RvBatteryModel::UpdateEnergySource,
+ this);
+}
+
+void
+RvBatteryModel::SetSamplingInterval (Time interval)
+{
+ NS_LOG_FUNCTION (this << interval);
+ m_samplingInterval = interval;
+}
+
+Time
+RvBatteryModel::GetSamplingInterval (void) const
+{
+ return m_samplingInterval;
+}
+
+void
+RvBatteryModel::SetOpenCircuitVoltage (double voltage)
+{
+ NS_LOG_FUNCTION (this << voltage);
+ NS_ASSERT (voltage >= 0);
+ m_openCircuitVoltage = voltage;
+}
+
+double
+RvBatteryModel::GetOpenCircuitVoltage (void) const
+{
+ return m_openCircuitVoltage;
+}
+
+void
+RvBatteryModel::SetCutoffVoltage (double voltage)
+{
+ NS_LOG_FUNCTION (this << voltage);
+ NS_ASSERT (voltage <= m_openCircuitVoltage);
+ m_cutoffVoltage = voltage;
+}
+
+double
+RvBatteryModel::GetCutoffVoltage (void) const
+{
+ return m_cutoffVoltage;
+}
+
+void
+RvBatteryModel::SetAlpha (double alpha)
+{
+ NS_LOG_FUNCTION (this << alpha);
+ NS_ASSERT (alpha >= 0);
+ m_alpha = alpha;
+}
+
+double
+RvBatteryModel::GetAlpha (void) const
+{
+ return m_alpha;
+}
+
+void
+RvBatteryModel::SetBeta (double beta)
+{
+ NS_LOG_FUNCTION (this << beta);
+ NS_ASSERT (beta >= 0);
+ m_beta = beta;
+}
+
+double
+RvBatteryModel::GetBeta (void) const
+{
+ return m_beta;
+}
+
+double
+RvBatteryModel::GetBatteryLevel (void)
+{
+ NS_LOG_FUNCTION (this);
+ UpdateEnergySource ();
+ return m_batteryLevel;
+}
+
+Time
+RvBatteryModel::GetLifetime (void) const
+{
+ return m_lifetime;
+}
+
+void
+RvBatteryModel::SetNumOfTerms (int num)
+{
+ NS_LOG_FUNCTION (this << num);
+ m_numOfTerms = num;
+}
+
+int
+RvBatteryModel::GetNumOfTerms (void) const
+{
+ return m_numOfTerms;
+}
+
+/*
+ * Private functions start here.
+ */
+
+void
+RvBatteryModel::DoStart (void)
+{
+ NS_LOG_DEBUG ("RvBatteryModel:Starting battery level update!");
+ UpdateEnergySource (); // start periodic sampling of load (total current)
+}
+
+void
+RvBatteryModel::DoDispose (void)
+{
+ BreakDeviceEnergyModelRefCycle (); // break reference cycle
+}
+
+void
+RvBatteryModel::HandleEnergyDrainedEvent (void)
+{
+ NS_LOG_FUNCTION (this);
+ NS_LOG_DEBUG ("RvBatteryModel:Energy depleted!");
+ NotifyEnergyDrained (); // notify DeviceEnergyModel objects
+}
+
+double
+RvBatteryModel::Discharge (double load, Time t)
+{
+ NS_LOG_FUNCTION (this << load << t);
+
+ // record only when load changes
+ if (load != m_previousLoad)
+ {
+ m_load.push_back (load);
+ m_previousLoad = load;
+ if (t != Seconds (0.0))
+ {
+ m_timeStamps[m_timeStamps.size () - 1] = m_lastSampleTime;
+ }
+ else
+ {
+ m_timeStamps.push_back (Seconds (0.0));
+ }
+ m_timeStamps.push_back (t);
+ }
+ else
+ {
+ m_timeStamps[m_timeStamps.size () - 1] = t;
+ }
+
+ m_lastSampleTime = t;
+
+ // calculate alpha for new t
+ NS_ASSERT (m_load.size () == m_timeStamps.size () - 1); // size must be equal
+ double calculatedAlpha = 0.0;
+ if (m_timeStamps.size () == 1)
+ {
+ // constant load
+ calculatedAlpha = m_load[0] * RvModelAFunction (t, t, Seconds(0.0),
+ m_beta);
+ }
+ else
+ {
+ // changing load
+ for (uint64_t i = 1; i < m_timeStamps.size (); i++)
+ {
+ calculatedAlpha += m_load[i - 1] * RvModelAFunction (t, m_timeStamps[i],
+ m_timeStamps[i - 1],
+ m_beta);
+ }
+ }
+
+ return calculatedAlpha;
+}
+
+double
+RvBatteryModel::RvModelAFunction (Time t, Time sk, Time sk_1, double beta)
+{
+ NS_LOG_FUNCTION (this << t << sk << sk_1 << beta);
+
+ // everything is in minutes
+ double firstDelta = (t.GetSeconds () - sk.GetSeconds ()) / 60;
+ double secondDelta = (t.GetSeconds () - sk_1.GetSeconds ()) / 60;
+ double delta = (sk.GetSeconds () - sk_1.GetSeconds ()) / 60;
+
+ double sum = 0.0;
+ for (int m = 1; m <= m_numOfTerms; m++)
+ {
+ double square = beta * beta * m * m;
+ sum += (exp (- square * (firstDelta)) - exp (- square * (secondDelta))) / square;
+ }
+ return delta + 2 * sum;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/rv-battery-model.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,259 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef RV_BATTERY_MODEL_H
+#define RV_BATTERY_MODEL_H
+
+#include "ns3/traced-value.h"
+#include "ns3/nstime.h"
+#include "ns3/event-id.h"
+#include "energy-source.h"
+
+namespace ns3 {
+
+/**
+ * \brief Rakhmatov Vrudhula non-linear battery model.
+ *
+ * This (energy source) model implements an analytical non-linear battery model.
+ * It is capable of capturing load capacity and recovery effects of batteries.
+ * Batteries are characterized by 2 parameters, alpha and beta, which can both
+ * be obtained from the discharge curve of the batteries.
+ *
+ * The model is developed by Daler Rakhmatov & Sarma Vrudhula in: "Battery
+ * Lifetime Prediction for Energy-Aware Computing" and "An Analytical High-Level
+ * Battery Model for Use in Energy Management of Portable Electronic Systems".
+ *
+ * The real-time algorithm is developed by Matthias Handy & Dirk Timmermann in:
+ * "Simulation of Mobile Wireless Networks with Accurate Modeling of non-linear
+ * battery effects". The real-time algorithm is modified by the authors of this
+ * code for improved accuracy and reduced computation (sampling) overhead.
+ */
+class RvBatteryModel : public EnergySource
+{
+public:
+ static TypeId GetTypeId (void);
+ RvBatteryModel ();
+ virtual ~RvBatteryModel ();
+
+ /**
+ * \return Initial energy stored (theoretical capacity) in the battery.
+ *
+ * Implements GetInitialEnergy.
+ */
+ virtual double GetInitialEnergy (void) const;
+
+ /**
+ * \returns Supply voltage at the energy source.
+ *
+ * Implements GetSupplyVoltage.
+ */
+ virtual double GetSupplyVoltage (void) const;
+
+ /**
+ * \return Remaining energy in energy source, in Joules
+ *
+ * Implements GetRemainingEnergy.
+ */
+ virtual double GetRemainingEnergy (void);
+
+ /**
+ * \returns Energy fraction.
+ *
+ * Implements GetEnergyFraction. For the RV battery model, energy fraction is
+ * equivalent to battery level.
+ */
+ virtual double GetEnergyFraction (void);
+
+ /**
+ * Implements UpdateEnergySource. This function samples the total load (total
+ * current) from all devices to discharge the battery.
+ */
+ virtual void UpdateEnergySource (void);
+
+ /**
+ * \param interval Energy update interval.
+ *
+ * This function sets the interval between each energy update.
+ */
+ void SetSamplingInterval (Time interval);
+
+ /**
+ * \returns The interval between each energy update.
+ */
+ Time GetSamplingInterval (void) const;
+
+ /**
+ * \brief Sets open circuit voltage of battery.
+ *
+ * \param voltage Open circuit voltage.
+ */
+ void SetOpenCircuitVoltage (double voltage);
+
+ /**
+ * \return Open circuit voltage of battery.
+ */
+ double GetOpenCircuitVoltage (void) const;
+
+ /**
+ * \brief Sets cutoff voltage of battery.
+ *
+ * \param voltage Cutoff voltage.
+ */
+ void SetCutoffVoltage (double voltage);
+
+ /**
+ * \returns Cutoff voltage of battery.
+ */
+ double GetCutoffVoltage (void) const;
+
+ /**
+ * \brief Sets the alpha value for the battery model.
+ *
+ * \param alpha Alpha.
+ */
+ void SetAlpha (double alpha);
+
+ /**
+ * \returns The alpha value used by the battery model.
+ */
+ double GetAlpha (void) const;
+
+ /**
+ * \brief Sets the beta value for the battery model.
+ *
+ * \param beta Beta.
+ */
+ void SetBeta (double beta);
+
+ /**
+ * \returns The beta value used by the battery model.
+ */
+ double GetBeta (void) const;
+
+ /**
+ * \returns Battery level [0, 1].
+ */
+ double GetBatteryLevel (void);
+
+ /**
+ * \returns Lifetime of the battery.
+ */
+ Time GetLifetime (void) const;
+
+ /**
+ * \brief Sets the number of terms of the infinite sum for estimating battery
+ * level.
+ *
+ * \param num Number of terms.
+ */
+ void SetNumOfTerms (int num);
+
+ /**
+ * \returns The number of terms of the infinite sum for estimating battery
+ * level.
+ */
+ int GetNumOfTerms (void) const;
+
+private:
+ /// Defined in ns3::Object
+ virtual void DoStart (void);
+
+ /// Defined in ns3::Object
+ virtual void DoDispose (void);
+
+ /**
+ * Handles the remaining energy going to zero event. This function notifies
+ * all the energy models aggregated to the node about the energy being
+ * depleted. Each energy model is then responsible for its own handler.
+ */
+ void HandleEnergyDrainedEvent (void);
+
+ /**
+ * \brief Discharges the battery.
+ *
+ * \param load Load value (total current form devices, in mA).
+ * \param t Time stamp of the load value.
+ * \returns Calculated alpha value.
+ *
+ * Discharge function calculates a value which is then compared to the alpha
+ * value to determine if the battery is dead. It will also update the battery
+ * level.
+ *
+ * Note that the load value passed to Discharge has to be in mA.
+ */
+ double Discharge (double load, Time t);
+
+ /**
+ * \brief RV model A function.
+ *
+ * \param t Current time.
+ * \param sk Time stamp in array position k
+ * \param sk_1 Time stamp in array position k-1
+ * \param beta Beta value used by the battery model.
+ * \returns Result of A function.
+ *
+ * This function computes alpha value using the recorded load profile.
+ */
+ double RvModelAFunction (Time t, Time sk, Time sk_1, double beta);
+
+private:
+ double m_openCircuitVoltage;
+ double m_cutoffVoltage;
+ double m_alpha; // alpha value of RV model, in Coulomb
+ double m_beta; // beta value of RV model, in second^-1
+
+ double m_previousLoad; // load value (total current) of previous sampling
+ std::vector<double> m_load; // load profile
+ std::vector<Time> m_timeStamps; // time stamps of load profile
+ Time m_lastSampleTime;
+ uint64_t m_counter;
+
+ int m_numOfTerms; // # of terms for infinite sum in battery level estimation
+
+ /**
+ * Battery level is defined as: output of Discharge function / alpha value
+ *
+ * The output of Discharge function is an estimated charge consumption of the
+ * battery.
+ *
+ * The alpha value is the amount of charges stored in the battery, or battery
+ * capacity (in Coulomb).
+ *
+ * When the battery is fully charged (no charge is consumed from the battery)
+ * the battery level is 1. When the battery is fully discharged, the battery
+ * level is 0.
+ *
+ * NOTE Note that the definition in Timmermann's paper is the inverse of this
+ * definition. In the paper, battery level = 1 when the battery is drained.
+ */
+ TracedValue<double> m_batteryLevel;
+
+ /**
+ * (1 / sampling interval) = sampling frequency
+ */
+ Time m_samplingInterval;
+ EventId m_currentSampleEvent;
+
+ TracedValue<Time> m_lifetime; // time of death of the battery
+};
+
+} // namespace ns3
+
+#endif /* RV_BATTERY_MODEL_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/simple-device-energy-model.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,92 @@
+#include "ns3/simulator.h"
+#include "ns3/trace-source-accessor.h"
+#include "ns3/energy-source.h"
+#include "simple-device-energy-model.h"
+
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (SimpleDeviceEnergyModel);
+
+TypeId
+SimpleDeviceEnergyModel::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::SimpleDeviceEnergyModel")
+ .SetParent<DeviceEnergyModel> ()
+ .AddConstructor<SimpleDeviceEnergyModel> ()
+ .AddTraceSource ("TotalEnergyConsumption",
+ "Total energy consumption of the radio device.",
+ MakeTraceSourceAccessor (&SimpleDeviceEnergyModel::m_totalEnergyConsumption))
+ ;
+ return tid;
+}
+
+SimpleDeviceEnergyModel::SimpleDeviceEnergyModel ()
+{
+ m_lastUpdateTime = Seconds (0.0);
+ m_actualCurrentA = 0.0;
+ m_source = 0;
+}
+
+SimpleDeviceEnergyModel::~SimpleDeviceEnergyModel ()
+{
+}
+
+void
+SimpleDeviceEnergyModel::SetEnergySource (Ptr<EnergySource> source)
+{
+ NS_ASSERT (source != NULL);
+ m_source = source;
+}
+
+void
+SimpleDeviceEnergyModel::SetNode (Ptr<Node> node)
+{
+ NS_ASSERT (node != NULL);
+ m_node = node;
+}
+
+Ptr<Node>
+SimpleDeviceEnergyModel::GetNode () const
+{
+ return m_node;
+}
+
+double
+SimpleDeviceEnergyModel::GetTotalEnergyConsumption (void) const
+{
+ return m_totalEnergyConsumption;
+}
+
+void
+SimpleDeviceEnergyModel::SetCurrentA (double current)
+{
+ Time duration = Simulator::Now () - m_lastUpdateTime;
+
+ double energyToDecrease = 0.0;
+ double supplyVoltage = m_source->GetSupplyVoltage ();
+ energyToDecrease = duration.GetSeconds () * current * supplyVoltage;
+
+ // update total energy consumption
+ m_totalEnergyConsumption += energyToDecrease;
+ // update last update time stamp
+ m_lastUpdateTime = Simulator::Now ();
+ // notify energy source
+ m_source->UpdateEnergySource ();
+ // update the current drain
+ m_actualCurrentA = current;
+}
+
+void
+SimpleDeviceEnergyModel::DoDispose (void)
+{
+ m_source = 0;
+}
+
+double
+SimpleDeviceEnergyModel::DoGetCurrentA (void) const
+{
+ return m_actualCurrentA;
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/simple-device-energy-model.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,106 @@
+/*
+ * simple-device-energy-model.h
+ *
+ * Created on: 09/ago/2010
+ * Author: socket
+ */
+#ifndef SIMPLE_DEVICE_ENERGY_MODEL_H_
+#define SIMPLE_DEVICE_ENERGY_MODEL_H_
+
+#include "ns3/device-energy-model.h"
+#include "ns3/nstime.h"
+#include "ns3/traced-value.h"
+
+namespace ns3 {
+
+/**
+ *
+ * A simple device energy model where current drain can be set by the user.
+ *
+ * It is supposed to be used as a testing model for energy sources.
+ */
+class SimpleDeviceEnergyModel : public DeviceEnergyModel
+{
+public:
+ static TypeId GetTypeId (void);
+ SimpleDeviceEnergyModel ();
+ virtual ~SimpleDeviceEnergyModel ();
+
+ /**
+ * \brief Sets pointer to node.
+ *
+ * \param node Pointer to node.
+ *
+ * Implements DeviceEnergyModel::SetNode.
+ */
+ virtual void SetNode (Ptr<Node> node);
+
+ /**
+ * \brief Gets pointer to node.
+ *
+ * \returns Pointer to node.
+ *
+ * Implements DeviceEnergyModel::GetNode.
+ */
+ virtual Ptr<Node> GetNode (void) const;
+
+ /**
+ * \brief Sets pointer to EnergySouce installed on node.
+ *
+ * \param source Pointer to EnergySource installed on node.
+ *
+ * Implements DeviceEnergyModel::SetEnergySource.
+ */
+ virtual void SetEnergySource (Ptr<EnergySource> source);
+
+ /**
+ * \returns Total energy consumption of the vehicle.
+ *
+ * Implements DeviceEnergyModel::GetTotalEnergyConsumption.
+ */
+ virtual double GetTotalEnergyConsumption (void) const;
+
+ /**
+ * \param newState New state the device is in.
+ *
+ * Not implemented
+ */
+ virtual void ChangeState (int newState)
+ {
+ }
+
+ /**
+ * \brief Handles energy depletion.
+ *
+ * Not implemented
+ */
+ virtual void HandleEnergyDepletion (void)
+ {
+ }
+
+ /**
+ * \param current the current draw of device.
+ *
+ * Set the actual current draw of the device.
+ */
+ void SetCurrentA (double current);
+private:
+ void DoDispose (void);
+
+ /**
+ * \returns Current draw of device, at current state.
+ *
+ * Implements DeviceEnergyModel::GetCurrentA.
+ */
+ virtual double DoGetCurrentA (void) const;
+
+ Time m_lastUpdateTime;
+ double m_actualCurrentA;
+ Ptr<EnergySource> m_source;
+ Ptr<Node> m_node;
+ TracedValue<double> m_totalEnergyConsumption;
+};
+
+} // namespace ns3
+
+#endif /* SIMPLE_DEVICE_ENERGY_MODEL_H_ */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/wifi-radio-energy-model.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,419 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#include "ns3/log.h"
+#include "ns3/double.h"
+#include "ns3/simulator.h"
+#include "ns3/trace-source-accessor.h"
+#include "energy-source.h"
+#include "wifi-radio-energy-model.h"
+
+NS_LOG_COMPONENT_DEFINE ("WifiRadioEnergyModel");
+
+namespace ns3 {
+
+NS_OBJECT_ENSURE_REGISTERED (WifiRadioEnergyModel);
+
+TypeId
+WifiRadioEnergyModel::GetTypeId (void)
+{
+ static TypeId tid = TypeId ("ns3::WifiRadioEnergyModel")
+ .SetParent<DeviceEnergyModel> ()
+ .AddConstructor<WifiRadioEnergyModel> ()
+ .AddAttribute ("IdleCurrentA",
+ "The default radio Idle current in Ampere.",
+ DoubleValue (0.000426), // idle mode = 426uA
+ MakeDoubleAccessor (&WifiRadioEnergyModel::SetIdleCurrentA,
+ &WifiRadioEnergyModel::GetIdleCurrentA),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("CcaBusyCurrentA",
+ "The default radio CCA Busy State current in Ampere.",
+ DoubleValue (0.000426), // default to be the same as idle mode
+ MakeDoubleAccessor (&WifiRadioEnergyModel::SetCcaBusyCurrentA,
+ &WifiRadioEnergyModel::GetCcaBusyCurrentA),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("TxCurrentA",
+ "The radio Tx current in Ampere.",
+ DoubleValue (0.0174), // transmit at 0dBm = 17.4mA
+ MakeDoubleAccessor (&WifiRadioEnergyModel::SetTxCurrentA,
+ &WifiRadioEnergyModel::GetTxCurrentA),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("RxCurrentA",
+ "The radio Rx current in Ampere.",
+ DoubleValue (0.0197), // receive mode = 19.7mA
+ MakeDoubleAccessor (&WifiRadioEnergyModel::SetRxCurrentA,
+ &WifiRadioEnergyModel::GetRxCurrentA),
+ MakeDoubleChecker<double> ())
+ .AddAttribute ("SwitchingCurrentA",
+ "The default radio Channel Switch current in Ampere.",
+ DoubleValue (0.000426), // default to be the same as idle mode
+ MakeDoubleAccessor (&WifiRadioEnergyModel::SetSwitchingCurrentA,
+ &WifiRadioEnergyModel::GetSwitchingCurrentA),
+ MakeDoubleChecker<double> ())
+ .AddTraceSource ("TotalEnergyConsumption",
+ "Total energy consumption of the radio device.",
+ MakeTraceSourceAccessor (&WifiRadioEnergyModel::m_totalEnergyConsumption))
+ ;
+ return tid;
+}
+
+WifiRadioEnergyModel::WifiRadioEnergyModel ()
+{
+ NS_LOG_FUNCTION (this);
+ m_currentState = WifiPhy::IDLE; // initially IDLE
+ m_lastUpdateTime = Seconds (0.0);
+ m_energyDepletionCallback.Nullify ();
+ m_source = NULL;
+ // set callback for WifiPhy listener
+ m_listener = new WifiRadioEnergyModelPhyListener;
+ m_listener->SetChangeStateCallback (MakeCallback (&DeviceEnergyModel::ChangeState, this));
+}
+
+WifiRadioEnergyModel::~WifiRadioEnergyModel ()
+{
+ delete m_listener;
+}
+
+void
+WifiRadioEnergyModel::SetEnergySource (Ptr<EnergySource> source)
+{
+ NS_LOG_FUNCTION (this << source);
+ NS_ASSERT (source != NULL);
+ m_source = source;
+}
+
+double
+WifiRadioEnergyModel::GetTotalEnergyConsumption (void) const
+{
+ return m_totalEnergyConsumption;
+}
+
+double
+WifiRadioEnergyModel::GetIdleCurrentA (void) const
+{
+ return m_idleCurrentA;
+}
+
+void
+WifiRadioEnergyModel::SetIdleCurrentA (double idleCurrentA)
+{
+ NS_LOG_FUNCTION (this << idleCurrentA);
+ m_idleCurrentA = idleCurrentA;
+}
+
+double
+WifiRadioEnergyModel::GetCcaBusyCurrentA (void) const
+{
+ return m_ccaBusyCurrentA;
+}
+
+void
+WifiRadioEnergyModel::SetCcaBusyCurrentA (double CcaBusyCurrentA)
+{
+ NS_LOG_FUNCTION (this << CcaBusyCurrentA);
+ m_ccaBusyCurrentA = CcaBusyCurrentA;
+}
+
+double
+WifiRadioEnergyModel::GetTxCurrentA (void) const
+{
+ return m_txCurrentA;
+}
+
+void
+WifiRadioEnergyModel::SetTxCurrentA (double txCurrentA)
+{
+ NS_LOG_FUNCTION (this << txCurrentA);
+ m_txCurrentA = txCurrentA;
+}
+
+double
+WifiRadioEnergyModel::GetRxCurrentA (void) const
+{
+ return m_rxCurrentA;
+}
+
+void
+WifiRadioEnergyModel::SetRxCurrentA (double rxCurrentA)
+{
+ NS_LOG_FUNCTION (this << rxCurrentA);
+ m_rxCurrentA = rxCurrentA;
+}
+
+double
+WifiRadioEnergyModel::GetSwitchingCurrentA (void) const
+{
+ return m_switchingCurrentA;
+}
+
+void
+WifiRadioEnergyModel::SetSwitchingCurrentA (double switchingCurrentA)
+{
+ NS_LOG_FUNCTION (this << switchingCurrentA);
+ m_switchingCurrentA = switchingCurrentA;
+}
+
+
+WifiPhy::State
+WifiRadioEnergyModel::GetCurrentState (void) const
+{
+ return m_currentState;
+}
+
+void
+WifiRadioEnergyModel::SetEnergyDepletionCallback (
+ WifiRadioEnergyDepletionCallback callback)
+{
+ NS_LOG_FUNCTION (this);
+ if (callback.IsNull ())
+ {
+ NS_LOG_DEBUG ("WifiRadioEnergyModel:Setting NULL energy depletion callback!");
+ }
+ m_energyDepletionCallback = callback;
+}
+
+void
+WifiRadioEnergyModel::ChangeState (int newState)
+{
+ NS_LOG_FUNCTION (this << newState);
+
+ Time duration = Simulator::Now () - m_lastUpdateTime;
+ NS_ASSERT (duration.GetNanoSeconds () >= 0); // check if duration is valid
+
+ // energy to decrease = current * voltage * time
+ double energyToDecrease = 0.0;
+ double supplyVoltage = m_source->GetSupplyVoltage ();
+ switch (m_currentState)
+ {
+ case WifiPhy::IDLE:
+ energyToDecrease = duration.GetSeconds () * m_idleCurrentA * supplyVoltage;
+ break;
+ case WifiPhy::CCA_BUSY:
+ energyToDecrease = duration.GetSeconds () * m_ccaBusyCurrentA * supplyVoltage;
+ break;
+ case WifiPhy::TX:
+ energyToDecrease = duration.GetSeconds () * m_txCurrentA * supplyVoltage;
+ break;
+ case WifiPhy::RX:
+ energyToDecrease = duration.GetSeconds () * m_rxCurrentA * supplyVoltage;
+ break;
+ case WifiPhy::SWITCHING:
+ energyToDecrease = duration.GetSeconds () * m_switchingCurrentA * supplyVoltage;
+ break;
+ default:
+ NS_FATAL_ERROR ("WifiRadioEnergyModel:Undefined radio state: " << m_currentState);
+ }
+
+ // update total energy consumption
+ m_totalEnergyConsumption += energyToDecrease;
+
+ // update last update time stamp
+ m_lastUpdateTime = Simulator::Now ();
+
+ // notify energy source
+ m_source->UpdateEnergySource ();
+
+ // update current state & last update time stamp
+ SetWifiRadioState ((WifiPhy::State) newState);
+
+ // some debug message
+ NS_LOG_DEBUG ("WifiRadioEnergyModel:Total energy consumption is " <<
+ m_totalEnergyConsumption << "J");
+}
+
+void
+WifiRadioEnergyModel::HandleEnergyDepletion (void)
+{
+ NS_LOG_DEBUG ("WifiRadioEnergyModel:Energy is depleted!");
+ // invoke energy depletion callback, if set.
+ if (!m_energyDepletionCallback.IsNull ())
+ {
+ m_energyDepletionCallback ();
+ }
+}
+
+WifiRadioEnergyModelPhyListener *
+WifiRadioEnergyModel::GetPhyListener (void)
+{
+ return m_listener;
+}
+
+/*
+ * Private functions start here.
+ */
+
+void
+WifiRadioEnergyModel::DoDispose (void)
+{
+ m_source = NULL;
+ m_energyDepletionCallback.Nullify ();
+}
+
+double
+WifiRadioEnergyModel::DoGetCurrentA (void) const
+{
+ switch (m_currentState)
+ {
+ case WifiPhy::IDLE:
+ return m_idleCurrentA;
+ case WifiPhy::CCA_BUSY:
+ return m_ccaBusyCurrentA;
+ case WifiPhy::TX:
+ return m_txCurrentA;
+ case WifiPhy::RX:
+ return m_rxCurrentA;
+ case WifiPhy::SWITCHING:
+ return m_switchingCurrentA;
+ default:
+ NS_FATAL_ERROR ("WifiRadioEnergyModel:Undefined radio state:" << m_currentState);
+ }
+}
+
+void
+WifiRadioEnergyModel::SetWifiRadioState (const WifiPhy::State state)
+{
+ NS_LOG_FUNCTION (this << state);
+ m_currentState = state;
+ std::string stateName;
+ switch (state)
+ {
+ case WifiPhy::IDLE:
+ stateName = "IDLE";
+ break;
+ case WifiPhy::CCA_BUSY:
+ stateName = "CCA_BUSY";
+ break;
+ case WifiPhy::TX:
+ stateName = "TX";
+ break;
+ case WifiPhy::RX:
+ stateName = "RX";
+ break;
+ case WifiPhy::SWITCHING:
+ stateName = "SWITCHING";
+ break;
+ }
+ NS_LOG_DEBUG ("WifiRadioEnergyModel:Switching to state: " << stateName <<
+ " at time = " << Simulator::Now ());
+}
+
+// -------------------------------------------------------------------------- //
+
+WifiRadioEnergyModelPhyListener::WifiRadioEnergyModelPhyListener ()
+{
+ m_changeStateCallback.Nullify ();
+}
+
+WifiRadioEnergyModelPhyListener::~WifiRadioEnergyModelPhyListener ()
+{
+}
+
+void
+WifiRadioEnergyModelPhyListener::SetChangeStateCallback (DeviceEnergyModel::ChangeStateCallback callback)
+{
+ NS_ASSERT (!callback.IsNull ());
+ m_changeStateCallback = callback;
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifyRxStart (Time duration)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::RX);
+ m_switchToIdleEvent.Cancel ();
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifyRxEndOk (void)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::IDLE);
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifyRxEndError (void)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::IDLE);
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifyTxStart (Time duration)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::TX);
+ // schedule changing state back to IDLE after TX duration
+ m_switchToIdleEvent.Cancel ();
+ m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifyMaybeCcaBusyStart (Time duration)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::CCA_BUSY);
+ // schedule changing state back to IDLE after CCA_BUSY duration
+ m_switchToIdleEvent.Cancel ();
+ m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
+}
+
+void
+WifiRadioEnergyModelPhyListener::NotifySwitchingStart (Time duration)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::SWITCHING);
+ // schedule changing state back to IDLE after CCA_BUSY duration
+ m_switchToIdleEvent.Cancel ();
+ m_switchToIdleEvent = Simulator::Schedule (duration, &WifiRadioEnergyModelPhyListener::SwitchToIdle, this);
+}
+
+/*
+ * Private function state here.
+ */
+
+void
+WifiRadioEnergyModelPhyListener::SwitchToIdle (void)
+{
+ if (m_changeStateCallback.IsNull ())
+ {
+ NS_FATAL_ERROR ("WifiRadioEnergyModelPhyListener:Change state callback not set!");
+ }
+ m_changeStateCallback (WifiPhy::IDLE);
+}
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/model/wifi-radio-energy-model.h Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,261 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Authors: Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu>
+ */
+
+#ifndef WIFI_RADIO_ENERGY_MODEL_H
+#define WIFI_RADIO_ENERGY_MODEL_H
+
+#include "ns3/device-energy-model.h"
+#include "ns3/nstime.h"
+#include "ns3/event-id.h"
+#include "ns3/traced-value.h"
+#include "ns3/wifi-phy.h"
+
+namespace ns3 {
+
+/**
+ * A WifiPhy listener class for notifying the WifiRadioEnergyModel of Wifi radio
+ * state change.
+ */
+class WifiRadioEnergyModelPhyListener : public WifiPhyListener
+{
+public:
+ WifiRadioEnergyModelPhyListener ();
+ virtual ~WifiRadioEnergyModelPhyListener ();
+
+ /**
+ * \brief Sets the change state callback. Used by helper class.
+ *
+ * \param callback Change state callback.
+ */
+ void SetChangeStateCallback (DeviceEnergyModel::ChangeStateCallback callback);
+
+ /**
+ * \brief Switches the WifiRadioEnergyModel to RX state.
+ *
+ * \param duration the expected duration of the packet reception.
+ *
+ * Defined in ns3::WifiPhyListener
+ */
+ virtual void NotifyRxStart (Time duration);
+
+ /**
+ * \brief Switches the WifiRadioEnergyModel back to IDLE state.
+ *
+ * Defined in ns3::WifiPhyListener
+ *
+ * Note that for the WifiRadioEnergyModel, the behavior of the function is the
+ * same as NotifyRxEndError.
+ */
+ virtual void NotifyRxEndOk (void);
+
+ /**
+ * \brief Switches the WifiRadioEnergyModel back to IDLE state.
+ *
+ * Defined in ns3::WifiPhyListener
+ *
+ * Note that for the WifiRadioEnergyModel, the behavior of the function is the
+ * same as NotifyRxEndOk.
+ */
+ virtual void NotifyRxEndError (void);
+
+ /**
+ * \brief Switches the WifiRadioEnergyModel to TX state and switches back to
+ * IDLE after TX duration.
+ *
+ * \param duration the expected transmission duration.
+ *
+ * Defined in ns3::WifiPhyListener
+ */
+ virtual void NotifyTxStart (Time duration);
+
+ /**
+ * \param duration the expected busy duration.
+ *
+ * Defined in ns3::WifiPhyListener
+ */
+ virtual void NotifyMaybeCcaBusyStart (Time duration);
+
+ /**
+ * \param duration the expected channel switching duration.
+ *
+ * Defined in ns3::WifiPhyListener
+ */
+ virtual void NotifySwitchingStart (Time duration);
+
+private:
+ /**
+ * A helper function that makes scheduling m_changeStateCallback possible.
+ */
+ void SwitchToIdle (void);
+
+private:
+ /**
+ * Change state callback used to notify the WifiRadioEnergyModel of a state
+ * change.
+ */
+ DeviceEnergyModel::ChangeStateCallback m_changeStateCallback;
+
+ EventId m_switchToIdleEvent;
+};
+
+// -------------------------------------------------------------------------- //
+
+/**
+ * \brief A WiFi radio energy model.
+ *
+ * 4 states are defined for the radio: TX, RX, IDLE, SLEEP. Default state is
+ * IDLE.
+ * The different types of transactions that are defined are:
+ * 1. Tx: State goes from IDLE to TX, radio is in TX state for TX_duration,
+ * then state goes from TX to IDLE.
+ * 2. Rx: State goes from IDLE to RX, radio is in RX state for RX_duration,
+ * then state goes from RX to IDLE.
+ * 3. Go_to_Sleep: State goes from IDLE to SLEEP.
+ * 4. End_of_Sleep: State goes from SLEEP to IDLE.
+ * The class keeps track of what state the radio is currently in.
+ *
+ * Energy calculation: For each transaction, this model notifies EnergySource
+ * object. The EnergySource object will query this model for the total current.
+ * Then the EnergySource object uses the total current to calculate energy.
+ *
+ * Default values for power consumption are based on CC2420 radio chip, with
+ * supply voltage as 2.5V and currents as 17.4 mA (TX), 18.8 mA (RX), 20 uA
+ * (sleep) and 426 uA (idle).
+ */
+class WifiRadioEnergyModel : public DeviceEnergyModel
+{
+public:
+ /**
+ * Callback type for energy depletion handling.
+ */
+ typedef Callback<void> WifiRadioEnergyDepletionCallback;
+
+public:
+ static TypeId GetTypeId (void);
+ WifiRadioEnergyModel ();
+ virtual ~WifiRadioEnergyModel ();
+
+ /**
+ * \brief Sets pointer to EnergySouce installed on node.
+ *
+ * \param source Pointer to EnergySource installed on node.
+ *
+ * Implements DeviceEnergyModel::SetEnergySource.
+ */
+ virtual void SetEnergySource (Ptr<EnergySource> source);
+
+ /**
+ * \returns Total energy consumption of the wifi device.
+ *
+ * Implements DeviceEnergyModel::GetTotalEnergyConsumption.
+ */
+ virtual double GetTotalEnergyConsumption (void) const;
+
+ // Setter & getters for state power consumption.
+ double GetIdleCurrentA (void) const;
+ void SetIdleCurrentA (double idleCurrentA);
+ double GetCcaBusyCurrentA (void) const;
+ void SetCcaBusyCurrentA (double ccaBusyCurrentA);
+ double GetTxCurrentA (void) const;
+ void SetTxCurrentA (double txCurrentA);
+ double GetRxCurrentA (void) const;
+ void SetRxCurrentA (double rxCurrentA);
+ double GetSwitchingCurrentA (void) const;
+ void SetSwitchingCurrentA (double switchingCurrentA);
+
+ /**
+ * \returns Current state.
+ */
+ WifiPhy::State GetCurrentState (void) const;
+
+ /**
+ * \param callback Callback function.
+ *
+ * Sets callback for energy depletion handling.
+ */
+ void SetEnergyDepletionCallback (WifiRadioEnergyDepletionCallback callback);
+
+ /**
+ * \brief Changes state of the WifiRadioEnergyMode.
+ *
+ * \param newState New state the wifi radio is in.
+ *
+ * Implements DeviceEnergyModel::ChangeState.
+ */
+ virtual void ChangeState (int newState);
+
+ /**
+ * \brief Handles energy depletion.
+ *
+ * Implements DeviceEnergyModel::HandleEnergyDepletion
+ */
+ virtual void HandleEnergyDepletion (void);
+
+ /**
+ * \returns Pointer to the PHY listener.
+ */
+ WifiRadioEnergyModelPhyListener * GetPhyListener (void);
+
+
+private:
+ void DoDispose (void);
+
+ /**
+ * \returns Current draw of device, at current state.
+ *
+ * Implements DeviceEnergyModel::GetCurrentA.
+ */
+ virtual double DoGetCurrentA (void) const;
+
+ /**
+ * \param currentState New state the radio device is currently in.
+ *
+ * Sets current state. This function is private so that only the energy model
+ * can change its own state.
+ */
+ void SetWifiRadioState (const WifiPhy::State state);
+
+private:
+ Ptr<EnergySource> m_source;
+
+ // Member variables for current draw in different radio modes.
+ double m_txCurrentA;
+ double m_rxCurrentA;
+ double m_idleCurrentA;
+ double m_ccaBusyCurrentA;
+ double m_switchingCurrentA;
+
+ // This variable keeps track of the total energy consumed by this model.
+ TracedValue<double> m_totalEnergyConsumption;
+
+ // State variables.
+ WifiPhy::State m_currentState; // current state the radio is in
+ Time m_lastUpdateTime; // time stamp of previous energy update
+
+ // Energy depletion callback
+ WifiRadioEnergyDepletionCallback m_energyDepletionCallback;
+
+ // WifiPhy listener
+ WifiRadioEnergyModelPhyListener *m_listener;
+};
+
+} // namespace ns3
+
+#endif /* WIFI_RADIO_ENERGY_MODEL_H */
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/test/basic-energy-model-test.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,390 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: He Wu <mdzz@u.washington.edu>
+ */
+
+#include "ns3/basic-energy-source.h"
+#include "ns3/wifi-radio-energy-model.h"
+#include "ns3/basic-energy-source-helper.h"
+#include "ns3/wifi-radio-energy-model-helper.h"
+#include "ns3/energy-source-container.h"
+#include "ns3/device-energy-model-container.h"
+#include "ns3/log.h"
+#include "ns3/test.h"
+#include "ns3/node.h"
+#include "ns3/simulator.h"
+#include "ns3/double.h"
+#include "ns3/config.h"
+#include "ns3/string.h"
+#include "ns3/yans-wifi-helper.h"
+#include "ns3/nqos-wifi-mac-helper.h"
+#include <math.h>
+
+using namespace ns3;
+
+NS_LOG_COMPONENT_DEFINE ("BasicEnergyModelTestSuite");
+
+/**
+ * Test case of update remaining energy for BasicEnergySource and
+ * WifiRadioEnergyModel.
+ */
+class BasicEnergyUpdateTest : public TestCase
+{
+public:
+ BasicEnergyUpdateTest ();
+ virtual ~BasicEnergyUpdateTest ();
+
+private:
+ void DoRun (void);
+
+ /**
+ * \param state Radio state to switch to.
+ * \return False if no error occurs.
+ *
+ * Runs simulation for a while, check if final state & remaining energy is
+ * correctly updated.
+ */
+ bool StateSwitchTest (WifiPhy::State state);
+
+private:
+ double m_timeS; // in seconds
+ double m_tolerance; // tolerance for power estimation
+
+ ObjectFactory m_energySource;
+ ObjectFactory m_deviceEnergyModel;
+};
+
+BasicEnergyUpdateTest::BasicEnergyUpdateTest ()
+ : TestCase ("Basic energy model update remaining energy test case")
+{
+ m_timeS = 15.5; // idle for 15 seconds before changing state
+ m_tolerance = 1.0e-13; //
+}
+
+BasicEnergyUpdateTest::~BasicEnergyUpdateTest ()
+{
+}
+
+void
+BasicEnergyUpdateTest::DoRun (void)
+{
+ // set types
+ m_energySource.SetTypeId ("ns3::BasicEnergySource");
+ m_deviceEnergyModel.SetTypeId ("ns3::WifiRadioEnergyModel");
+
+ // run state switch tests
+ NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::IDLE), false, "Problem with state switch test (WifiPhy idle).");
+ NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::CCA_BUSY), false, "Problem with state switch test (WifiPhy cca busy).");
+ NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::TX), false, "Problem with state switch test (WifiPhy tx).");
+ NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::RX), false, "Problem with state switch test (WifiPhy rx).");
+ NS_TEST_ASSERT_MSG_EQ (StateSwitchTest (WifiPhy::SWITCHING), false, "Problem with state switch test (WifiPhy switching).");
+}
+
+bool
+BasicEnergyUpdateTest::StateSwitchTest (WifiPhy::State state)
+{
+ // create node
+ Ptr<Node> node = CreateObject<Node> ();
+
+ // create energy source
+ Ptr<BasicEnergySource> source = m_energySource.Create<BasicEnergySource> ();
+ // aggregate energy source to node
+ node->AggregateObject (source);
+
+ // create device energy model
+ Ptr<WifiRadioEnergyModel> model =
+ m_deviceEnergyModel.Create<WifiRadioEnergyModel> ();
+ // set energy source pointer
+ model->SetEnergySource (source);
+ // add device energy model to model list in energy source
+ source->AppendDeviceEnergyModel (model);
+
+ // retrieve device energy model from energy source
+ DeviceEnergyModelContainer models =
+ source->FindDeviceEnergyModels ("ns3::WifiRadioEnergyModel");
+ // check list
+ NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (false, (models.GetN () == 0), "Model list is empty!");
+ // get pointer
+ Ptr<WifiRadioEnergyModel> devModel =
+ DynamicCast<WifiRadioEnergyModel> (models.Get (0));
+ // check pointer
+ NS_TEST_ASSERT_MSG_NE_RETURNS_BOOL (0, devModel, "NULL pointer to device model!");
+
+ /*
+ * The radio will stay IDLE for m_timeS seconds. Then it will switch into a
+ * different state.
+ */
+
+ // schedule change of state
+ Simulator::Schedule (Seconds (m_timeS),
+ &WifiRadioEnergyModel::ChangeState, devModel, state);
+
+ // Calculate remaining energy at simulation stop time
+ Simulator::Schedule (Seconds (m_timeS * 2),
+ &BasicEnergySource::UpdateEnergySource, source);
+
+ double timeDelta = 0.000000001; // 1 nanosecond
+ // run simulation; stop just after last scheduled event
+ Simulator::Stop (Seconds (m_timeS * 2 + timeDelta));
+ Simulator::Run ();
+
+ // energy = current * voltage * time
+
+ // calculate idle power consumption
+ double estRemainingEnergy = source->GetInitialEnergy ();
+ double voltage = source->GetSupplyVoltage ();
+ estRemainingEnergy -= devModel->GetIdleCurrentA () * voltage * m_timeS;
+
+ /*
+ * Manually calculate the number of periodic updates performed by the source.
+ * This is to check if the periodic updates are performed correctly.
+ */
+ double actualTime = m_timeS;
+ actualTime /= source->GetEnergyUpdateInterval ().GetSeconds ();
+ actualTime = floor (actualTime); // rounding for update interval
+ actualTime *= source->GetEnergyUpdateInterval ().GetSeconds ();
+
+ // calculate new state power consumption
+ double current = 0.0;
+ switch (state)
+ {
+ case WifiPhy::IDLE:
+ current = devModel->GetIdleCurrentA ();
+ break;
+ case WifiPhy::CCA_BUSY:
+ current = devModel->GetCcaBusyCurrentA ();
+ break;
+ case WifiPhy::TX:
+ current = devModel->GetTxCurrentA ();
+ break;
+ case WifiPhy::RX:
+ current = devModel->GetRxCurrentA ();
+ break;
+ case WifiPhy::SWITCHING:
+ current = devModel->GetSwitchingCurrentA ();
+ break;
+ default:
+ NS_FATAL_ERROR ("Undefined radio state: " << state);
+ break;
+ }
+ estRemainingEnergy -= current * voltage * m_timeS;
+
+ // obtain remaining energy from source
+ double remainingEnergy = source->GetRemainingEnergy ();
+ NS_LOG_UNCOND ("Remaining energy is " << remainingEnergy);
+ NS_LOG_UNCOND ("Estimated remaining energy is " << estRemainingEnergy);
+ NS_LOG_UNCOND ("Difference is " << estRemainingEnergy - remainingEnergy);
+ // check remaining energy
+ NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (remainingEnergy, estRemainingEnergy, m_tolerance,
+ "Incorrect remaining energy!");
+
+ // obtain radio state
+ WifiPhy::State endState = devModel->GetCurrentState ();
+ NS_LOG_UNCOND ("Radio state is " << endState);
+ // check end state
+ NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (endState, state, "Incorrect end state!");
+ Simulator::Destroy ();
+
+ return false; // no error
+}
+
+// -------------------------------------------------------------------------- //
+
+/**
+ * Test case of energy depletion handling for BasicEnergySource and
+ * WifiRadioEnergyModel.
+ */
+class BasicEnergyDepletionTest : public TestCase
+{
+public:
+ BasicEnergyDepletionTest ();
+ virtual ~BasicEnergyDepletionTest ();
+
+private:
+ void DoRun (void);
+
+ /**
+ * Callback invoked when energy is drained from source.
+ */
+ void DepletionHandler (void);
+
+ /**
+ * \param simTimeS Simulation time, in seconds.
+ * \param updateIntervalS Device model update interval, in seconds.
+ * \return False if all is good.
+ *
+ * Runs simulation with specified simulation time and update interval.
+ */
+ bool DepletionTestCase (double simTimeS, double updateIntervalS);
+
+private:
+ int m_numOfNodes; // number of nodes in simulation
+ int m_callbackCount; // counter for # of callbacks invoked
+ double m_simTimeS; // maximum simulation time, in seconds
+ double m_timeStepS; // simulation time step size, in seconds
+ double m_updateIntervalS; // update interval of each device model
+
+};
+
+BasicEnergyDepletionTest::BasicEnergyDepletionTest ()
+ : TestCase ("Basic energy model energy depletion test case")
+{
+ m_numOfNodes = 10;
+ m_callbackCount = 0;
+ m_simTimeS = 4.5;
+ m_timeStepS = 0.5;
+ m_updateIntervalS = 1.5;
+}
+
+BasicEnergyDepletionTest::~BasicEnergyDepletionTest ()
+{
+}
+
+void
+BasicEnergyDepletionTest::DoRun (void)
+{
+ /*
+ * Run simulation with different simulation time and update interval.
+ */
+ for (double simTimeS = 0.0; simTimeS <= m_simTimeS; simTimeS += m_timeStepS)
+ {
+ for (double updateIntervalS = 0.5; updateIntervalS <= m_updateIntervalS;
+ updateIntervalS += m_timeStepS)
+ {
+ NS_TEST_ASSERT_MSG_EQ (DepletionTestCase (simTimeS, updateIntervalS), false, "Depletion test case problem.");
+ // reset callback count
+ m_callbackCount = 0;
+ }
+ }
+}
+
+void
+BasicEnergyDepletionTest::DepletionHandler (void)
+{
+ m_callbackCount++;
+}
+
+bool
+BasicEnergyDepletionTest::DepletionTestCase (double simTimeS,
+ double updateIntervalS)
+{
+ // create node
+ NodeContainer c;
+ c.Create (m_numOfNodes);
+
+ std::string phyMode ("DsssRate1Mbps");
+
+ // disable fragmentation for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
+ StringValue ("2200"));
+ // turn off RTS/CTS for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
+ StringValue ("2200"));
+ // Fix non-unicast data rate to be the same as that of unicast
+ Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
+ StringValue (phyMode));
+
+ // install YansWifiPhy
+ WifiHelper wifi;
+ wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
+
+ YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
+ /*
+ * This is one parameter that matters when using FixedRssLossModel, set it to
+ * zero; otherwise, gain will be added.
+ */
+ wifiPhy.Set ("RxGain", DoubleValue (0));
+ // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
+ wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
+
+ YansWifiChannelHelper wifiChannel ;
+ wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
+ wifiPhy.SetChannel (wifiChannel.Create ());
+
+ // Add a non-QoS upper MAC, and disable rate control
+ NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
+ wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
+ "DataMode", StringValue(phyMode),
+ "ControlMode", StringValue(phyMode));
+ // Set it to ad-hoc mode
+ wifiMac.SetType ("ns3::AdhocWifiMac");
+ NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
+
+ /*
+ * Create and install energy source and a single basic radio energy model on
+ * the node using helpers.
+ */
+ // source helper
+ BasicEnergySourceHelper basicSourceHelper;
+ // set energy to 0 so that we deplete energy at the beginning of simulation
+ basicSourceHelper.Set ("BasicEnergySourceInitialEnergyJ", DoubleValue (0.0));
+ // set update interval
+ Time updateInterval = Seconds (1.0);
+ basicSourceHelper.Set ("PeriodicEnergyUpdateInterval",
+ TimeValue (Seconds (updateIntervalS)));
+ // install source
+ EnergySourceContainer sources = basicSourceHelper.Install (c);
+
+ // device energy model helper
+ WifiRadioEnergyModelHelper radioEnergyHelper;
+ // set energy depletion callback
+ WifiRadioEnergyModel::WifiRadioEnergyDepletionCallback callback =
+ MakeCallback (&BasicEnergyDepletionTest::DepletionHandler, this);
+ radioEnergyHelper.SetDepletionCallback (callback);
+ // install on node
+ DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
+
+ // run simulation
+ Simulator::Stop (Seconds (simTimeS));
+ Simulator::Run ();
+ Simulator::Destroy ();
+
+ NS_LOG_UNCOND ("Simulation time = " << simTimeS << "s");
+ NS_LOG_UNCOND ("Update interval = " << updateIntervalS << "s");
+ NS_LOG_UNCOND ("Expected callback count is " << m_numOfNodes);
+ NS_LOG_UNCOND ("Actual callback count is " << m_callbackCount);
+
+ // check result, call back should only be invoked once
+ NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (m_numOfNodes, m_callbackCount, "Not all callbacks are invoked!");
+
+ return false;
+}
+
+// -------------------------------------------------------------------------- //
+
+/**
+ * Unit test suite for energy model. Although the test suite involves 2 modules
+ * it is still considered a unit test. Because a DeviceEnergyModel cannot live
+ * without an EnergySource.
+ */
+class BasicEnergyModelTestSuite : public TestSuite
+{
+public:
+ BasicEnergyModelTestSuite ();
+};
+
+BasicEnergyModelTestSuite::BasicEnergyModelTestSuite ()
+ : TestSuite ("basic-energy-model", UNIT)
+{
+ AddTestCase (new BasicEnergyUpdateTest);
+ AddTestCase (new BasicEnergyDepletionTest);
+}
+
+// create an instance of the test suite
+static BasicEnergyModelTestSuite g_energyModelTestSuite;
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/test/examples-to-run.py Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,18 @@
+#! /usr/bin/env python
+## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+# A list of C++ examples to run in order to ensure that they remain
+# buildable and runnable over time. Each tuple in the list contains
+#
+# (example_name, do_run, do_valgrind_run).
+#
+# See test.py for more information.
+cpp_examples = []
+
+# A list of Python examples to run in order to ensure that they remain
+# runnable over time. Each tuple in the list contains
+#
+# (example_name, do_run).
+#
+# See test.py for more information.
+python_examples = []
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/test/li-ion-energy-source-test.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,96 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Andrea Sacco
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Andrea Sacco <andrea.sacco85@gmail.com>
+ */
+
+#include "ns3/log.h"
+#include "ns3/test.h"
+#include "ns3/simple-device-energy-model.h"
+#include "ns3/li-ion-energy-source.h"
+#include "ns3/node.h"
+#include "ns3/simulator.h"
+
+namespace ns3 {
+
+NS_LOG_COMPONENT_DEFINE ("LiIonEnergySourceTestSuite");
+
+class LiIonEnergyTestCase : public TestCase
+{
+public:
+ LiIonEnergyTestCase ();
+ ~LiIonEnergyTestCase ();
+
+ void DoRun (void);
+
+ double m_simTime;
+ Ptr<Node> m_node;
+};
+
+LiIonEnergyTestCase::LiIonEnergyTestCase ()
+ : TestCase ("Li-Ion energy source test case")
+{
+}
+
+LiIonEnergyTestCase::~LiIonEnergyTestCase ()
+{
+ m_node = 0;
+}
+
+void
+LiIonEnergyTestCase::DoRun ()
+{
+ m_node = CreateObject<Node> ();
+
+ Ptr<SimpleDeviceEnergyModel> sem = CreateObject<SimpleDeviceEnergyModel> ();
+ Ptr<LiIonEnergySource> es = CreateObject<LiIonEnergySource> ();
+
+ es->SetNode (m_node);
+ sem->SetEnergySource (es);
+ es->AppendDeviceEnergyModel (sem);
+ m_node->AggregateObject (es);
+
+ Time now = Simulator::Now ();
+
+ // discharge at 2.33 A for 1700 seconds
+ sem->SetCurrentA (2.33);
+ now += Seconds (1701);
+
+ Simulator::Stop (now);
+ Simulator::Run ();
+ Simulator::Destroy ();
+
+ NS_TEST_ASSERT_MSG_EQ_TOL (es->GetSupplyVoltage (), 3.6, 1.0e-3,
+ "Incorrect consumed energy!");
+}
+
+class LiIonEnergySourceTestSuite : public TestSuite
+{
+public:
+ LiIonEnergySourceTestSuite ();
+};
+
+LiIonEnergySourceTestSuite::LiIonEnergySourceTestSuite ()
+ : TestSuite ("li-ion-energy-source", UNIT)
+{
+ AddTestCase (new LiIonEnergyTestCase);
+}
+
+// create an instance of the test suite
+static LiIonEnergySourceTestSuite g_liIonEnergySourceTestSuite;
+
+} // namespace ns3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/test/rv-battery-model-test.cc Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,890 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
+/*
+ * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: He Wu <mdzz@u.washington.edu>
+ */
+
+#include "ns3/rv-battery-model.h"
+#include "ns3/wifi-radio-energy-model.h"
+#include "ns3/rv-battery-model-helper.h"
+#include "ns3/wifi-radio-energy-model-helper.h"
+#include "ns3/energy-source-container.h"
+#include "ns3/device-energy-model-container.h"
+#include "ns3/log.h"
+#include "ns3/test.h"
+#include "ns3/node.h"
+#include "ns3/simulator.h"
+#include "ns3/double.h"
+#include "ns3/config.h"
+#include "ns3/string.h"
+#include "ns3/yans-wifi-helper.h"
+#include "ns3/nqos-wifi-mac-helper.h"
+#include <math.h>
+
+using namespace ns3;
+
+NS_LOG_COMPONENT_DEFINE ("RvBatteryModelTestSuite");
+
+/**
+ * Test case of update remaining energy for RvBatteryModel and
+ * WifiRadioEnergyModel.
+ */
+class BatteryLifetimeTest : public TestCase
+{
+public:
+ BatteryLifetimeTest ();
+ virtual ~BatteryLifetimeTest ();
+
+private:
+ /**
+ * Creates load profiles according to "Battery Lifetime Prediction for Energy-
+ * Aware Computing" paper.
+ */
+ void CreateLoadProfiles (void);
+
+ /**
+ * \returns False if no error occurs.
+ *
+ * Runs test.
+ */
+ void DoRun (void);
+
+ /**
+ * \param load Load value, in Amperes (A).
+ * \param expLifetime Expected lifetime.
+ * \return False if no error occurs.
+ *
+ * Runs simulation with constant load and checks the battery lifetime with
+ * known results.
+ */
+ bool ConstantLoadTest (double load, Time expLifetime);
+
+ /**
+ * \param loads Load profile.
+ * \param timeStamps Time stamps.
+ * \param expLifeTime Expected lifetime.
+ * \returns False if no error occurs.
+ *
+ * Runs simulation with variable load and checks the battery lifetime with
+ * known results.
+ */
+ bool VariableLoadTest (std::vector<double> loads,
+ std::vector<Time> timeStamps,
+ Time expLifetime);
+
+private:
+ typedef struct LoadProfile
+ {
+ std::vector<double> loads;
+ std::vector<Time> timeStamps;
+ Time itsyLifetime;
+ Time dualFoilLifeTime;
+ } LoadProfile;
+
+private:
+ std::vector<LoadProfile> m_loadProfiles;
+ double m_alpha;
+ double m_beta;
+};
+
+BatteryLifetimeTest::BatteryLifetimeTest ()
+ : TestCase ("RV battery model battery lifetime test case.")
+{
+ // Itsy battery
+ m_alpha = 35220;
+ m_beta = 0.637;
+}
+
+BatteryLifetimeTest::~BatteryLifetimeTest ()
+{
+}
+
+void
+BatteryLifetimeTest::CreateLoadProfiles (void)
+{
+ // create set of load profiles
+ LoadProfile profile;
+
+ std::vector<double> loads;
+ std::vector<Time> timeStamps;
+
+ // C1
+ loads.push_back (0.628);
+ loads.push_back (0);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (19.5 * 60));
+ timeStamps.push_back (Seconds (26.0 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
+ profile.dualFoilLifeTime = Seconds (36.2 * 60); // 36.2 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C2
+ loads.push_back (0.4947);
+ loads.push_back (0);
+ loads.push_back (0.4947);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (31.0 * 60));
+ timeStamps.push_back (Seconds (41.3 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (73.9 * 60); // 73.9 minutes
+ profile.dualFoilLifeTime = Seconds (55.8 * 60); // 55.8 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C3
+ loads.push_back (0.4256);
+ loads.push_back (0);
+ loads.push_back (0.4256);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (41.0 * 60));
+ timeStamps.push_back (Seconds (54.6 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (88.8 * 60); // 88.8 minutes
+ profile.dualFoilLifeTime = Seconds (71.8 * 60); // 71.8 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C4
+ loads.push_back (0.2923);
+ loads.push_back (0);
+ loads.push_back (0.2923);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (74.6 * 60));
+ timeStamps.push_back (Seconds (99.5 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (137.8 * 60); // 137.8 minutes
+ profile.dualFoilLifeTime = Seconds (124.9 * 60); // 124.9 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C5
+ loads.push_back (0.2227);
+ loads.push_back (0);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (105.7 * 60));
+ timeStamps.push_back (Seconds (140.9 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (185.8 * 60); // 185.8 minutes
+ profile.dualFoilLifeTime = Seconds (176.7 * 60); // 176.7 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C6
+ loads.push_back (0.628);
+ loads.push_back (0);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (19.5 * 60));
+ timeStamps.push_back (Seconds (29.9 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (58.9 * 60); // 58.9 minutes
+ profile.dualFoilLifeTime = Seconds (41.0 * 60); // 41.0 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C7
+ loads.push_back (0.628);
+ loads.push_back (0);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (19.5 * 60));
+ timeStamps.push_back (Seconds (22.1 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (51.1 * 60); // 51.1 minutes
+ profile.dualFoilLifeTime = Seconds (30.8 * 60); // 30.8 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C8
+ loads.push_back (0.628);
+ loads.push_back (0);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (23.4 * 60));
+ timeStamps.push_back (Seconds (29.9 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
+ profile.dualFoilLifeTime = Seconds (37.4 * 60); // 37.4 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C9
+ loads.push_back (0.628);
+ loads.push_back (0);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (15.6 * 60));
+ timeStamps.push_back (Seconds (22.1 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (55.0 * 60); // 55.0 minutes
+ profile.dualFoilLifeTime = Seconds (35.2 * 60); // 35.2 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C10
+ loads.push_back (0.300);
+ loads.push_back (0.628);
+ loads.push_back (0.4947);
+ loads.push_back (0.2523);
+ loads.push_back (0.2341);
+ loads.push_back (0.1379);
+ loads.push_back (0.1139);
+ loads.push_back (0.2656);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (0.5 * 60));
+ timeStamps.push_back (Seconds (5.5 * 60));
+ timeStamps.push_back (Seconds (10.5 * 60));
+ timeStamps.push_back (Seconds (35.5 * 60));
+ timeStamps.push_back (Seconds (60.5 * 60));
+ timeStamps.push_back (Seconds (85.5 * 60));
+ timeStamps.push_back (Seconds (110.5 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
+ profile.dualFoilLifeTime = Seconds (132.6 * 60); // 132.6 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C11
+ loads.push_back (0.300);
+ loads.push_back (0.1139);
+ loads.push_back (0.1379);
+ loads.push_back (0.2341);
+ loads.push_back (0.2523);
+ loads.push_back (0.4947);
+ loads.push_back (0.628);
+ loads.push_back (0.2656);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (0.5 * 60));
+ timeStamps.push_back (Seconds (25.5 * 60));
+ timeStamps.push_back (Seconds (50.5 * 60));
+ timeStamps.push_back (Seconds (75.5 * 60));
+ timeStamps.push_back (Seconds (100.5 * 60));
+ timeStamps.push_back (Seconds (105.5 * 60));
+ timeStamps.push_back (Seconds (110.5 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
+ profile.dualFoilLifeTime = Seconds (107.4 * 60); // 107.4 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C12
+ loads.push_back (0.300);
+ loads.push_back (0.1139);
+ loads.push_back (0.1379);
+ loads.push_back (0.2341);
+ loads.push_back (0.2523);
+ loads.push_back (0.4947);
+ loads.push_back (0.0);
+ loads.push_back (0.300);
+ loads.push_back (0.628);
+ loads.push_back (0.2656);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (0.5 * 60));
+ timeStamps.push_back (Seconds (25.5 * 60));
+ timeStamps.push_back (Seconds (50.5 * 60));
+ timeStamps.push_back (Seconds (75.5 * 60));
+ timeStamps.push_back (Seconds (100.5 * 60));
+ timeStamps.push_back (Seconds (105.5 * 60));
+ timeStamps.push_back (Seconds (130.5 * 60));
+ timeStamps.push_back (Seconds (131.0 * 60));
+ timeStamps.push_back (Seconds (136.0 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (169.3 * 60); // 169.3 minutes
+ profile.dualFoilLifeTime = Seconds (155.4 * 60); // 155.4 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C13
+ loads.push_back (0.300);
+ timeStamps.push_back (Seconds (0));
+
+ for (int i = 0; i < 5; i++)
+ {
+ loads.push_back (0.628);
+ loads.push_back (0.4947);
+ loads.push_back (0.2523);
+ loads.push_back (0.2341);
+ loads.push_back (0.1379);
+ loads.push_back (0.1139);
+
+ timeStamps.push_back (Seconds ((0.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((1.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((2.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((7.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((12.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((17.5 + i * 22.5) * 60));
+ }
+
+ loads.push_back (0.2656);
+ timeStamps.push_back (Seconds (110.5 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (144.3 * 60); // 144.3 minutes
+ profile.dualFoilLifeTime = Seconds (131.7 * 60); // 131.7 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C14, time stamp calculation in paper is off, using our own estimated value
+ loads.push_back (0.300);
+ timeStamps.push_back (Seconds (0));
+
+ for (int i = 0; i < 5; i++)
+ {
+ loads.push_back (0.1139);
+ loads.push_back (0.1379);
+ loads.push_back (0.2341);
+ loads.push_back (0.2523);
+ loads.push_back (0.4947);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds ((0.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((5.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((10.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((15.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((20.5 + i * 22.5) * 60));
+ timeStamps.push_back (Seconds ((21.5 + i * 22.5) * 60));
+ }
+
+ loads.push_back (0.2656);
+ timeStamps.push_back (Seconds (112.5 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (141.5 * 60); // 141.5 minutes
+ profile.dualFoilLifeTime = Seconds (126.3 * 60); // 126.3 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C15
+ loads.push_back (0.2227);
+ loads.push_back (0.2045);
+ loads.push_back (0.1083);
+ loads.push_back (0.0843);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (50.0 * 60));
+ timeStamps.push_back (Seconds (100.0 * 60));
+ timeStamps.push_back (Seconds (150.0 * 60));
+ timeStamps.push_back (Seconds (200.0 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
+ profile.dualFoilLifeTime = Seconds (209.2 * 60); // 209.2 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C16
+ loads.push_back (0.0843);
+ loads.push_back (0.1083);
+ loads.push_back (0.2045);
+ loads.push_back (0.2227);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (50.0 * 60));
+ timeStamps.push_back (Seconds (100.0 * 60));
+ timeStamps.push_back (Seconds (150.0 * 60));
+ timeStamps.push_back (Seconds (200.0 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
+ profile.dualFoilLifeTime = Seconds (200.7 * 60); // 200.7 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C17
+ loads.push_back (0.0843);
+ loads.push_back (0.1083);
+ loads.push_back (0.2045);
+ loads.push_back (0.0);
+ loads.push_back (0.2227);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds (0));
+ timeStamps.push_back (Seconds (50.0 * 60));
+ timeStamps.push_back (Seconds (100.0 * 60));
+ timeStamps.push_back (Seconds (150.0 * 60));
+ timeStamps.push_back (Seconds (200.0 * 60));
+ timeStamps.push_back (Seconds (250.0 * 60));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (261.4 * 60); // 261.4 minutes
+ profile.dualFoilLifeTime = Seconds (251.2 * 60); // 251.2 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C18
+ for (int i = 0; i < 10; i++)
+ {
+ loads.push_back (0.0843);
+ loads.push_back (0.1083);
+ loads.push_back (0.2045);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds ((0.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((5.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((10.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((15.0 + i * 20.0) * 60));
+ }
+
+ loads.push_back (0.2227);
+ timeStamps.push_back (Seconds (200.0));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (211.4 * 60); // 211.4 minutes
+ profile.dualFoilLifeTime = Seconds (204.6 * 60); // 204.6 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C19
+ for (int i = 0; i < 10; i++)
+ {
+ loads.push_back (0.0755);
+ loads.push_back (0.0949);
+ loads.push_back (0.2045);
+ loads.push_back (0.2227);
+
+ timeStamps.push_back (Seconds ((0.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((5.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((10.0 + i * 20.0) * 60));
+ timeStamps.push_back (Seconds ((15.0 + i * 20.0) * 60));
+ }
+
+ loads.push_back (0.2227);
+ timeStamps.push_back (Seconds (200.0));
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (216.4 * 60); // 216.4 minutes
+ profile.dualFoilLifeTime = Seconds (208.7 * 60); // 208.7 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C20
+ for (int i = 0; i < 50; i++)
+ {
+ loads.push_back (0.4947);
+ loads.push_back (0.628);
+
+ timeStamps.push_back (Seconds ((0.0 + i * 2.0) * 60));
+ timeStamps.push_back (Seconds ((1.0 + i * 2.0) * 60));
+ }
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (55.3 * 60); // 55.3 minutes
+ profile.dualFoilLifeTime = Seconds (33.2 * 60); // 33.2 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C21
+ for (int i = 0; i < 50; i++)
+ {
+ loads.push_back (0.4947);
+ loads.push_back (0.628);
+ loads.push_back (0.0576);
+
+ timeStamps.push_back (Seconds ((0.0 + i * 3.0) * 60));
+ timeStamps.push_back (Seconds ((1.0 + i * 3.0) * 60));
+ timeStamps.push_back (Seconds ((2.0 + i * 3.0) * 60));
+ }
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (79.6 * 60); // 79.6 minutes
+ profile.dualFoilLifeTime = Seconds (55.9 * 60); // 55.9 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+
+ // C22
+ for (int i = 0; i < 150; i++)
+ {
+ loads.push_back (0.005 + 0.005 * i);
+ timeStamps.push_back (Seconds ((0.0 + i * 1.0) * 60));
+ }
+
+ profile.loads = loads;
+ profile.timeStamps = timeStamps;
+ profile.itsyLifetime = Seconds (112.2 * 60); // 112.2 minutes
+ profile.dualFoilLifeTime = Seconds (94.5 * 60); // 94.5 minutes
+
+ m_loadProfiles.push_back (profile);
+
+ loads.clear ();
+ timeStamps.clear ();
+}
+
+void
+BatteryLifetimeTest::DoRun (void)
+{
+ NS_LOG_UNCOND ("Constant load run.");
+
+ // 640mA
+ NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.640, Seconds (2844.0)), false, "Problems with constant load test (640mA).");
+ // 320mA
+ NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.320, Seconds (6146.0)), false, "Problems with constant load test (320mA).");
+ // 128mA
+ NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.128, Seconds (16052.0)), false, "Problems with constant load test (128mA).");
+ // 64mA
+ NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.064, Seconds (32561.0)), false, "Problems with constant load test (64mA).");
+ // 32mA
+ NS_TEST_ASSERT_MSG_EQ (ConstantLoadTest (0.032, Seconds (65580.0)), false, "Problems with constant load test (32).");
+
+ // create load profiles for variable load test
+ CreateLoadProfiles ();
+
+ // variable load with Itsy battery
+ NS_LOG_UNCOND ("\n\nItsy");
+ m_alpha = 35220;
+ m_beta = 0.637;
+ for (uint32_t i = 0; i < m_loadProfiles.size (); i++)
+ {
+ NS_LOG_UNCOND ("========");
+ NS_LOG_UNCOND ("Variable load profile C" << i + 1);
+ if (VariableLoadTest (m_loadProfiles[i].loads,
+ m_loadProfiles[i].timeStamps,
+ m_loadProfiles[i].itsyLifetime))
+ {
+ return;
+ }
+ }
+
+ // variable load with DUALFOIL battery
+ NS_LOG_UNCOND ("\n\nDUALFOIL");
+ m_alpha = 40027;
+ m_beta = 0.276;
+ for (uint32_t i = 0; i < m_loadProfiles.size (); i++)
+ {
+ NS_LOG_UNCOND ("========");
+ NS_LOG_UNCOND ("Variable load profile C" << i + 1);
+ if (VariableLoadTest (m_loadProfiles[i].loads,
+ m_loadProfiles[i].timeStamps,
+ m_loadProfiles[i].dualFoilLifeTime))
+ {
+ return;
+ }
+ }
+}
+
+bool
+BatteryLifetimeTest::ConstantLoadTest (double load, Time expLifetime)
+{
+ // create single node
+ NodeContainer c;
+ c.Create (1);
+
+ std::string phyMode ("DsssRate1Mbps");
+
+ // disable fragmentation for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
+ StringValue ("2200"));
+ // turn off RTS/CTS for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
+ StringValue ("2200"));
+ // Fix non-unicast data rate to be the same as that of unicast
+ Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
+ StringValue (phyMode));
+
+ // install YansWifiPhy
+ WifiHelper wifi;
+ wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
+
+ YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
+ /*
+ * This is one parameter that matters when using FixedRssLossModel, set it to
+ * zero; otherwise, gain will be added.
+ */
+ wifiPhy.Set ("RxGain", DoubleValue (0));
+ // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
+ wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
+
+ YansWifiChannelHelper wifiChannel ;
+ wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
+ wifiPhy.SetChannel (wifiChannel.Create ());
+
+ // Add a non-QoS upper MAC, and disable rate control
+ NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
+ wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
+ "DataMode", StringValue(phyMode),
+ "ControlMode", StringValue(phyMode));
+ // Set it to ad-hoc mode
+ wifiMac.SetType ("ns3::AdhocWifiMac");
+ NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
+
+ // Create and install battery model and device models
+ // RV battery model
+ RvBatteryModelHelper rvModelHelper;
+ // Set alpha & beta values
+ rvModelHelper.Set ("RvBatteryModelAlphaValue", DoubleValue (m_alpha));
+ rvModelHelper.Set ("RvBatteryModelBetaValue", DoubleValue (m_beta));
+ // install source
+ EnergySourceContainer sources = rvModelHelper.Install (c);
+ // device energy model
+ WifiRadioEnergyModelHelper radioEnergyHelper;
+ // set VariableLoadTestIDLE current, which will be the constant load
+ radioEnergyHelper.Set ("IdleCurrentA", DoubleValue (load));
+ // install on node
+ DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
+
+ // run simulation
+ Simulator::Stop (Seconds (70000.0));
+ Simulator::Run ();
+
+ Time actualLifetime;
+ Ptr<RvBatteryModel> srcPtr = DynamicCast<RvBatteryModel> (sources.Get (0));
+ actualLifetime = srcPtr->GetLifetime ();
+
+ NS_LOG_UNCOND ("Expected lifetime = " << expLifetime.GetSeconds () << "s");
+ NS_LOG_UNCOND ("Actual lifetime = " << actualLifetime.GetSeconds () << "s");
+
+ NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (actualLifetime, expLifetime, "Incorrect lifetime!");
+ /*
+ NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (actualLifetime.GetSeconds () / 60,
+ expLifetime.GetSeconds () / 60, 0.1,
+ "Incorrect lifetime!");
+ */
+
+ Simulator::Destroy ();
+
+ return false; // error free
+}
+
+bool
+BatteryLifetimeTest::VariableLoadTest (std::vector<double> loads,
+ std::vector<Time> timeStamps,
+ Time expLifetime)
+{
+ NS_ASSERT (loads.size () == timeStamps.size ());
+
+ // create single node
+ NodeContainer c;
+ c.Create (1);
+
+ std::string phyMode ("DsssRate1Mbps");
+
+ // disable fragmentation for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold",
+ StringValue ("2200"));
+ // turn off RTS/CTS for frames below 2200 bytes
+ Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold",
+ StringValue ("2200"));
+ // Fix non-unicast data rate to be the same as that of unicast
+ Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",
+ StringValue (phyMode));
+
+ // install YansWifiPhy
+ WifiHelper wifi;
+ wifi.SetStandard (WIFI_PHY_STANDARD_80211b);
+
+ YansWifiPhyHelper wifiPhy = YansWifiPhyHelper::Default ();
+ /*
+ * This is one parameter that matters when using FixedRssLossModel, set it to
+ * zero; otherwise, gain will be added.
+ */
+ wifiPhy.Set ("RxGain", DoubleValue (0));
+ // ns-3 supports RadioTap and Prism tracing extensions for 802.11b
+ wifiPhy.SetPcapDataLinkType (YansWifiPhyHelper::DLT_IEEE802_11_RADIO);
+
+ YansWifiChannelHelper wifiChannel ;
+ wifiChannel.SetPropagationDelay ("ns3::ConstantSpeedPropagationDelayModel");
+ wifiPhy.SetChannel (wifiChannel.Create ());
+
+ // Add a non-QoS upper MAC, and disable rate control
+ NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();
+ wifi.SetRemoteStationManager ("ns3::ConstantRateWifiManager",
+ "DataMode", StringValue(phyMode),
+ "ControlMode", StringValue(phyMode));
+ // Set it to ad-hoc mode
+ wifiMac.SetType ("ns3::AdhocWifiMac");
+ NetDeviceContainer devices = wifi.Install (wifiPhy, wifiMac, c);
+
+ // Create and install battery model and device models
+ // RV battery model
+ RvBatteryModelHelper rvModelHelper;
+ // Set alpha & beta values
+ rvModelHelper.Set ("RvBatteryModelAlphaValue", DoubleValue (m_alpha));
+ rvModelHelper.Set ("RvBatteryModelBetaValue", DoubleValue (m_beta));
+ // install source
+ EnergySourceContainer sources = rvModelHelper.Install (c);
+ // device energy model
+ WifiRadioEnergyModelHelper radioEnergyHelper;
+ // set VariableLoadTestIDLE current, which will be the constant load
+ radioEnergyHelper.Set ("IdleCurrentA", DoubleValue (loads[0]));
+ // install on node
+ DeviceEnergyModelContainer deviceModels = radioEnergyHelper.Install (devices, sources);
+
+
+ Ptr<WifiRadioEnergyModel> wifiDevicePtr = DynamicCast<WifiRadioEnergyModel> (deviceModels.Get (0));
+ // schedule load change events
+ for (uint32_t i = 1; i < loads.size (); i++)
+ {
+ Simulator::Schedule (timeStamps[i], &WifiRadioEnergyModel::SetIdleCurrentA,
+ wifiDevicePtr, loads[i]);
+ }
+
+ // run simulation
+ Simulator::Stop (Seconds (70000.0));
+ Simulator::Run ();
+
+ Time actualLifetime;
+ Ptr<RvBatteryModel> srcPtr = DynamicCast<RvBatteryModel> (sources.Get (0));
+ actualLifetime = srcPtr->GetLifetime ();
+
+ NS_LOG_UNCOND ("Expected lifetime = " << expLifetime.GetSeconds () << "s");
+ NS_LOG_UNCOND ("Actual lifetime = " << actualLifetime.GetSeconds () << "s");
+ NS_LOG_UNCOND ("Difference = " << expLifetime.GetSeconds () - actualLifetime.GetSeconds () << "s");
+
+ //NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL (actualLifetime, expLifetime, "Incorrect lifetime!");
+ NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL (actualLifetime.GetSeconds (), expLifetime.GetSeconds (),
+ 120, // error tolerance = 120s
+ "Incorrect lifetime!");
+
+ Simulator::Destroy ();
+
+ return false; // error free
+}
+
+// -------------------------------------------------------------------------- //
+
+/**
+ * Unit test suite for energy model. Although the test suite involves 2 modules
+ * it is still considered a unit test. Because a DeviceEnergyModel cannot live
+ * without an EnergySource.
+ */
+class RvBatteryModelTestSuite : public TestSuite
+{
+public:
+ RvBatteryModelTestSuite ();
+};
+
+RvBatteryModelTestSuite::RvBatteryModelTestSuite ()
+ : TestSuite ("rv-battery-model", SYSTEM)
+{
+ AddTestCase (new BatteryLifetimeTest);
+}
+
+// create an instance of the test suite
+static RvBatteryModelTestSuite g_rvBatteryModelTestSuite;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/energy/wscript Tue Mar 22 16:40:32 2011 -0700
@@ -0,0 +1,44 @@
+## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+
+def build(bld):
+ obj = bld.create_ns3_module('energy', ['internet', 'wifi'])
+ obj.source = [
+ 'model/wifi-radio-energy-model.cc',
+ 'model/energy-source.cc',
+ 'model/basic-energy-source.cc',
+ 'model/li-ion-energy-source.cc',
+ 'model/rv-battery-model.cc',
+ 'model/device-energy-model.cc',
+ 'model/device-energy-model-container.cc',
+ 'model/simple-device-energy-model.cc',
+ 'helper/energy-source-container.cc',
+ 'helper/energy-model-helper.cc',
+ 'helper/basic-energy-source-helper.cc',
+ 'helper/wifi-radio-energy-model-helper.cc',
+ 'helper/rv-battery-model-helper.cc',
+ 'test/basic-energy-model-test.cc',
+ 'test/rv-battery-model-test.cc',
+ 'test/li-ion-energy-source-test.cc',
+ ]
+ headers = bld.new_task_gen('ns3header')
+ headers.module = 'energy'
+ headers.source = [
+ 'model/wifi-radio-energy-model.h',
+ 'model/energy-source.h',
+ 'model/basic-energy-source.h',
+ 'model/li-ion-energy-source.h',
+ 'model/rv-battery-model.h',
+ 'model/device-energy-model.h',
+ 'model/device-energy-model-container.h',
+ 'model/simple-device-energy-model.h',
+ 'helper/energy-source-container.h',
+ 'helper/energy-model-helper.h',
+ 'helper/basic-energy-source-helper.h',
+ 'helper/wifi-radio-energy-model-helper.h',
+ 'helper/rv-battery-model-helper.h',
+ ]
+
+ if (bld.env['ENABLE_EXAMPLES']):
+ bld.add_subdirs('examples')
+
+ bld.ns3_python_bindings()
--- a/src/wscript Tue Mar 22 16:21:35 2011 -0700
+++ b/src/wscript Tue Mar 22 16:40:32 2011 -0700
@@ -54,7 +54,7 @@
'lte',
'mpi',
'topology-read',
- 'contrib/energy',
+ 'energy',
'tools/visualizer',
)