NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
Loading...
Searching...
No Matches
Ns3Objects.Links.NetworkLink Interface Reference
Inheritance diagram for Ns3Objects.Links.NetworkLink:
Ns3Objects.Links.CSMA Ns3Objects.Links.P2P Ns3Objects.Links.WIFI

Public Member Functions

int getId ()
 
void setId (int id)
 
String getName ()
 
void setName (String name)
 
String getDelay ()
 
void setDelay (String delay)
 
String getDataRate ()
 
void setDataRate (String dataRate)
 
String getSpeedModifier ()
 
void setSpeedModifier (String speedModifier)
 
LinkType getLinkType ()
 
void setLinkType (LinkType linkType)
 
boolean getEnablePcap ()
 
void setEnablePcap (boolean enablePcap)
 
String forSettings ()
 
boolean isDefault ()
 
void setDefault (boolean isDefault)
 
boolean isUsed ()
 
void setUsed (boolean isUsed)
 
String getPacketCaptureAllCode ()
 
String toCode ()
 

Static Public Member Functions

static LinkType getLinkType (int choiceIndex)
 

Public Attributes

int CHOICE_INDEX_P2P = 0
 
int CHOICE_INDEX_CSMA = 1
 
String LABEL_P2P = "P2P"
 
String LABEL_CSMA = "CSMA"
 

Detailed Description

to store and manage network links objects in NS-3

Definition at line 17 of file NetworkLink.java.

Member Function Documentation

◆ forSettings()

String Ns3Objects.Links.NetworkLink.forSettings ( )

◆ getDataRate()

String Ns3Objects.Links.NetworkLink.getDataRate ( )

◆ getDelay()

String Ns3Objects.Links.NetworkLink.getDelay ( )

◆ getEnablePcap()

boolean Ns3Objects.Links.NetworkLink.getEnablePcap ( )

◆ getId()

int Ns3Objects.Links.NetworkLink.getId ( )

◆ getLinkType() [1/2]

LinkType Ns3Objects.Links.NetworkLink.getLinkType ( )

◆ getLinkType() [2/2]

static LinkType Ns3Objects.Links.NetworkLink.getLinkType ( int choiceIndex)
static

to get the Link type from the provided choice

See also
LinkType
Returns
Link type
Since
1.1.0

Definition at line 105 of file NetworkLink.java.

◆ getName()

String Ns3Objects.Links.NetworkLink.getName ( )

◆ getPacketCaptureAllCode()

String Ns3Objects.Links.NetworkLink.getPacketCaptureAllCode ( )

◆ getSpeedModifier()

String Ns3Objects.Links.NetworkLink.getSpeedModifier ( )

◆ isDefault()

boolean Ns3Objects.Links.NetworkLink.isDefault ( )

◆ isUsed()

boolean Ns3Objects.Links.NetworkLink.isUsed ( )

◆ setDataRate()

void Ns3Objects.Links.NetworkLink.setDataRate ( String dataRate)

◆ setDefault()

void Ns3Objects.Links.NetworkLink.setDefault ( boolean isDefault)

◆ setDelay()

void Ns3Objects.Links.NetworkLink.setDelay ( String delay)

◆ setEnablePcap()

void Ns3Objects.Links.NetworkLink.setEnablePcap ( boolean enablePcap)

◆ setId()

void Ns3Objects.Links.NetworkLink.setId ( int id)

◆ setLinkType()

void Ns3Objects.Links.NetworkLink.setLinkType ( LinkType linkType)

◆ setName()

void Ns3Objects.Links.NetworkLink.setName ( String name)

◆ setSpeedModifier()

void Ns3Objects.Links.NetworkLink.setSpeedModifier ( String speedModifier)

◆ setUsed()

void Ns3Objects.Links.NetworkLink.setUsed ( boolean isUsed)

◆ toCode()

String Ns3Objects.Links.NetworkLink.toCode ( )

to generate the link configuration code

        
Example:
PointToPointHelper pointToPoint;
pointToPoint.SetDeviceAttribute("DataRate", StringValue("500Mbps"));
pointToPoint.SetChannelAttribute("Delay", StringValue("2ms"));
Returns
the link configuration code for the link
Since
1.1.0

Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.

Member Data Documentation

◆ CHOICE_INDEX_CSMA

int Ns3Objects.Links.NetworkLink.CHOICE_INDEX_CSMA = 1

to map the index with the type of the CSMA link

Definition at line 26 of file NetworkLink.java.

◆ CHOICE_INDEX_P2P

int Ns3Objects.Links.NetworkLink.CHOICE_INDEX_P2P = 0

to map the index with the type of the P2P link

Definition at line 22 of file NetworkLink.java.

◆ LABEL_CSMA

String Ns3Objects.Links.NetworkLink.LABEL_CSMA = "CSMA"

label for rendering the CSMA link

Definition at line 35 of file NetworkLink.java.

◆ LABEL_P2P

String Ns3Objects.Links.NetworkLink.LABEL_P2P = "P2P"

label for rendering P2P link

Definition at line 31 of file NetworkLink.java.


The documentation for this interface was generated from the following file: