se.kth.leiflindback.distdb.db
Class WithdrawCommand

java.lang.Object
  extended by se.kth.leiflindback.distdb.db.WithdrawCommand
All Implemented Interfaces:
java.io.Serializable, Command

public class WithdrawCommand
extends java.lang.Object
implements Command

This Command implementation is used to withdraw money.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
WithdrawCommand(float amount)
          Constructs an instance that will withdraw the specified amount from all accounts it is sent to.
 
Method Summary
 void execute(Account account)
          Executes the task of the command implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

WithdrawCommand

public WithdrawCommand(float amount)
Constructs an instance that will withdraw the specified amount from all accounts it is sent to.

Parameters:
amount - The amount to withdraw.
Method Detail

execute

public void execute(Account account)
Description copied from interface: Command
Executes the task of the command implementation.

Specified by:
execute in interface Command
Parameters:
account - The account on wiich to invoke the command,