|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.trafficMatrix.facade.TrafficMatrixManagerObserver
public class TrafficMatrixManagerObserver
This class is used to notify all listeners of changes in the TrafficMatrixManager (i.e. trafficMatrix added, traffic matrix removed, change of default traffic matrix)
Creation date: 9 janv. 2006
TrafficMatrixManagerListener,
TrafficMatrixManager| Constructor Summary | |
|---|---|
TrafficMatrixManagerObserver()
|
|
| Method Summary | |
|---|---|
void |
addListener(TrafficMatrixManagerListener l)
Add a listener to the list of listeners. |
int |
getNbListeners()
return the number of registered listeners |
protected void |
notifyAddTrafficMatrix(TrafficMatrix tm,
int tmId)
A TrafficMatrix has been loaded |
protected void |
notifyChangeDefaultTrafficMatrix(int asId,
TrafficMatrix tm)
The default traffic matrix has changed for the domain given by its asId. |
protected void |
notifyRemoveTrafficMatrix(TrafficMatrix tm,
int tmId)
A traffic matrix has been removed |
void |
removeListener(TrafficMatrixManagerListener l)
Remove a listener from the list of registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrafficMatrixManagerObserver()
| Method Detail |
|---|
public void addListener(TrafficMatrixManagerListener l)
l - the listener to addpublic void removeListener(TrafficMatrixManagerListener l)
l - public int getNbListeners()
protected void notifyAddTrafficMatrix(TrafficMatrix tm,
int tmId)
tm - the new loaded traffic matrixtmId - the new loaded traffic matrix id
protected void notifyRemoveTrafficMatrix(TrafficMatrix tm,
int tmId)
tm - a reference to the removed traffic Matrix
protected void notifyChangeDefaultTrafficMatrix(int asId,
TrafficMatrix tm)
asId - Asid of the domain for which the traffic matrix has changedtm - The new default traffic matrix for the domain
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||