edu.colorado.cs.ns2.sim
Class LinkProperties

java.lang.Object
  extended by edu.colorado.cs.ns2.sim.LinkProperties

public class LinkProperties
extends java.lang.Object

This class encapsulates the link's essential properties.

Author:
Kevin Bauer, Pushkar Sambhoos.

Field Summary
private  java.lang.String arguments
          Stores the queue's arguments.
private  java.lang.String bandwidth
          Stores the link's bandwidth;
private  java.lang.String latency
          Stores the link's latency.
private  java.lang.String queueType
          Stores the link's queuing mechanism.
 
Constructor Summary
LinkProperties(java.lang.String bw, java.lang.String lat, java.lang.String q, java.lang.String args)
          Four-argument constructor.
 
Method Summary
 java.lang.String getArguments()
          Returns the queue's arguments
 java.lang.String getBandwidth()
          Returns the link's bandwidth
 java.lang.String getLatency()
          Returns the link's latency.
 java.lang.String getQueueType()
          Returns the link's queue type.
 void setArguments(java.lang.String arguments)
          Sets the queue's arguments.
 void setBandwidth(java.lang.String bandwidth)
          Sets the link's bandwidth
 void setLatency(java.lang.String latency)
          Sets the link's latency.
 void setQueueType(java.lang.String queueType)
          Sets the link's queuing mechanism.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bandwidth

private java.lang.String bandwidth
Stores the link's bandwidth;


latency

private java.lang.String latency
Stores the link's latency.


queueType

private java.lang.String queueType
Stores the link's queuing mechanism.


arguments

private java.lang.String arguments
Stores the queue's arguments.

Constructor Detail

LinkProperties

public LinkProperties(java.lang.String bw,
                      java.lang.String lat,
                      java.lang.String q,
                      java.lang.String args)
Four-argument constructor.

Parameters:
bw - Bandwidth value.
lat - Latency value.
q - Queue selection.
args - Queue's arguments.
Method Detail

getBandwidth

public java.lang.String getBandwidth()
Returns the link's bandwidth

Returns:
The link's bandwidth

setBandwidth

public void setBandwidth(java.lang.String bandwidth)
Sets the link's bandwidth

Parameters:
bandwidth - A new bandwidth value.

getLatency

public java.lang.String getLatency()
Returns the link's latency.

Returns:
The link's latency.

setLatency

public void setLatency(java.lang.String latency)
Sets the link's latency.

Parameters:
latency - A new latency value.

getQueueType

public java.lang.String getQueueType()
Returns the link's queue type.

Returns:
The link's queue type.

setQueueType

public void setQueueType(java.lang.String queueType)
Sets the link's queuing mechanism.

Parameters:
queueType - A new queue type.

getArguments

public java.lang.String getArguments()
Returns the queue's arguments

Returns:
The queue's arguments.

setArguments

public void setArguments(java.lang.String arguments)
Sets the queue's arguments.

Parameters:
arguments - New queue arguments.