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

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.model.LSPRoutingParameter
      extended by be.ac.ulg.montefiore.run.totem.repository.model.LSPBypassRoutingParameter

public final class LSPBypassRoutingParameter
extends LSPRoutingParameter

This class specifies the information needed to compute a bypass backup. It basically contains general LSP information (from LSPRoutingParameter), diffserv information (setup and holding levels and classtype), a list of protected linksand a destination node id. For fast re-routable LSPs, only one protected link should be set. For NHOP lsps, the dstNode is optional and should be the protected link destination node. For NNHOP, it is mandatory and should be the next next hop.

Creation date: 25-May-2005

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.repository.model.LSPRoutingParameter
acceptedCos, bandwidth, isSetBandwidth, lspId, routingAlgorithmParams
 
Constructor Summary
LSPBypassRoutingParameter(java.lang.String lspId)
          Assume that the destination of the LSP is the destination node of the last protected link.
LSPBypassRoutingParameter(java.lang.String lspId, java.lang.String dstNode)
          Initialises a newly created LSPBypassRoutingParameter object.
 
Method Summary
 void addProtectedLink(java.lang.String link)
          Adds the link link to the list of the links protected by the LSP to create.
 int getClassType()
           
 java.lang.String getDstNode()
           
 int getHolding()
           
 java.util.List<java.lang.String> getProtectedLink()
          Returns the list of the links to protect.
 int getSetup()
           
 boolean isSetClassType()
           
 boolean isSetDstNode()
           
 boolean isSetHolding()
           
 boolean isSetSetup()
           
 void setClassType(int classType)
           
 void setDstNode(java.lang.String dstNode)
           
 void setHolding(int holding)
           
 void setSetup(int setup)
           
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.repository.model.LSPRoutingParameter
getAcceptedCos, getBandwidth, getLspId, getRoutingAlgorithmParameter, isSetBandwidth, putAllRoutingAlgorithmParameter, putRoutingAlgorithmParameter, setAcceptedCos, setBandwidth, setLspId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSPBypassRoutingParameter

public LSPBypassRoutingParameter(java.lang.String lspId,
                                 java.lang.String dstNode)
Initialises a newly created LSPBypassRoutingParameter object.


LSPBypassRoutingParameter

public LSPBypassRoutingParameter(java.lang.String lspId)
Assume that the destination of the LSP is the destination node of the last protected link.

Parameters:
lspId -
Method Detail

addProtectedLink

public void addProtectedLink(java.lang.String link)
Adds the link link to the list of the links protected by the LSP to create.

Parameters:
link - The ID of the link to add.

getProtectedLink

public java.util.List<java.lang.String> getProtectedLink()
Returns the list of the links to protect.


getClassType

public int getClassType()
Returns:
Returns the classType if set, 0 otherwise.

setClassType

public void setClassType(int classType)
Parameters:
classType - The classType to set.

isSetClassType

public boolean isSetClassType()
Returns:
true if the classType is set, false otherwise.

getHolding

public int getHolding()

setHolding

public void setHolding(int holding)
Parameters:
holding - The holding to set.

isSetHolding

public boolean isSetHolding()
Returns:
True if the holding preemption level is set, false otherwise.

getSetup

public int getSetup()
Returns:
Returns the setup preemption level if set, 0 otherwise.

setSetup

public void setSetup(int setup)
Parameters:
setup - The setup to set.

isSetSetup

public boolean isSetSetup()
Returns:
true if the setup is set

getDstNode

public java.lang.String getDstNode()

setDstNode

public void setDstNode(java.lang.String dstNode)

isSetDstNode

public boolean isSetDstNode()


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