be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents
Class RMguiMatrixHandler

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.RMguiMatrixHandler
All Implemented Interfaces:
InterDomainManagerListener, TrafficMatrixManagerListener

public class RMguiMatrixHandler
extends java.lang.Object
implements TrafficMatrixManagerListener, InterDomainManagerListener

This class is responsible for managing the allready loaded traffic matrix (ie. select the active matrix, remove unnecessary ones, ... )

Author:
Olivier Materne (O.Materne@student.ulg.ac.be)

Method Summary
 void addDomainEvent(Domain domain)
          A new domain added.
 void addTrafficMatrixEvent(TrafficMatrix tm, int tmId)
          A TrafficMatrix has been loaded
 void changeDefaultDomainEvent(Domain domain)
          The default domain has changed for the specified domain.
 void changeDefaultTrafficMatrixEvent(int asId, TrafficMatrix tm)
          The default traffic matrix has changed for the domain given by its asId.
 void createPanel()
          create the dialog
 void editTrafficMatrix(TrafficMatrix tm)
           
static RMguiMatrixHandler getInstance()
          return the instance of this class
 void hide()
          Free the dialog and stop reacting to change
 void removeDomainEvent(Domain domain)
          A domain removed.
 void removeTrafficMatrixEvent(TrafficMatrix tm, int tmId)
          A traffic matrix has been removed
 void show()
          Display a dialog that lists the managed matrices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RMguiMatrixHandler getInstance()
return the instance of this class

Returns:
the instance of this class

show

public void show()
Display a dialog that lists the managed matrices


hide

public void hide()
Free the dialog and stop reacting to change


createPanel

public void createPanel()
create the dialog


addTrafficMatrixEvent

public void addTrafficMatrixEvent(TrafficMatrix tm,
                                  int tmId)
Description copied from interface: TrafficMatrixManagerListener
A TrafficMatrix has been loaded

Specified by:
addTrafficMatrixEvent in interface TrafficMatrixManagerListener
Parameters:
tm - the new loaded traffic matrix
tmId - the id of the newly loaded matrix

removeTrafficMatrixEvent

public void removeTrafficMatrixEvent(TrafficMatrix tm,
                                     int tmId)
Description copied from interface: TrafficMatrixManagerListener
A traffic matrix has been removed

Specified by:
removeTrafficMatrixEvent in interface TrafficMatrixManagerListener
Parameters:
tm - a reference to the removed traffic Matrix

changeDefaultTrafficMatrixEvent

public void changeDefaultTrafficMatrixEvent(int asId,
                                            TrafficMatrix tm)
Description copied from interface: TrafficMatrixManagerListener
The default traffic matrix has changed for the domain given by its asId.

Specified by:
changeDefaultTrafficMatrixEvent in interface TrafficMatrixManagerListener
Parameters:
asId - Asid of the domain for which the traffic matrix has changed
tm - The new default traffic matrix for the domain

addDomainEvent

public void addDomainEvent(Domain domain)
Description copied from interface: InterDomainManagerListener
A new domain added.

Specified by:
addDomainEvent in interface InterDomainManagerListener
Parameters:
domain - The new domain.

removeDomainEvent

public void removeDomainEvent(Domain domain)
Description copied from interface: InterDomainManagerListener
A domain removed.

Specified by:
removeDomainEvent in interface InterDomainManagerListener
Parameters:
domain - A reference to the domain removed.

changeDefaultDomainEvent

public void changeDefaultDomainEvent(Domain domain)
Description copied from interface: InterDomainManagerListener
The default domain has changed for the specified domain.

Specified by:
changeDefaultDomainEvent in interface InterDomainManagerListener
Parameters:
domain - the new default domain.

editTrafficMatrix

public void editTrafficMatrix(TrafficMatrix tm)


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.