be.ac.ulg.montefiore.run.totem.visualtopo.graph
Class UpDownLinkColorShower

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.graph.UpDownLinkColorShower
All Implemented Interfaces:
LinkColorShower

public class UpDownLinkColorShower
extends java.lang.Object
implements LinkColorShower

Show the link status.

Creation date: 17 mars 2006

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

Constructor Summary
UpDownLinkColorShower()
           
 
Method Summary
 float getColorValue(Link lnk)
          Returns a float value associated to the link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpDownLinkColorShower

public UpDownLinkColorShower()
Method Detail

getColorValue

public float getColorValue(Link lnk)
Description copied from interface: LinkColorShower
Returns a float value associated to the link.

Specified by:
getColorValue in interface LinkColorShower
Parameters:
lnk -
Returns:
1 if link is up, 0 if link is down, -1 if link is null


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