be.ac.ulg.montefiore.run.totem.repository.model
Class LSPRoutingParameter

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.model.LSPRoutingParameter
Direct Known Subclasses:
LSPBypassRoutingParameter, LSPDetourRoutingParameter, LSPPrimaryRoutingParameter

public abstract class LSPRoutingParameter
extends java.lang.Object

This abstract class is the base class for the routing parameters classes.

See the classes implementing the routing algorithms to know the specific required parameters.

Creation date: 01-D�c.-2004

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Field Summary
protected  float bandwidth
           
protected  java.lang.String lspId
           
protected  java.util.HashMap<java.lang.String,java.lang.String> routingAlgorithmParams
           
 
Constructor Summary
LSPRoutingParameter(java.lang.String lspId)
          Initialises a newly created LSPRoutingParameter object.
 
Method Summary
 float getBandwidth()
           
 java.lang.String getLspId()
           
 java.lang.String getRoutingAlgorithmParameter(java.lang.String name)
          Returns the value of the parameter name.
 void putAllRoutingAlgorithmParameter(java.util.HashMap<java.lang.String,java.lang.String> params)
          Sets all the parameters in params, overwriting existing ones.
 void putRoutingAlgorithmParameter(java.lang.String name, java.lang.String value)
          Sets the value of the parameter name to value.
 void setBandwidth(float bandwidth)
           
 void setLspId(java.lang.String lspId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bandwidth

protected float bandwidth

lspId

protected java.lang.String lspId

routingAlgorithmParams

protected java.util.HashMap<java.lang.String,java.lang.String> routingAlgorithmParams
Constructor Detail

LSPRoutingParameter

public LSPRoutingParameter(java.lang.String lspId)
Initialises a newly created LSPRoutingParameter object.

Method Detail

putRoutingAlgorithmParameter

public void putRoutingAlgorithmParameter(java.lang.String name,
                                         java.lang.String value)
Sets the value of the parameter name to value.


putAllRoutingAlgorithmParameter

public void putAllRoutingAlgorithmParameter(java.util.HashMap<java.lang.String,java.lang.String> params)
Sets all the parameters in params, overwriting existing ones.


getRoutingAlgorithmParameter

public java.lang.String getRoutingAlgorithmParameter(java.lang.String name)
Returns the value of the parameter name. If there is no parameter name, this method returns null.


getBandwidth

public float getBandwidth()
Returns:
Returns the bandwidth.

setBandwidth

public void setBandwidth(float bandwidth)
Parameters:
bandwidth - The bandwidth to set.

getLspId

public java.lang.String getLspId()
Returns:
Returns the lspId.

setLspId

public void setLspId(java.lang.String lspId)
Parameters:
lspId - The lspId to set.


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.