A Discrete-Event Network Simulator
API
visualizer.core Namespace Reference

Classes

class  Channel
 Channel. More...
 
class  Node
 Node class. More...
 
class  ShowTransmissionsMode
 ShowTransmissionsMode. More...
 
class  SimulationThread
 SimulationThread. More...
 
class  Visualizer
 Visualizer. More...
 
class  WiredLink
 WiredLink. More...
 

Functions

def add_initialization_hook (hook, args)
 
def set_bounds (x1, y1, x2, y2)
 
def start ()
 

Variables

 _import_error = None
 
int BITRATE_FONT_SIZE = 10
 
float DEFAULT_NODE_SIZE = 3.0
 
int DEFAULT_TRANSMISSIONS_MEMORY = 5
 
list initialization_hooks = []
 
 ipython_view = None
 
string LAYOUT_ALGORITHM = 'neato'
 
int PI_OVER_2 = math.pi/2
 
int PI_TIMES_2 = math.pi*2
 
int PRIORITY_UPDATE_MODEL = -100
 
int PRIORITY_UPDATE_VIEW = 200
 
int REPRESENT_CHANNELS_AS_NODES = 1
 
float SAMPLE_PERIOD = 0.1
 
string SHELL_FONT = "Lucida Console 9"
 
 svgitem = None
 

Function Documentation

def visualizer.core.add_initialization_hook (   hook,
  args 
)
Adds a callback to be called after
the visualizer is initialized, like this::
   initialization_hook(visualizer, *args)

Definition at line 1786 of file core.py.

Referenced by visualizer.core.set_bounds().

+ Here is the caller graph for this function:

def visualizer.core.set_bounds (   x1,
  y1,
  x2,
  y2 
)

Definition at line 1796 of file core.py.

References visualizer.core.add_initialization_hook(), and visualizer.base.transform_point_simulation_to_canvas().

+ Here is the call graph for this function:

def visualizer.core.start ( )

Definition at line 1806 of file core.py.

References visualizer.base.load_plugins().

