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

Public Member Functions

 P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap)
 
 P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap, boolean isDefault)
 
 P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap, boolean isDefault, boolean isUsed)
 
String toString ()
 
String forSettings ()
 
boolean isDefault ()
 
void setDefault (boolean isDefault)
 
boolean isUsed ()
 
void setUsed (boolean used)
 
String toCode ()
 
String getPacketCaptureAllCode ()
 
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)
 

Public Attributes

String name
 
String delay
 
String dataRate
 
String speedModifier
 

Additional Inherited Members

Detailed Description

to store the link of type PointToPointHelper in terms of NS-3 Script

Definition at line 8 of file P2P.java.

Constructor & Destructor Documentation

◆ P2P() [1/3]

Ns3Objects.Links.P2P.P2P ( int id,
String name,
String delay,
String dataRate,
String speedModifier,
boolean enablePcap )

to instantiate the object of type P2P

Parameters
idfor identity
namefor alias
delayfor delay in ms
dataRatefor data rate of the link
speedModifierfor speed modifier
enablePcapfor enabling packet capture of entire link
See also
P2P::P2P(int, String, String, String, String, boolean, boolean, boolean) P2P
P2P::P2P(int, String, String, String, String, boolean, boolean) P2P
Since
0.3.0

Definition at line 60 of file P2P.java.

◆ P2P() [2/3]

Ns3Objects.Links.P2P.P2P ( int id,
String name,
String delay,
String dataRate,
String speedModifier,
boolean enablePcap,
boolean isDefault )

to instantiate the object of type P2P

Parameters
idfor identity
namefor alias
delayfor delay in ms
dataRatefor data rate of the link
speedModifierfor speed modifier
enablePcapfor enabling packet capture of entire link
isDefaultfor setting as default link
See also
P2P::P2P(int, String, String, String, String, boolean, boolean, boolean) P2P
P2P::P2P(int, String, String, String, String, boolean) P2P
Since
0.3.0

Definition at line 87 of file P2P.java.

◆ P2P() [3/3]

Ns3Objects.Links.P2P.P2P ( int id,
String name,
String delay,
String dataRate,
String speedModifier,
boolean enablePcap,
boolean isDefault,
boolean isUsed )

to instantiate the object of type P2P

Parameters
idfor identity
namefor alias
delayfor delay in ms
dataRatefor data rate of the link
speedModifierfor speed modifier
enablePcapfor enabling packet capture of entire link
isDefaultfor setting as default link
isUsedfor marking as used link
See also
P2P::P2P(int, String, String, String, String, boolean, boolean) P2P
P2P::P2P(int, String, String, String, String, boolean) P2P
Since
0.3.0

Definition at line 107 of file P2P.java.

Member Function Documentation

◆ forSettings()

String Ns3Objects.Links.P2P.forSettings ( )

to generate the storage format in settings file

Returns
storage format for settings file
Since
0.3.0

Implements Ns3Objects.Links.NetworkLink.

Definition at line 131 of file P2P.java.

◆ getDataRate()

String Ns3Objects.Links.P2P.getDataRate ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 238 of file P2P.java.

◆ getDelay()

String Ns3Objects.Links.P2P.getDelay ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 228 of file P2P.java.

◆ getEnablePcap()

boolean Ns3Objects.Links.P2P.getEnablePcap ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 268 of file P2P.java.

◆ getId()

int Ns3Objects.Links.P2P.getId ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 208 of file P2P.java.

◆ getLinkType()

LinkType Ns3Objects.Links.P2P.getLinkType ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 258 of file P2P.java.

◆ getName()

String Ns3Objects.Links.P2P.getName ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 218 of file P2P.java.

◆ getPacketCaptureAllCode()

String Ns3Objects.Links.P2P.getPacketCaptureAllCode ( )

to generate the code for packet capture of entire link


Example:
p2pName.EnablePcapAll("Name");
Returns
Equivalent code for ".EnablePcapAll()" method
Since
1.1.0

Implements Ns3Objects.Links.NetworkLink.

Definition at line 200 of file P2P.java.

◆ getSpeedModifier()

String Ns3Objects.Links.P2P.getSpeedModifier ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 248 of file P2P.java.

◆ isDefault()

boolean Ns3Objects.Links.P2P.isDefault ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 136 of file P2P.java.

◆ isUsed()

boolean Ns3Objects.Links.P2P.isUsed ( )

Implements Ns3Objects.Links.NetworkLink.

Definition at line 146 of file P2P.java.

◆ setDataRate()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 243 of file P2P.java.

◆ setDefault()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 141 of file P2P.java.

◆ setDelay()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 233 of file P2P.java.

◆ setEnablePcap()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 273 of file P2P.java.

◆ setId()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 213 of file P2P.java.

◆ setLinkType()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 263 of file P2P.java.

◆ setName()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 223 of file P2P.java.

◆ setSpeedModifier()

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

Implements Ns3Objects.Links.NetworkLink.

Definition at line 253 of file P2P.java.

◆ setUsed()

void Ns3Objects.Links.P2P.setUsed ( boolean used)

Implements Ns3Objects.Links.NetworkLink.

Definition at line 151 of file P2P.java.

◆ toCode()

String Ns3Objects.Links.P2P.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
Since
0.3.0

Implements Ns3Objects.Links.NetworkLink.

Definition at line 174 of file P2P.java.

◆ toString()

String Ns3Objects.Links.P2P.toString ( )

to render the link information

Returns
the link information
Since
0.3.0

Definition at line 119 of file P2P.java.

Member Data Documentation

◆ dataRate

String Ns3Objects.Links.P2P.dataRate

for data rate

Definition at line 25 of file P2P.java.

◆ delay

String Ns3Objects.Links.P2P.delay

for delay in "ms"

Definition at line 21 of file P2P.java.

◆ name

String Ns3Objects.Links.P2P.name

for alias name

Definition at line 17 of file P2P.java.

◆ speedModifier

String Ns3Objects.Links.P2P.speedModifier

for speed modifier of link

Definition at line 29 of file P2P.java.


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