|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Link
Represent a Link in a Domain
Creation date: 12-Jan-2005 17:27:03
Nested Class Summary | |
---|---|
static class |
Link.Type
|
Field Summary | |
---|---|
static int |
STATUS_DOWN
|
static int |
STATUS_UP
|
Method Summary | |
---|---|
void |
addPriority(int priority)
This function should be called after a priority is added to the domain. |
void |
addReservation(float bw)
|
void |
addReservation(float bw,
int priority)
|
float |
getBandwidth()
|
float[] |
getBCs()
|
float |
getDelay()
|
java.lang.String |
getDescription()
|
int |
getDiffServBCM()
|
DiffServModel |
getDiffServModel()
|
NodeInterface |
getDstInterface()
|
Node |
getDstNode()
|
int |
getLinkStatus()
Get the status of the link. |
Link.Type |
getLinkType()
|
float |
getMaximumBandwidth()
Return the maximum bandwidth of the link. |
float |
getMetric()
|
float[] |
getRbw()
|
float |
getReservableBandwidth()
|
float |
getReservableBandwidth(int priority)
|
float |
getReservableBandwidthCT(int ct)
|
float[] |
getReservations()
Returns a copy of the reservation array. |
float |
getReservedBandwidth()
|
float |
getReservedBandwidth(int priority)
|
float |
getReservedBandwidthCT(int ct)
|
NodeInterface |
getSrcInterface()
|
Node |
getSrcNode()
|
float |
getTEMetric()
|
float |
getTotalReservableBandwidth()
|
float |
getTotalReservedBandwidth()
|
void |
removePriority(int priority)
This function should be called after a priority is removed from the domain. |
void |
removeReservation(float bw)
|
void |
removeReservation(float bw,
int priority)
|
void |
setBandwidth(float bw)
|
void |
setBC(int ct,
float value)
Set the BC to the given value. |
void |
setDelay(float delay)
|
void |
setDescription(java.lang.String description)
|
void |
setDstInterface(java.lang.String dstInterfaceId)
|
void |
setLinkStatus(int status)
|
void |
setLinkType(Link.Type type)
|
void |
setMaximumBandwidth(float value)
Sets the bandwidth of the link. |
void |
setMetric(float metric)
|
void |
setRbw(float[] rbw)
|
void |
setSrcInterface(java.lang.String srcInterfaceId)
|
void |
setTEMetric(float metric)
|
Methods inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainElement |
---|
getDomain, getId, setElementId |
Field Detail |
---|
static final int STATUS_UP
static final int STATUS_DOWN
Method Detail |
---|
Node getSrcNode() throws NodeNotFoundException
NodeNotFoundException
Node getDstNode() throws NodeNotFoundException
NodeNotFoundException
NodeInterface getSrcInterface() throws NodeNotFoundException, NodeInterfaceNotFoundException
NodeNotFoundException
NodeInterfaceNotFoundException
NodeInterface getDstInterface() throws NodeNotFoundException, NodeInterfaceNotFoundException
NodeNotFoundException
NodeInterfaceNotFoundException
void setSrcInterface(java.lang.String srcInterfaceId) throws NodeNotFoundException, NodeInterfaceNotFoundException
NodeNotFoundException
NodeInterfaceNotFoundException
void setDstInterface(java.lang.String dstInterfaceId) throws NodeNotFoundException, NodeInterfaceNotFoundException
NodeNotFoundException
NodeInterfaceNotFoundException
float getDelay()
void setDelay(float delay)
float getBandwidth()
void setBandwidth(float bw) throws LinkCapacityExceededException, DiffServConfigurationException
LinkCapacityExceededException
DiffServConfigurationException
void setMaximumBandwidth(float value)
value
- float getMaximumBandwidth()
int getLinkStatus()
void setLinkStatus(int status) throws StatusTypeException
StatusTypeException
Link.Type getLinkType()
void setLinkType(Link.Type type)
float getMetric()
void setMetric(float metric)
float getTEMetric()
void setTEMetric(float metric)
float getReservableBandwidth()
float getReservedBandwidth()
float[] getReservations()
float getTotalReservedBandwidth()
float getTotalReservableBandwidth()
float getReservedBandwidthCT(int ct)
float getReservableBandwidthCT(int ct)
float getReservableBandwidth(int priority)
float getReservedBandwidth(int priority)
void addReservation(float bw) throws LinkCapacityExceededException
LinkCapacityExceededException
void addReservation(float bw, int priority) throws LinkCapacityExceededException
LinkCapacityExceededException
int getDiffServBCM()
DiffServModel getDiffServModel()
void removeReservation(float bw) throws LinkCapacityExceededException
LinkCapacityExceededException
void removeReservation(float bw, int priority) throws LinkCapacityExceededException
LinkCapacityExceededException
float[] getBCs()
void setBC(int ct, float value) throws DiffServConfigurationException, LinkCapacityExceededException
ct
- class typevalue
-
DiffServConfigurationException
- when the classType cannot be found in the domain.
LinkCapacityExceededException
- If the new BC value do not leave enough bandwidth for the current established LSPs.float[] getRbw()
void setRbw(float[] rbw)
void addPriority(int priority)
priority
- the priority that was added.void removePriority(int priority)
priority
- java.lang.String getDescription()
void setDescription(java.lang.String description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |