be.ac.ulg.montefiore.run.totem.domain.model
Interface Lsp

All Superinterfaces:
DomainElement

public interface Lsp
extends DomainElement

A Label Switched Path in a Domain

Creation date: 19-Jan-2005 15:47:36

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

Field Summary
static int BYPASS_BACKUP_TYPE
           
static int DETOUR_E2E_BACKUP_TYPE
           
static int DETOUR_LOCAL_BACKUP_TYPE
           
static int STATUS_DOWN
           
static int STATUS_UP
           
 
Method Summary
 void addBackupLsp(Lsp lsp)
          Add a lsp in the list of backup lsps of this primary lsp.
 java.util.Set<Lsp> getBackups()
          returns a set of the backups lsps
 int getBackupType()
           
 int getCT()
           
 int getHoldingPreemption()
           
 Path getLspPath()
           
 int getLspStatus()
          Returns the status of the LSP.
 float getMaxRate()
           
 float getMetric()
           
 java.util.List<Link> getProtectedLinks()
           
 Lsp getProtectedLsp()
           
 float getReservation()
           
 int getSetupPreemption()
           
 void init(Domain domain)
           
 boolean isBackupLsp()
           
 void makePrimary()
          Make a primary lsp out of the lsp object.
 void removeBackupLsp(Lsp lsp)
          Removes a LSP for the list of backups
 void setLspId(java.lang.String id)
          Sets the id of the LSP (the LSP must not be established in the domain).
 void setLspPath(Path path)
           
 void setLspStatus(int status)
          Sets the status of the lsp.
 void setProtectedLsp(java.lang.String lspId)
          Sets the protected lsp of a backup lsp.
 void setReservation(float bw)
           
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainElement
getId
 

Field Detail

DETOUR_E2E_BACKUP_TYPE

static final int DETOUR_E2E_BACKUP_TYPE
See Also:
Constant Field Values

DETOUR_LOCAL_BACKUP_TYPE

static final int DETOUR_LOCAL_BACKUP_TYPE
See Also:
Constant Field Values

BYPASS_BACKUP_TYPE

static final int BYPASS_BACKUP_TYPE
See Also:
Constant Field Values

STATUS_UP

static final int STATUS_UP
See Also:
Constant Field Values

STATUS_DOWN

static final int STATUS_DOWN
See Also:
Constant Field Values
Method Detail

init

void init(Domain domain)
          throws InvalidPathException,
                 DiffServConfigurationException
Parameters:
domain -
Throws:
InvalidPathException - If the LSP has invalid path.
DiffServConfigurationException

setLspId

void setLspId(java.lang.String id)
              throws BadLspTypeException
Sets the id of the LSP (the LSP must not be established in the domain).

Parameters:
id -
Throws:
BadLspTypeException - If the LSP is in the domain.

getMetric

float getMetric()

getMaxRate

float getMaxRate()

getReservation

float getReservation()

setReservation

void setReservation(float bw)
                    throws LinkCapacityExceededException
Throws:
LinkCapacityExceededException

getLspPath

Path getLspPath()

setLspPath

void setLspPath(Path path)

getCT

int getCT()

getHoldingPreemption

int getHoldingPreemption()

getSetupPreemption

int getSetupPreemption()

isBackupLsp

boolean isBackupLsp()

getBackupType

int getBackupType()

getProtectedLsp

Lsp getProtectedLsp()
                    throws LspNotFoundException
Throws:
LspNotFoundException

setProtectedLsp

void setProtectedLsp(java.lang.String lspId)
                     throws BadLspTypeException
Sets the protected lsp of a backup lsp.

Parameters:
lspId -
Throws:
BadLspTypeException - If the lsp is not a backup lsp

getProtectedLinks

java.util.List<Link> getProtectedLinks()
                                       throws LinkNotFoundException
Throws:
LinkNotFoundException

addBackupLsp

void addBackupLsp(Lsp lsp)
Add a lsp in the list of backup lsps of this primary lsp.


removeBackupLsp

void removeBackupLsp(Lsp lsp)
                     throws LspNotFoundException
Removes a LSP for the list of backups

Parameters:
lsp -
Throws:
LspNotFoundException

getBackups

java.util.Set<Lsp> getBackups()
returns a set of the backups lsps

Returns:

makePrimary

void makePrimary()
Make a primary lsp out of the lsp object. Do nothing if the lsp is already a primary lsp.


getLspStatus

int getLspStatus()
Returns the status of the LSP. Can be STATUS_DOWN or STATUS_UP.

Returns:

setLspStatus

void setLspStatus(int status)
                  throws StatusTypeException
Sets the status of the lsp.

Parameters:
status -
Throws:
StatusTypeException - if the given status is different from STATUS_DOWN or STATUS_UP.


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