Coalevo Logo

net.coalevo.bank.model
Interface Account

All Superinterfaces:
Identifiable

public interface Account
extends Identifiable

Defines the interface for an account.

Version:
1.0.0 (10/02/2009)
Author:
Dieter Wimberger (wimpi)

Method Summary
 long deposit(long l)
          Deposits into this account.
 AgentIdentifier getAgentIdentifier()
          Returns the AgentIdentifier of the agent that this account is bound to.
 long getBalance()
          Returns the balance of this account.
 long retrieve(long l)
          Returns the value of this account.
 
Methods inherited from interface net.coalevo.foundation.model.Identifiable
getIdentifier
 

Method Detail

getAgentIdentifier

AgentIdentifier getAgentIdentifier()
Returns the AgentIdentifier of the agent that this account is bound to.

Returns:
an AgentIdentifier instance.

deposit

long deposit(long l)
Deposits into this account.

Parameters:
l - the increment to be added to the account
Returns:
the state of the counter after the increment.

retrieve

long retrieve(long l)
Returns the value of this account.

Parameters:
l - the amount to be removed from the account.

getBalance

long getBalance()
Returns the balance of this account.

Returns:
the balance of this account.

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)