se.kth.leiflindback.distdb.db
Class DepositCommand

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

public class DepositCommand
extends java.lang.Object
implements Command

This Command implementation is used to deposit money.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
DepositCommand(float amount)
          Constructs an instance that will deposit the specified amount to 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

DepositCommand

public DepositCommand(float amount)
Constructs an instance that will deposit the specified amount to all accounts it is sent to.

Parameters:
amount - The amount to deposit.
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,