se.kth.leiflindback.distdb.db
Interface Command

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DepositCommand, InterestCommand, WithdrawCommand

public interface Command
extends java.io.Serializable

All commands sent between nodes are implementations of this interface. This is the command (GoF) pattern.


Field Summary
static long serialVersionUID
           
 
Method Summary
 void execute(Account account)
          Executes the task of the command implementation.
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

execute

void execute(Account account)
Executes the task of the command implementation.

Parameters:
account - The account on wiich to invoke the command,