Referenced by ns3::TcpRxBuffer.Add(), ns3::Buffer.AddAtStart(), PacketTagListTest.AddRemoveTime(), ns3::UanPhyCalcSinrFhFsk.CalcSinrDb(), ns3::EpcX2Header.Deserialize(), ns3::TcpOptionEnd.Deserialize(), ns3::AmpduSubframeHeader.Deserialize(), ns3::AmsduSubframeHeader.Deserialize(), ns3::TcpOptionTS.Deserialize(), ns3::GtpuHeader.Deserialize(), ns3::flame::FlameHeader.Deserialize(), ns3::CtrlBAckRequestHeader.Deserialize(), ns3::TcpOptionSackPermitted.Deserialize(), ns3::SeqTsHeader.Deserialize(), ns3::TcpOptionWinScale.Deserialize(), ns3::LlcSnapHeader.Deserialize(), ns3::TcpOptionSack.Deserialize(), ns3::dsdvq::DsdvqHeader.Deserialize(), ns3::TcpOptionNOP.Deserialize(), ns3::QKDCommandHeader.Deserialize(), ns3::StatusCode.Deserialize(), ns3::dot11s::PeerLinkOpenStart.Deserialize(), ns3::aodvq::TypeHeader.Deserialize(), ns3::aodv::TypeHeader.Deserialize(), ns3::dsdv::DsdvHeader.Deserialize(), ns3::LtePdcpHeader.Deserialize(), ns3::ManagementMessageType.Deserialize(), ns3::UanHeaderRcData.Deserialize(), ns3::TcpOptionMSS.Deserialize(), ns3::ArpHeader.Deserialize(), ns3::Ipv6ExtensionHeader.Deserialize(), ns3::SllHeader.Deserialize(), ns3::EthernetHeader.Deserialize(), ns3::dot11s::MeshHeader.Deserialize(), ns3::WifiMacHeader.Deserialize(), ns3::dsr::DsrOptionHeader.Deserialize(), ns3::Ipv6OptionHeader.Deserialize(), ns3::UdpHeader.Deserialize(), ns3::EpcX2HandoverRequestHeader.Deserialize(), ns3::LteRlcHeader.Deserialize(), ns3::CapabilityInformation.Deserialize(), ns3::QKDDelimiterHeader.Deserialize(), ns3::olsr::PacketHeader.Deserialize(), ns3::TcpOptionUnknown.Deserialize(), ns3::UanHeaderCommon.Deserialize(), ns3::dot11s::PeerLinkCloseStart.Deserialize(), ns3::MgtAssocRequestHeader.Deserialize(), ns3::aodv::RreqHeader.Deserialize(), ns3::aodvq::RreqHeader.Deserialize(), ns3::dsr::DsrFsHeader.Deserialize(), ns3::PbbTlvBlock.Deserialize(), ns3::RipNgHeader.Deserialize(), ns3::dsr::DsrOptionPad1Header.Deserialize(), ns3::RipHeader.Deserialize(), ns3::CtrlBAckResponseHeader.Deserialize(), ns3::Icmpv6Header.Deserialize(), ns3::SixLowPanHc1.Deserialize(), ns3::UanHeaderRcRts.Deserialize(), ns3::Ipv6OptionPad1Header.Deserialize(), ns3::OfdmDownlinkFramePrefix.Deserialize(), ns3::GenericMacHeader.Deserialize(), ns3::dot11s::PeerLinkConfirmStart.Deserialize(), ns3::QKDHeader.Deserialize(), ns3::Icmpv4DestinationUnreachable.Deserialize(), ns3::Ipv4Header.Deserialize(), ns3::dsr::DsrOptionPadnHeader.Deserialize(), ns3::EpcX2HandoverRequestAckHeader.Deserialize(), ns3::WifiInformationElement.Deserialize(), ns3::LteRlcAmHeader.Deserialize(), ns3::Ipv6OptionPadnHeader.Deserialize(), ns3::Ipv6ExtensionHopByHopHeader.Deserialize(), ns3::Ipv6Header.Deserialize(), ns3::PacketMetadata.Deserialize(), ns3::RngRsp.Deserialize(), ns3::Icmpv4TimeExceeded.Deserialize(), ns3::DhcpHeader.Deserialize(), ns3::MgtReassocRequestHeader.Deserialize(), ns3::olsr::MessageHeader.Deserialize(), ns3::TcpHeader.Deserialize(), ns3::UanHeaderRcCtsGlobal.Deserialize(), ns3::dsr::DsrRoutingHeader.Deserialize(), ns3::Ipv6ExtensionDestinationHeader.Deserialize(), ns3::Ipv6OptionJumbogramHeader.Deserialize(), ns3::EpcX2HandoverPreparationFailureHeader.Deserialize(), ns3::BandwidthRequestHeader.Deserialize(), ns3::PbbAddressTlvBlock.Deserialize(), ns3::olsr::MessageHeader::Mid.Deserialize(), ns3::aodv::RrepHeader.Deserialize(), ns3::aodvq::RrepHeader.Deserialize(), ns3::dsr::DsrOptionRreqHeader.Deserialize(), ns3::Icmpv6NS.Deserialize(), ns3::SixLowPanFrag1.Deserialize(), ns3::EpcX2SnStatusTransferHeader.Deserialize(), ns3::UanHeaderRcCts.Deserialize(), ns3::Ipv6OptionRouterAlertHeader.Deserialize(), ns3::Dcd.Deserialize(), ns3::Ucd.Deserialize(), ns3::Ipv6ExtensionFragmentHeader.Deserialize(), ns3::LrWpanMacHeader.Deserialize(), ns3::GrantManagementSubheader.Deserialize(), ns3::DsaReq.Deserialize(), ns3::olsr::MessageHeader::Hello.Deserialize(), ns3::UanHeaderRcAck.Deserialize(), ns3::MgtAssocResponseHeader.Deserialize(), ns3::EpcX2UeContextReleaseHeader.Deserialize(), ns3::SixLowPanFragN.Deserialize(), ns3::olsr::MessageHeader::Tc.Deserialize(), ns3::FragmentationSubheader.Deserialize(), ns3::Ipv6ExtensionRoutingHeader.Deserialize(), ns3::aodvq::RrepAckHeader.Deserialize(), ns3::aodv::RrepAckHeader.Deserialize(), ns3::dsr::DsrOptionRrepHeader.Deserialize(), ns3::Icmpv6NA.Deserialize(), ns3::DsaRsp.Deserialize(), ns3::EpcX2LoadInformationHeader.Deserialize(), ns3::olsr::MessageHeader::Hna.Deserialize(), ns3::aodvq::RerrHeader.Deserialize(), ns3::aodv::RerrHeader.Deserialize(), ns3::SixLowPanIpv6.Deserialize(), ns3::DlMap.Deserialize(), ns3::MgtProbeRequestHeader.Deserialize(), ns3::EpcX2ResourceStatusUpdateHeader.Deserialize(), ns3::Ipv6ExtensionLooseRoutingHeader.Deserialize(), ns3::DsaAck.Deserialize(), ns3::UlMap.Deserialize(), ns3::PbbPacket.Deserialize(), ns3::dsr::DsrOptionSRHeader.Deserialize(), ns3::RngReq.Deserialize(), ns3::SixLowPanIphc.Deserialize(), ns3::Icmpv6RA.Deserialize(), ns3::MgtProbeResponseHeader.Deserialize(), ns3::dsr::DsrOptionRerrHeader.Deserialize(), ns3::Icmpv6RS.Deserialize(), ns3::Icmpv6Redirection.Deserialize(), ns3::WifiActionHeader.Deserialize(), ns3::dsr::DsrOptionRerrUnreachHeader.Deserialize(), ns3::MgtAddBaRequestHeader.Deserialize(), ns3::SixLowPanNhcExtension.Deserialize(), ns3::Icmpv6Echo.Deserialize(), ns3::PbbMessage.Deserialize(), ns3::Icmpv6DestinationUnreachable.Deserialize(), ns3::dsr::DsrOptionRerrUnsupportHeader.Deserialize(), ns3::MgtAddBaResponseHeader.Deserialize(), ns3::SixLowPanUdpNhcExtension.Deserialize(), ns3::Icmpv6TooBig.Deserialize(), ns3::dsr::DsrOptionAckReqHeader.Deserialize(), ns3::MgtDelBaHeader.Deserialize(), ns3::Icmpv6TimeExceeded.Deserialize(), ns3::dsr::DsrOptionAckHeader.Deserialize(), ns3::Icmpv6ParameterError.Deserialize(), ns3::Icmpv6OptionMtu.Deserialize(), ns3::Icmpv6OptionPrefixInformation.Deserialize(), ns3::Icmpv6OptionLinkLayerAddress.Deserialize(), ns3::PbbTlv.Deserialize(), ns3::Icmpv6OptionRedirected.Deserialize(), ns3::CtrlBAckResponseHeader.DeserializeBitmap(), ns3::WifiInformationElement.DeserializeIfPresent(), ns3::dot11s::IePeeringProtocol.DeserializeInformationField(), ns3::dot11s::IeLinkMetricReport.DeserializeInformationField(), ns3::HeCapabilities.DeserializeInformationField(), ns3::CfParameterSet.DeserializeInformationField(), ns3::dot11s::IeMeshId.DeserializeInformationField(), ns3::VhtCapabilities.DeserializeInformationField(), ns3::dot11s::IePerr.DeserializeInformationField(), ns3::DsssParameterSet.DeserializeInformationField(), ns3::HeOperation.DeserializeInformationField(), ns3::ErpInformation.DeserializeInformationField(), ns3::dot11s::IeRann.DeserializeInformationField(), ns3::dot11s::IePeerManagement.DeserializeInformationField(), ns3::VhtOperation.DeserializeInformationField(), ns3::dot11s::IeBeaconTiming.DeserializeInformationField(), ns3::dot11s::IePrep.DeserializeInformationField(), ns3::dot11s::IeConfiguration.DeserializeInformationField(), ns3::ExtendedCapabilities.DeserializeInformationField(), ns3::dot11s::IePreq.DeserializeInformationField(), ns3::HtCapabilities.DeserializeInformationField(), ns3::EdcaParameterSet.DeserializeInformationField(), ns3::HtOperation.DeserializeInformationField(), ns3::MeshInformationElementVector.DeserializeSingleIe(), ns3::WifiInformationElementVector.DeserializeSingleIe(), PacketTest.DoCheck(), ns3::OfdmUcdChannelEncodings.DoRead(), ns3::OfdmDcdChannelEncodings.DoRead(), LookupTimeTestCase.DoRun(), ns3::OfdmUcdChannelEncodings.DoWrite(), ns3::OfdmDcdChannelEncodings.DoWrite(), FillHistoRangeUniformly(), anonymous_namespace{random-variable-stream-test-suite.cc}.FillHistoRangeUniformly(), Experiment.GetRateManager(), PerfStream(), ns3::Packet.Print(), ns3::DcdChannelEncodings.Read(), ns3::UcdChannelEncodings.Read(), ns3::DlFramePrefixIe.Read(), ns3::OfdmUlBurstProfile.Read(), ns3::OfdmDlBurstProfile.Read(), ns3::OfdmDlMapIe.Read(), ns3::OfdmUlMapIe.Read(), ns3::PacketMetadata.RemoveAtStart(), ns3::Buffer.RemoveAtStart(), PacketTagListTest.RemoveTime(), ns3::PacketMetadata.ReserveCopy(), ns3::BlockAckCache.ResetPortionOfBitmap(), Experiment.SendMultiDestinations(), ns3::EpcX2Header.Serialize(), ns3::TcpOptionEnd.Serialize(), ns3::TcpOptionTS.Serialize(), ns3::GtpuHeader.Serialize(), ns3::flame::FlameHeader.Serialize(), ns3::CtrlBAckRequestHeader.Serialize(), ns3::TcpOptionSackPermitted.Serialize(), ns3::SeqTsHeader.Serialize(), ns3::TcpOptionWinScale.Serialize(), ns3::LlcSnapHeader.Serialize(), ns3::TcpOptionSack.Serialize(), ns3::StatusCode.Serialize(), ns3::TcpOptionNOP.Serialize(), ns3::dot11s::PeerLinkOpenStart.Serialize(), ns3::LtePdcpHeader.Serialize(), ns3::ManagementMessageType.Serialize(), ns3::Icmpv4Header.Serialize(), ns3::TcpOptionMSS.Serialize(), ns3::ExtendedSupportedRatesIE.Serialize(), ns3::ArpHeader.Serialize(), ns3::Ipv6ExtensionHeader.Serialize(), ns3::SllHeader.Serialize(), ns3::dsr::DsrOptionHeader.Serialize(), ns3::EthernetHeader.Serialize(), ns3::Ipv6OptionHeader.Serialize(), ns3::dot11s::MeshHeader.Serialize(), ns3::UdpHeader.Serialize(), ns3::CapabilityInformation.Serialize(), ns3::EpcX2HandoverRequestHeader.Serialize(), ns3::LteRlcHeader.Serialize(), ns3::olsr::PacketHeader.Serialize(), ns3::dot11s::PeerLinkCloseStart.Serialize(), ns3::MgtAssocRequestHeader.Serialize(), ns3::dsr::DsrFsHeader.Serialize(), ns3::PbbTlvBlock.Serialize(), ns3::RipNgHeader.Serialize(), ns3::RipHeader.Serialize(), ns3::dsr::DsrOptionPad1Header.Serialize(), ns3::Icmpv6Header.Serialize(), ns3::SixLowPanHc1.Serialize(), ns3::CtrlBAckResponseHeader.Serialize(), ns3::Ipv6OptionPad1Header.Serialize(), ns3::OfdmDownlinkFramePrefix.Serialize(), ns3::GenericMacHeader.Serialize(), ns3::dot11s::PeerLinkConfirmStart.Serialize(), ns3::Ipv4Header.Serialize(), ns3::dsr::DsrOptionPadnHeader.Serialize(), ns3::EpcX2HandoverRequestAckHeader.Serialize(), ns3::Ipv6OptionPadnHeader.Serialize(), ns3::LteRlcAmHeader.Serialize(), ns3::Ipv6ExtensionHopByHopHeader.Serialize(), ns3::Ipv6Header.Serialize(), ns3::PacketMetadata.Serialize(), ns3::RngRsp.Serialize(), ns3::DhcpHeader.Serialize(), ns3::MgtReassocRequestHeader.Serialize(), ns3::olsr::MessageHeader.Serialize(), ns3::TcpHeader.Serialize(), ns3::dsr::DsrRoutingHeader.Serialize(), ns3::Ipv6ExtensionDestinationHeader.Serialize(), ns3::Ipv6OptionJumbogramHeader.Serialize(), ns3::EpcX2HandoverPreparationFailureHeader.Serialize(), ns3::PbbAddressTlvBlock.Serialize(), ns3::olsr::MessageHeader::Mid.Serialize(), ns3::BandwidthRequestHeader.Serialize(), ns3::dsr::DsrOptionRreqHeader.Serialize(), ns3::Icmpv6NS.Serialize(), ns3::SixLowPanFrag1.Serialize(), ns3::Ipv6OptionRouterAlertHeader.Serialize(), ns3::EpcX2SnStatusTransferHeader.Serialize(), ns3::Ipv6ExtensionFragmentHeader.Serialize(), ns3::Dcd.Serialize(), ns3::Ucd.Serialize(), ns3::LrWpanMacHeader.Serialize(), ns3::GrantManagementSubheader.Serialize(), ns3::olsr::MessageHeader::Hello.Serialize(), ns3::DsaReq.Serialize(), ns3::MgtAssocResponseHeader.Serialize(), ns3::olsr::MessageHeader::Tc.Serialize(), ns3::SixLowPanFragN.Serialize(), ns3::EpcX2UeContextReleaseHeader.Serialize(), ns3::FragmentationSubheader.Serialize(), ns3::Ipv6ExtensionRoutingHeader.Serialize(), ns3::dsr::DsrOptionRrepHeader.Serialize(), ns3::Icmpv6NA.Serialize(), ns3::DsaRsp.Serialize(), ns3::EpcX2LoadInformationHeader.Serialize(), ns3::olsr::MessageHeader::Hna.Serialize(), ns3::SixLowPanIpv6.Serialize(), ns3::DlMap.Serialize(), ns3::MgtProbeRequestHeader.Serialize(), ns3::EpcX2ResourceStatusUpdateHeader.Serialize(), ns3::Ipv6ExtensionLooseRoutingHeader.Serialize(), ns3::DsaAck.Serialize(), ns3::UlMap.Serialize(), ns3::PbbPacket.Serialize(), ns3::dsr::DsrOptionSRHeader.Serialize(), ns3::SixLowPanIphc.Serialize(), ns3::RngReq.Serialize(), ns3::Icmpv6RA.Serialize(), ns3::dsr::DsrOptionRerrHeader.Serialize(), ns3::MgtProbeResponseHeader.Serialize(), ns3::Icmpv6RS.Serialize(), ns3::Icmpv6Redirection.Serialize(), ns3::dsr::DsrOptionRerrUnreachHeader.Serialize(), ns3::MgtAddBaRequestHeader.Serialize(), ns3::SixLowPanNhcExtension.Serialize(), ns3::Icmpv6Echo.Serialize(), ns3::PbbMessage.Serialize(), ns3::Icmpv6DestinationUnreachable.Serialize(), ns3::dsr::DsrOptionRerrUnsupportHeader.Serialize(), ns3::MgtAddBaResponseHeader.Serialize(), ns3::SixLowPanUdpNhcExtension.Serialize(), ns3::Icmpv6TooBig.Serialize(), ns3::dsr::DsrOptionAckReqHeader.Serialize(), ns3::Icmpv6TimeExceeded.Serialize(), ns3::MgtDelBaHeader.Serialize(), ns3::dsr::DsrOptionAckHeader.Serialize(), ns3::Icmpv6ParameterError.Serialize(), ns3::Icmpv6OptionMtu.Serialize(), ns3::PbbAddressBlock.Serialize(), ns3::Icmpv6OptionPrefixInformation.Serialize(), ns3::Icmpv6OptionLinkLayerAddress.Serialize(), ns3::PbbTlv.Serialize(), ns3::Icmpv6OptionRedirected.Serialize(), ns3::CtrlBAckResponseHeader.SerializeBitmap(), ns3::Application.SetStartTime(), ns3::WifiPhy.SetTxPowerStart(), ns3::PbbTlv.SetValue(), ns3::RawTextConfigLoad.Strip(), ns3::UanPdp.SumTapsFromMaxC(), ns3::UanPdp.SumTapsFromMaxNc(), TcpOptionWSTestCase.TestDeserialize(), TcpOptionTSTestCase.TestDeserialize(), TestDeterministicByTime(), ns3::Hash::Example::Dictionary.TimeOne(), ns3::HeapScheduler.TopDown(), ns3::DcdChannelEncodings.Write(), ns3::UcdChannelEncodings.Write(), ns3::DlFramePrefixIe.Write(), ns3::OfdmUlBurstProfile.Write(), ns3::OfdmDlBurstProfile.Write(), ns3::OfdmDlMapIe.Write(), ns3::OfdmUlMapIe.Write(), and ns3::TlvValue.~TlvValue().

