# -*- coding: utf-8 -*-
from nepi.util import tags
-from nepi.util.constants import AF_INET, STATUS_NOT_STARTED, STATUS_RUNNING, \
- STATUS_FINISHED, STATUS_UNDETERMINED
+from nepi.util.constants import AF_INET, ApplicationStatus as AS, \
+ FactoryCategories as FC
from nepi.util.tunchannel_impl import \
preconfigure_tunchannel, postconfigure_tunchannel, \
wait_tunchannel, create_tunchannel
raise RuntimeError("Can't get status on guid %d" % guid )
now = testbed_instance.ns3.Simulator.Now()
if now.IsZero():
- return STATUS_NOT_STARTED
+ return AS.STATUS_NOT_STARTED
app = testbed_instance.elements[guid]
parameters = testbed_instance._get_parameters(guid)
start_value = parameters.get("StartTime")
if start_value != None:
start_time = testbed_instance.ns3.Time(start_value)
if now.Compare(start_time) < 0:
- return STATUS_NOT_STARTED
+ return AS.STATUS_NOT_STARTED
stop_value = parameters.get("StopTime")
if stop_value != None:
stop_time = testbed_instance.ns3.Time(stop_value)
if now.Compare(stop_time) < 0:
- return STATUS_RUNNING
+ return AS.STATUS_RUNNING
else:
- return STATUS_FINISHED
- return STATUS_UNDETERMINED
+ return AS.STATUS_FINISHED
+ return AS.STATUS_UNDETERMINED
### Configure functions ###
factories_info = dict({
"ns3::Ping6": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::UdpL4Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ProtocolNumber"],
}),
"ns3::RandomDiscPositionAllocator": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::Node": dict({
- "category": "Node",
+ "category": FC.CATEGORY_NODES,
"create_function": create_node,
"configure_function": configure_node,
"help": "",
"box_attributes": [],
}),
"ns3::GridPositionAllocator": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::TapBridge": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"FlowInterruptionsMinTime"],
}),
"ns3::ConstantVelocityMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::V4Ping": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MaxPacketFailure"],
}),
"ns3::PointToPointNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_device,
"help": "",
"traces": ["p2ppcap", "p2pascii"]
}),
"ns3::NakagamiPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"m2"],
}),
"ns3::AarfWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["OptionNumber"],
}),
"ns3::TwoRayGroundPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"HeightAboveZ"],
}),
"ns3::OnOffApplication": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::AdhocWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Ssid"],
}),
"ns3::ConstantAccelerationMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::GaussMarkovMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::dot11s::HwmpProtocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"RfFlag"],
}),
"ns3::NscTcpL4Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MaxPropDelay"],
}),
"ns3::WaypointMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_waypoint_mobility,
"configure_function": configure_element,
"help": "Waypoint-based mobility model.",
"tags": [tags.MOBILE],
}),
"ns3::FileDescriptorNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_device,
"help": "Network interface associated to a file descriptor",
"traces": ["fdpcap"]
}),
"ns3::Nepi::TunChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_TUNNELS,
"create_function": create_tunchannel,
"preconfigure_function": preconfigure_tunchannel,
"configure_function": postconfigure_tunchannel,
"box_attributes": ["tun_proto", "tun_addr", "tun_port", "tun_key"]
}),
"ns3::CsmaNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_device,
"help": "CSMA (carrier sense, multiple access) interface",
"box_attributes": ["SpreadCoef"],
}),
"ns3::NqstaWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_wifi_standard_model,
"configure_function": configure_element,
"help": "",
"Ssid"],
}),
"ns3::Icmpv6L4Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"ProtocolNumber"],
}),
"ns3::SimpleNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::FriisPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["OptionNumber"],
}),
"ns3::UniformDiscPositionAllocator": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::RandomBoxPositionAllocator": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::LoopbackNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::ConstantSpeedPropagationDelayModel": dict({
- "category": "Delay",
+ "category": FC.CATEGORY_DELAY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::BridgeChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["RcvBufSize"],
}),
"ns3::flame::FlameProtocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MaxCost"],
}),
"ns3::Cost231PropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::CaraWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MinRTO"],
}),
"ns3::Icmpv4L4Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"DutyCycle"],
}),
"ns3::YansWifiChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::SimpleChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Root"],
}),
"ns3::FriisSpectrumPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::RandomRectanglePositionAllocator": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::NqapWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_wifi_standard_model,
"configure_function": configure_element,
"help": "",
"Ssid"],
}),
"ns3::HierarchicalMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::ThreeLogDistancePropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::RandomPropagationDelayModel": dict({
- "category": "Delay",
+ "category": FC.CATEGORY_DELAY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Variable"],
}),
"ns3::ArpL3Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::SteadyStateRandomWaypointMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::BaseStationNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_base_station,
"configure_function": configure_station,
"help": "Base station for wireless mobile network",
"traces": ["wimaxpcap", "wimaxascii"],
}),
"ns3::UdpServer": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::AarfcdWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::LogDistancePropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"ReferenceLoss"],
}),
"ns3::EmuNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"RxQueueSize"],
}),
"ns3::Ipv6ExtensionLooseRouting": dict({
- "category": "Routing",
+ "category": FC.CATEGORY_ROUTING,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::RandomWaypointMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::RangePropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["MaxRange"],
}),
"ns3::AlohaNoackNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Mtu"],
}),
"ns3::MatrixPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["DefaultLoss"],
}),
"ns3::WifiNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_device,
"help": "",
"box_attributes": ["Mtu"],
}),
"ns3::CsmaChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Delay"],
}),
"ns3::BridgeNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"ExpirationTime"],
}),
"ns3::Ipv6ExtensionRouting": dict({
- "category": "Routing",
+ "category": FC.CATEGORY_ROUTING,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::QstaWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_wifi_standard_model,
"configure_function": configure_element,
"help": "Station Wifi MAC Model",
"Standard"],
}),
"ns3::UdpEchoClient": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::UdpClient": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::PointToPointChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Delay"],
}),
"ns3::Ipv6StaticRouting": dict({
- "category": "Routing",
+ "category": FC.CATEGORY_ROUTING,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::DropTailQueue": dict({
- "category": "Queue",
+ "category": FC.CATEGORY_QUEUES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MaxBytes"],
}),
"ns3::ConstantPositionMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"tags": [tags.MOBILE],
}),
"ns3::FixedRssLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Rss"],
}),
"ns3::EnergySourceContainer": dict({
- "category": "Energy",
+ "category": FC.CATEGORY_ENERGY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::RandomWalk2dMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::dot11s::PeerManagementProtocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"EnableBeaconCollisionAvoidance"],
}),
"ns3::MeshPointDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Mtu"],
}),
"ns3::BasicEnergySource": dict({
- "category": "Energy",
+ "category": FC.CATEGORY_ENERGY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["OptionNumber"],
}),
"ns3::QapWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_wifi_standard_model,
"configure_function": configure_element,
"help": "Access point Wifi MAC Model",
"Standard"],
}),
"ns3::YansErrorRateModel": dict({
- "category": "Error",
+ "category": FC.CATEGORY_ERROR_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::WifiMacQueue": dict({
- "category": "Queue",
+ "category": FC.CATEGORY_QUEUES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"MaxDelay"],
}),
"ns3::NonCommunicatingNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::RateErrorModel": dict({
- "category": "Error",
+ "category": FC.CATEGORY_ERROR_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"IsEnabled"],
}),
"ns3::MeshWifiInterfaceMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["ExtensionNumber"],
}),
"ns3::SingleModelSpectrumChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::YansWifiPhy": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_wifi_standard_model,
"configure_function": configure_element,
"help": "",
"traces": ["yanswifipcap"]
}),
"ns3::WifiRadioEnergyModel": dict({
- "category": "Energy",
+ "category": FC.CATEGORY_ENERGY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Threshold"],
}),
"ns3::IdealWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::MultiModelSpectrumChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::HalfDuplexIdealPhy": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Rate"],
}),
"ns3::UanPhyCalcSinrDefault": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::ReceiveListErrorModel": dict({
- "category": "Error",
+ "category": FC.CATEGORY_ERROR_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NoisePowerSpectralDensity"],
}),
"ns3::ConstantRateWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::RraaWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::RandomPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Variable"],
}),
"ns3::UanChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::MinstrelWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::UanPhyDual": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"SupportedModesPhy2"],
}),
"ns3::ListErrorModel": dict({
- "category": "Error",
+ "category": FC.CATEGORY_ERROR_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["IsEnabled"],
}),
"ns3::VirtualNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Mtu"],
}),
"ns3::UanPhyGen": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"SupportedModes"],
}),
"ns3::Ipv6L3Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"IpForward"],
}),
"ns3::PointToPointRemoteChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": ["Delay"],
}),
"ns3::UanPhyPerUmodem": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::OnoeWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::QadhocWifiMac": dict({
- "category": "Mac",
+ "category": FC.CATEGORY_MAC_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Ssid"],
}),
"ns3::JakesPropagationLossModel": dict({
- "category": "Loss",
+ "category": FC.CATEGORY_LOSS_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Distribution"],
}),
"ns3::PacketSink": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::RandomDirection2dMobilityModel": dict({
- "category": "Mobility",
+ "category": FC.CATEGORY_MOBILITY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Aifsn"],
}),
"ns3::UanPhyCalcSinrFhFsk": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"FrameSize"],
}),
"ns3::NistErrorRateModel": dict({
- "category": "Error",
+ "category": FC.CATEGORY_ERROR_MODELS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"box_attributes": [],
}),
"ns3::Ipv4L3Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_ipv4protocol,
"configure_function": configure_element,
"help": "",
"WeakEsModel"],
}),
"ns3::aodv::RoutingProtocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"EnableBroadcast"],
}),
"ns3::TcpL4Protocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"ProtocolNumber"],
}),
"ns3::olsr::RoutingProtocol": dict({
- "category": "Protocol",
+ "category": FC.CATEGORY_PROTOCOLS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"Willingness"],
}),
"ns3::UdpEchoServer": dict({
- "category": "Application",
+ "category": FC.CATEGORY_APPLICATIONS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"StopTime"],
}),
"ns3::AmrrWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::ArfWifiManager": dict({
- "category": "Manager",
+ "category": FC.CATEGORY_MANAGERS,
"create_function": create_element,
"configure_function": configure_element,
"help": "",
"NonUnicastMode"],
}),
"ns3::SubscriberStationNetDevice": dict({
- "category": "Device",
+ "category": FC.CATEGORY_DEVICES,
"create_function": create_subscriber_station,
"configure_function": configure_station,
"help": "Subscriber station for mobile wireless network",
"box_attributes": ["Lifetime"],
}),
"ns3::BSSchedulerRtps": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_element,
"configure_function": configure_element,
"help": "Simple downlink scheduler for rtPS flows",
"box_attributes": [],
}),
"ns3::BSSchedulerSimple": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_element,
"configure_function": configure_element,
"help": "simple downlink scheduler for service flows",
"box_attributes": [],
}),
"ns3::SimpleOfdmWimaxChannel": dict({
- "category": "Channel",
+ "category": FC.CATEGORY_CHANNELS,
"create_function": create_wimax_channel,
"configure_function": configure_element,
"help": "Wimax channel",
"box_attributes": [],
}),
"ns3::SimpleOfdmWimaxPhy": dict({
- "category": "Phy",
+ "category": FC.CATEGORY_PHY_MODELS,
"create_function": create_wimax_phy,
"configure_function": configure_element,
"help": "Wimax Phy",
"box_attributes": [],
}),
"ns3::UplinkSchedulerSimple": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_element_no_constructor,
"configure_function": configure_element,
"help": "Simple uplink scheduler for service flows",
"box_attributes": [],
}),
"ns3::UplinkSchedulerRtps": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_element_no_constructor,
"configure_function": configure_element,
"help": "Simple uplink scheduler for rtPS flows",
"box_attributes": [],
}),
"ns3::IpcsClassifierRecord": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_ipcs_classifier_record,
"configure_function": configure_element,
"help": "Classifier record for service flow",
"ClassifierPriority"],
}),
"ns3::ServiceFlow": dict({
- "category": "Service Flow",
+ "category": FC.CATEGORY_SERVICE_FLOWS,
"create_function": create_service_flow,
"configure_function": configure_element,
"help": "Service flow for QoS",