be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.action.impl
Class ChangeLinkCapacityWIAction

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.action.impl.ChangeLinkCapacityWIAction
All Implemented Interfaces:
WIAction

public class ChangeLinkCapacityWIAction
extends java.lang.Object
implements WIAction

When executed, this action change the capacity of a link and possibly of the reverse link if desired.

Creation date: 30/05/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
See Also:
ChangeLinkCapacityWIActionPanel

Constructor Summary
ChangeLinkCapacityWIAction(Domain domain, Link link, float bw)
           
ChangeLinkCapacityWIAction(Domain domain, Link link, float bw, boolean reverseLink)
           
 
Method Summary
 void execute()
          Execute the action.
 java.lang.String getName()
          Return a name representing the action and its parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeLinkCapacityWIAction

public ChangeLinkCapacityWIAction(Domain domain,
                                  Link link,
                                  float bw)
                           throws LinkNotFoundException
Throws:
LinkNotFoundException

ChangeLinkCapacityWIAction

public ChangeLinkCapacityWIAction(Domain domain,
                                  Link link,
                                  float bw,
                                  boolean reverseLink)
                           throws LinkNotFoundException
Throws:
LinkNotFoundException
Method Detail

execute

public void execute()
             throws ActionExecutionException
Description copied from interface: WIAction
Execute the action.

Specified by:
execute in interface WIAction
Throws:
ActionExecutionException

getName

public java.lang.String getName()
Description copied from interface: WIAction
Return a name representing the action and its parameters

Specified by:
getName in interface WIAction
Returns:


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