+ Here is the call graph for this function:

Variable Documentation

visualizer.core._import_error = None
private

Definition at line 54 of file core.py.

int visualizer.core.BITRATE_FONT_SIZE = 10

Definition at line 9 of file core.py.

float visualizer.core.DEFAULT_NODE_SIZE = 3.0

Definition at line 7 of file core.py.

int visualizer.core.DEFAULT_TRANSMISSIONS_MEMORY = 5

Definition at line 8 of file core.py.

list visualizer.core.initialization_hooks = []

Definition at line 1784 of file core.py.

visualizer.core.ipython_view = None

Definition at line 59 of file core.py.

string visualizer.core.LAYOUT_ALGORITHM = 'neato'

Definition at line 5 of file core.py.

int visualizer.core.PI_OVER_2 = math.pi/2

Definition at line 66 of file core.py.

int visualizer.core.PI_TIMES_2 = math.pi*2

Definition at line 67 of file core.py.

int visualizer.core.PRIORITY_UPDATE_MODEL = -100

Definition at line 13 of file core.py.

int visualizer.core.PRIORITY_UPDATE_VIEW = 200

Definition at line 14 of file core.py.

int visualizer.core.REPRESENT_CHANNELS_AS_NODES = 1

Definition at line 6 of file core.py.

float visualizer.core.SAMPLE_PERIOD = 0.1

Definition at line 12 of file core.py.

string visualizer.core.SHELL_FONT = "Lucida Console 9"

Definition at line 18 of file core.py.

visualizer.core.svgitem = None

Definition at line 50 of file core.py.