|
||||||||||
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 for a given domain, given some
traffic matrices. The calculated data are in the form of a LoadData
object.
The LinkLoadComputer can listen to events (from the domain or from the traffic matrices) to maintain the correct state
(up-to-date, outdated) of its data. The data can be updated by calling update()
or recompute()
.
Some listeners can also be attached to the LinkLoadComputer, signaling a change in the validity of the data
(returned by getData()
.
Creation date: 10 mars 2006
Method Summary | |
---|---|
void |
addListener(LinkLoadComputerListener listener)
Add a listener. |
void |
destroy()
Free resources associated with the object and stop listening to events. |
LoadData |
detachData()
Returns the data used by the link load computer and do not use it internally any more. |
boolean |
equals(java.lang.Object o)
returns true if the LinkLoadComputer uses the same parameters as the object o. |
LoadData |
getData()
Returns a view of the data. |
Domain |
getDomain()
Returns the domain associated. |
java.lang.String |
getShortName()
Return a string representing the parameters in short. |
java.util.List<TrafficMatrix> |
getTrafficMatrices()
TODO: maybe change this to a set Returns the traffic matrix. |
int |
hashCode()
|
void |
invalidate()
Call this method to signal the llc that its data are no more up-to-date |
boolean |
isUpToDate()
Returns true if the internal data are up-to-date |
void |
recompute()
Recomputes the load data. |
void |
removeListener(LinkLoadComputerListener listener)
Remove a listener. |
void |
startListening()
Start listening to changes to keep data up-to-date |
void |
stopListening()
Stop listening to changes in the data |
void |
update()
Updates the data if the data is outdated. |
Method Detail |
---|
void addListener(LinkLoadComputerListener listener)
listener
- void removeListener(LinkLoadComputerListener listener)
listener
- boolean isUpToDate()
void recompute()
void update()
void invalidate()
Domain getDomain()
java.util.List<TrafficMatrix> getTrafficMatrices()
void destroy()
void startListening()
void stopListening()
java.lang.String getShortName()
LoadData getData()
LoadData detachData()
recompute()
.
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
-
int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |