|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectopBancaires.CompteAbstract
public abstract class CompteAbstract
Constructor Summary | |
---|---|
protected |
CompteAbstract(Client titulaire)
Constructeur. |
Method Summary | |
---|---|
abstract double |
crediter(double montant)
Mise du montant spécifié au crédit du compte. |
abstract double |
crediter(double montant,
Operation op)
Mise du montant spécifié au crédit du compte. |
double |
debiter(double montant)
Mise du montant spécifié au débit du compte. |
double |
debiter(double montant,
Operation op)
Mise du montant spécifié au débit du compte. |
boolean |
estDebitableDe(double montant)
Teste si le compte peut être débité du montant précisé en paramètre. |
java.util.ArrayList<Operation> |
getHistoriqueOperations()
|
static int |
getLastId()
|
int |
getLastIdOperation()
|
java.lang.String |
getLibelle()
|
int |
getNewIdOperation()
Retourne un nouvel identifiant d'opération pour ce compte, et maintien à jour la valeur du dernier identifiant utilisé. |
int |
getNumId()
|
double |
getSolde()
|
Client |
getTitulaire()
|
void |
setLibelle(java.lang.String libelle)
|
void |
setNumId(int numId)
|
protected void |
setSolde(double solde)
|
java.lang.String |
toString()
|
java.lang.String |
toStringOperations()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CompteAbstract(Client titulaire)
titulaire
- Method Detail |
---|
public abstract double crediter(double montant) throws OperationBancaireException
montant
- Le montant à créditer.
MontantException
OperationBancaireException
public abstract double crediter(double montant, Operation op) throws OperationBancaireException
montant
- op
-
OperationBancaireException
public double debiter(double montant) throws OperationBancaireException
montant
- Le montant à débiter.
OperationBancaireException
public double debiter(double montant, Operation op) throws OperationBancaireException
montant
- op
-
OperationBancaireException
public boolean estDebitableDe(double montant)
montant
-
true
si le compte peut être débité du montant
précisé en paramètre.public int getNewIdOperation()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringOperations()
public double getSolde()
protected void setSolde(double solde)
solde
- public int getNumId()
public void setNumId(int numId)
numId
- the numId to setpublic java.lang.String getLibelle()
public void setLibelle(java.lang.String libelle)
libelle
- the libelle to setpublic static int getLastId()
public Client getTitulaire()
public int getLastIdOperation()
public java.util.ArrayList<Operation> getHistoriqueOperations()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |