|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinkLoadComputer
The classes that implements LinkLoadComputer calculates the links load and utilization of a given domain thanks to a LinkLoadStrategy and a traffic matrix.
Creation date: 10 mars 2006
Method Summary | |
---|---|
void |
addListener(LinkLoadComputerListener listener)
Add a listener. |
void |
destroy()
Free resources associated with the object. |
boolean |
equals(java.lang.Object o)
|
Domain |
getDomain()
Returns the domain associated. |
java.lang.String |
getId()
Returns the id associated with the instance, if it has been set. |
double[] |
getLoad()
Returns a vector that represent links load. |
double |
getLoad(Link lnk)
Returns the load calculated for the given link. |
TmLoadComputer |
getLoadComputer()
Returns the associated routing strategy. |
java.lang.String |
getShortName()
Return a string representing the parameters in short. |
TrafficMatrix |
getTrafficMatrix()
Returns the traffic matrix. |
double[] |
getUtilization()
Returns a vector that represent links utilization. |
double |
getUtilization(Link lnk)
Returns the utilization calculated for the given link. |
int |
hashCode()
|
boolean |
isConsistent()
return true if the object is consistent (not yet destroyed). |
boolean |
isSetId()
returns true if the id has been set |
void |
removeListener(LinkLoadComputerListener listener)
Remove a listener. |
void |
setId(java.lang.String id)
Sets the id of the LinkLoadComputer |
void |
unsetId()
unsets the id |
Method Detail |
---|
void addListener(LinkLoadComputerListener listener)
listener
- void removeListener(LinkLoadComputerListener listener)
listener
- java.lang.String getId() throws LinkLoadComputerIdException
LinkLoadComputerIdException
- id the Id was not setvoid setId(java.lang.String id) throws LinkLoadComputerIdException
id
-
LinkLoadComputerIdException
- if the id was already setboolean isSetId()
void unsetId()
double[] getLoad() throws DataConsistencyException, NoRouteToHostException, RoutingException
DataConsistencyException
NoRouteToHostException
RoutingException
double getLoad(Link lnk) throws LinkNotFoundException, DataConsistencyException, NoRouteToHostException, RoutingException
lnk
-
LinkNotFoundException
DataConsistencyException
NoRouteToHostException
RoutingException
double[] getUtilization() throws DataConsistencyException, NoRouteToHostException, RoutingException
DataConsistencyException
NoRouteToHostException
RoutingException
double getUtilization(Link lnk) throws LinkNotFoundException, DataConsistencyException, NoRouteToHostException, RoutingException
lnk
-
LinkNotFoundException
DataConsistencyException
NoRouteToHostException
RoutingException
Domain getDomain()
TmLoadComputer getLoadComputer()
TrafficMatrix getTrafficMatrix()
void destroy()
boolean isConsistent()
java.lang.String getShortName()
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |