be.ac.ulg.montefiore.run.totem.domain.model.impl
Class BandwidthSharingLinkInfo
java.lang.Object
be.ac.ulg.montefiore.run.totem.domain.model.impl.BandwidthSharingLinkInfo
- All Implemented Interfaces:
- java.lang.Cloneable
public class BandwidthSharingLinkInfo
- extends java.lang.Object
- implements java.lang.Cloneable
This class contains all the information concerning one link (Lij).
This info is :
- the sum of the bandwidth of the primary LSP that pass on this link (Pij).
- the bandwidth that is free on this link when another link fail (Fij).
- the bandwidth that is reserved on this link when another link fail (Bij).
Creation date: 14/12/2007
- Author:
- Simon Balon (balon@run.montefiore.ulg.ac.be)B, Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BandwidthSharingLinkInfo
public BandwidthSharingLinkInfo(int id,
float bandwidth,
int maxLinkId,
int[][] linksInNode)
getId
public int getId()
getBw
public float getBw()
getNbPrim
public long getNbPrim()
getNbBackups
public long getNbBackups()
getMaxNbBackupsLij
public long getMaxNbBackupsLij()
getPij
public float getPij()
getRij
public float getRij()
getMaxBij
public float getMaxBij()
addPij
public void addPij(float value)
subPij
public void subPij(float value)
getFij
public float getFij(int index)
addFij
public void addFij(float value,
int index)
subFij
public void subFij(float value,
int index)
getBij
public float getBij(int index)
addBij
public void addBij(float value,
int index)
subBij
public void subBij(float value,
int index)
clone
protected BandwidthSharingLinkInfo clone()
- Overrides:
clone
in class java.lang.Object
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.