|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.impl.DomainChangeObserverImpl
public class DomainChangeObserverImpl
The DomainChangeObserverImpl is associated to a Domain and notify to all listeners the Domain changes.
Creation date: 12-Jan-2005 18:12:00
Field Summary |
---|
Fields inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.DomainChangeObserver |
---|
HIGHEST_PRIORITY, LOWEST_PRIORITY |
Constructor Summary | |
---|---|
DomainChangeObserverImpl(Domain domain)
|
Method Summary | |
---|---|
void |
addListener(DomainChangeListener l)
Adds a listener with the lowest priority. |
void |
addListener(DomainChangeListener l,
int priority)
Adds a listener with the specified priority. |
int |
getNbListeners()
return the total number of listeners |
int |
getNbListeners(int priority)
return the number of listeners for all priorites inferior or equal to priority |
void |
notifyAddLink(Link link)
Notify link add |
void |
notifyAddLsp(Lsp lsp)
Notify LSP add |
void |
notifyAddNode(Node node)
Notify node add |
void |
notifyLinkBandwidthChange(Link link)
Notify link bandwidth change |
void |
notifyLinkDelayChange(Link link)
Notify link delay change |
void |
notifyLinkMetricChange(Link link)
Notify link metric change |
void |
notifyLinkReservedBandwidthChange(Link link)
Notify link reserved bandwidth change |
void |
notifyLinkStatusChange(Link link)
Notify link status change |
void |
notifyLinkTeMetricChange(Link link)
Notify link TE metric change |
void |
notifyLspReservationChange(Lsp lsp)
Notify LSP reservation change |
void |
notifyLspStatusChange(Lsp lsp)
Notify a change in the status of the lsp. |
void |
notifyLspWorkingPathChange(Lsp lsp)
Notify a change in the working path |
void |
notifyNodeLocationChange(Node node)
Notify a node location change |
void |
notifyNodeStatusChange(Node node)
Notify node status change |
void |
notifyRemoveLink(Link link)
Notify link remove |
void |
notifyRemoveLsp(Lsp lsp)
Notify LSP remove |
void |
notifyRemoveNode(Node node)
Notify node remove |
void |
removeAllListeners()
Removes all listeners. |
void |
removeListener(DomainChangeListener l)
Removes the listener l . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomainChangeObserverImpl(Domain domain)
Method Detail |
---|
public void addListener(DomainChangeListener l)
DomainChangeObserver
l
is already registered.
addListener
in interface DomainChangeObserver
l
- The listener to add.public void addListener(DomainChangeListener l, int priority) throws DomainChangeObserverException
DomainChangeObserver
l
is already registered.
addListener
in interface DomainChangeObserver
l
- The listener to add.priority
- The priority of the listener. This must be greater or
equal than LOWEST_PRIORITY
and lower or equal than
HIGHEST_PRIORITY
.
DomainChangeObserverException
- If priority
is
invalid.public void removeListener(DomainChangeListener l)
DomainChangeObserver
l
. This method does nothing if
l
is not registered.
removeListener
in interface DomainChangeObserver
l
- The listener to remove.public void removeAllListeners()
DomainChangeObserver
removeAllListeners
in interface DomainChangeObserver
public int getNbListeners(int priority)
DomainChangeObserver
priority
getNbListeners
in interface DomainChangeObserver
public int getNbListeners()
DomainChangeObserver
getNbListeners
in interface DomainChangeObserver
public void notifyAddNode(Node node)
notifyAddNode
in interface DomainChangeObserver
node
- public void notifyRemoveNode(Node node)
notifyRemoveNode
in interface DomainChangeObserver
node
- public void notifyNodeStatusChange(Node node)
notifyNodeStatusChange
in interface DomainChangeObserver
node
- public void notifyNodeLocationChange(Node node)
DomainChangeObserver
notifyNodeLocationChange
in interface DomainChangeObserver
public void notifyAddLink(Link link)
notifyAddLink
in interface DomainChangeObserver
link
- public void notifyRemoveLink(Link link)
notifyRemoveLink
in interface DomainChangeObserver
link
- public void notifyLinkStatusChange(Link link)
notifyLinkStatusChange
in interface DomainChangeObserver
link
- public void notifyLinkMetricChange(Link link)
notifyLinkMetricChange
in interface DomainChangeObserver
link
- public void notifyLinkTeMetricChange(Link link)
notifyLinkTeMetricChange
in interface DomainChangeObserver
link
- public void notifyLinkBandwidthChange(Link link)
notifyLinkBandwidthChange
in interface DomainChangeObserver
link
- public void notifyLinkReservedBandwidthChange(Link link)
notifyLinkReservedBandwidthChange
in interface DomainChangeObserver
link
- public void notifyLinkDelayChange(Link link)
notifyLinkDelayChange
in interface DomainChangeObserver
link
- public void notifyAddLsp(Lsp lsp)
notifyAddLsp
in interface DomainChangeObserver
lsp
- public void notifyRemoveLsp(Lsp lsp)
notifyRemoveLsp
in interface DomainChangeObserver
lsp
- public void notifyLspReservationChange(Lsp lsp)
notifyLspReservationChange
in interface DomainChangeObserver
lsp
- public void notifyLspStatusChange(Lsp lsp)
DomainChangeObserver
notifyLspStatusChange
in interface DomainChangeObserver
public void notifyLspWorkingPathChange(Lsp lsp)
notifyLspWorkingPathChange
in interface DomainChangeObserver
lsp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |