opBancaires
Class CompteRemunereAbstract

java.lang.Object
  extended by opBancaires.CompteAbstract
      extended by opBancaires.CompteRemunereAbstract
Direct Known Subclasses:
CompteEpargne

public abstract class CompteRemunereAbstract
extends CompteAbstract

Author:
Creation 17 Oct 2012

Field Summary
private  double plafond
          Montant du plafond associé au compte.
private  double taux
          Taux de rémunération.
 
Constructor Summary
protected CompteRemunereAbstract(Client titulaire)
          Constructor.
 
Method Summary
 double crediter(double montant)
          Mise du montant spécifié au crédit du compte.
 double getPlafond()
           
 double getTaux()
           
 void setPlafond(double plafond)
           
 void setTaux(double taux)
           
 java.lang.String toString()
           
 
Methods inherited from class opBancaires.CompteAbstract
crediter, debiter, debiter, estDebitableDe, getHistoriqueOperations, getLastId, getLastIdOperation, getLibelle, getNewIdOperation, getNumId, getSolde, getTitulaire, setLibelle, setNumId, setSolde, toStringOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

taux

private double taux
Taux de rémunération.


plafond

private double plafond
Montant du plafond associé au compte. Le plafond est le solde maximum autorisé sur le compte.

Constructor Detail

CompteRemunereAbstract

protected CompteRemunereAbstract(Client titulaire)
Constructor.

Parameters:
titulaire -
Method Detail

getTaux

public double getTaux()
Returns:
the taux

setTaux

public void setTaux(double taux)
Parameters:
taux - the taux to set

getPlafond

public double getPlafond()
Returns:
the plafond

setPlafond

public void setPlafond(double plafond)
Parameters:
plafond - the plafond to set

crediter

public double crediter(double montant)
                throws OperationBancaireException
Description copied from class: CompteAbstract
Mise du montant spécifié au crédit du compte. Si le crédit est possible alors le solde est modifié directement, et une opération de succès est créée. Si le crédit n'est pas possible, alors le solde reste inchangé, et une opération d'échec est créée.

Specified by:
crediter in class CompteAbstract
Parameters:
montant - Le montant à créditer.
Returns:
la valeur du novueau solde.
Throws:
OperationBancaireException

toString

public java.lang.String toString()
Overrides:
toString in class CompteAbstract