gps.network.graph
Class LinkProperties

java.lang.Object
  extended by gps.network.graph.LinkProperties

public class LinkProperties
extends java.lang.Object

link properties

Author:
Oliver Heckmann

Field Summary
 boolean unidirectional
          directional informaiton
 
Constructor Summary
LinkProperties()
          Creates new LinkProperties with zero bandwidth, delay etc.
LinkProperties(double distance, double bandwidth, double costs, double delay)
          Creates new LinkProperties
 
Method Summary
 double getBandwidth()
          gets bandwidth
 double getCosts()
          gets costs
 double getDelay()
          gets delay
 boolean getDirection()
          gets dierctional informaiton
 double getDistance()
          gets distance
 java.lang.String getLabel()
          gets label
 int getType()
          gets link type
 void setBandwidth(double bandwidth)
          sets bandwidth
 void setCosts(double costs)
          sets costs
 void setDelay(double delay)
          sets delay
 void setDirection(boolean unidirectional)
          sets directional information
 void setDistance(double distance)
          sets distance
 void setLabel(java.lang.String label)
          sets label
 void setType(int type)
          sets link type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unidirectional

public boolean unidirectional
directional informaiton

Constructor Detail

LinkProperties

public LinkProperties()
Creates new LinkProperties with zero bandwidth, delay etc.


LinkProperties

public LinkProperties(double distance,
                      double bandwidth,
                      double costs,
                      double delay)
Creates new LinkProperties

Parameters:
bandwidth - bandwidth
costs - costs
delay - delay
Method Detail

getType

public int getType()
gets link type

Returns:
type

setType

public void setType(int type)
sets link type

Parameters:
type - new type

getBandwidth

public double getBandwidth()
gets bandwidth

Returns:
bandwidth

setBandwidth

public void setBandwidth(double bandwidth)
sets bandwidth

Parameters:
bandwidth - new bandwidth

getLabel

public java.lang.String getLabel()
gets label

Returns:
label

setLabel

public void setLabel(java.lang.String label)
sets label

Parameters:
label - new label

getDirection

public boolean getDirection()
gets dierctional informaiton

Returns:
true if directed, otherwise false

setDirection

public void setDirection(boolean unidirectional)
sets directional information

Parameters:
unidirectional - true if directed, otherwise false

getDistance

public double getDistance()
gets distance

Returns:
distance

setDistance

public void setDistance(double distance)
sets distance

Parameters:
distance - new distance

getCosts

public double getCosts()
gets costs

Returns:
costs

setCosts

public void setCosts(double costs)
sets costs

Parameters:
costs - new costs

getDelay

public double getDelay()
gets delay

Returns:
delay

setDelay

public void setDelay(double delay)
sets delay

Parameters:
delay - new delay