be.ac.ulg.montefiore.run.totem.repository.model
Class SetLspReservationAction

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.repository.model.SetLspReservationAction
All Implemented Interfaces:
TotemAction

public class SetLspReservationAction
extends java.lang.Object
implements TotemAction

This action can be used to set the reservation of an LSP.

Creation date: 18-mai-2005

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

Constructor Summary
SetLspReservationAction(Lsp lsp, float reservation)
          Creates a new SetLspReservationAction action.
 
Method Summary
 void execute()
          Sets the reservation of the LSP.
 Lsp getLsp()
          Returns the LSP whose you want to set the reservation.
 float getReservation()
          Returns the new reservation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetLspReservationAction

public SetLspReservationAction(Lsp lsp,
                               float reservation)
Creates a new SetLspReservationAction action.

Parameters:
lsp - The LSP whose you want to set the reservation.
reservation - The new reservation of the LSP.
Method Detail

execute

public void execute()
             throws TotemActionExecutionException
Sets the reservation of the LSP.

Specified by:
execute in interface TotemAction
Throws:
TotemActionExecutionException

getLsp

public Lsp getLsp()
Returns the LSP whose you want to set the reservation.

Returns:
The LSP whose you want to set the reservation.

getReservation

public float getReservation()
Returns the new reservation.

Returns:
The new reservation.


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