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

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiComponents.AlgorithmHandler
All Implemented Interfaces:
RepositoryManagerListener

public class AlgorithmHandler
extends java.lang.Object
implements RepositoryManagerListener

Class to display and manage the started algorithm. Singleton class, a reference to this class can be obtained by the static method getinstance().

Creation date: 6 d�c. 2005

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
static AlgorithmHandler getInstance()
          return the instance of this class
 void hide()
          Hide the panel and stop listenning to RepositoryManager
 void show()
          show the dialog containing all the started algorithms
 void startAlgoEvent(TotemAlgorithm algo)
          New algorithm started
 void stopAlgoEvent(TotemAlgorithm algo)
          Algo stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

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

Returns:
the instance of this class

show

public void show()
show the dialog containing all the started algorithms


hide

public void hide()
Hide the panel and stop listenning to RepositoryManager


startAlgoEvent

public void startAlgoEvent(TotemAlgorithm algo)
Description copied from interface: RepositoryManagerListener
New algorithm started

Specified by:
startAlgoEvent in interface RepositoryManagerListener
Parameters:
algo - the started algorithm

stopAlgoEvent

public void stopAlgoEvent(TotemAlgorithm algo)
Description copied from interface: RepositoryManagerListener
Algo stopped

Specified by:
stopAlgoEvent in interface RepositoryManagerListener
Parameters:
algo - A reference to the stopped algo


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