Created by smaniotto on 16/03/18. Classe Seance définissant les caractéristiques et le comportement d'une séance.
com.ttpa.iris.ttpamobile.Seance.Seance | ( | int | frequence, |
int | nombreBalles, | ||
String | effet, | ||
int | intensiteEffet, | ||
int | puissance, | ||
int | rotation | ||
) |
Méthode Seance constructeur de la classe Seance.
frequence | étant la fréquence d'envoi des balles (en balles/minute) de la séance. |
nombreBalles | étant le nombre de balles à envoyer. |
effet | étant l'effet appliqué aux balles tout au long de la séance. |
puissance | étant la puissance de la balle envoyée. |
rotation | étant la rotation du lanceur. |
Références com.ttpa.iris.ttpamobile.Seance.dateDebut, com.ttpa.iris.ttpamobile.Seance.dateFin, com.ttpa.iris.ttpamobile.Seance.effet, com.ttpa.iris.ttpamobile.Seance.frequence, com.ttpa.iris.ttpamobile.Seance.horodaterBD(), com.ttpa.iris.ttpamobile.Seance.idJoueur, com.ttpa.iris.ttpamobile.Seance.intensiteEffet, com.ttpa.iris.ttpamobile.Seance.nombreBalles, com.ttpa.iris.ttpamobile.Seance.puissance, com.ttpa.iris.ttpamobile.Seance.rotation, com.ttpa.iris.ttpamobile.Seance.tauxReussite, com.ttpa.iris.ttpamobile.Seance.zoneObjectif, et com.ttpa.iris.ttpamobile.Seance.zoneRobot.
{ this.frequence = frequence; this.nombreBalles = nombreBalles; this.effet = effet; this.intensiteEffet = intensiteEffet; this.puissance = puissance; this.rotation = rotation; this.zoneObjectif = -1; this.zoneRobot = -1; this.tauxReussite = 0; this.dateDebut = horodaterBD(); this.dateFin = horodaterBD(); this.idJoueur = -1; }
String com.ttpa.iris.ttpamobile.Seance.getDateDebut | ( | ) |
Références com.ttpa.iris.ttpamobile.Seance.dateDebut.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return dateDebut; }
String com.ttpa.iris.ttpamobile.Seance.getDateFin | ( | ) |
Références com.ttpa.iris.ttpamobile.Seance.dateFin.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return dateFin; }
String com.ttpa.iris.ttpamobile.Seance.getEffet | ( | ) |
Méthode getEffet accesseur de l'attribut effet.
Références com.ttpa.iris.ttpamobile.Seance.effet.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return effet; }
Méthode getFrequence accesseur de l'attribut frequence.
Références com.ttpa.iris.ttpamobile.Seance.frequence.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return frequence; }
Méthode getId accesseur de l'attribut id.
Références com.ttpa.iris.ttpamobile.Seance.id.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance().
{ return id; }
Références com.ttpa.iris.ttpamobile.Seance.idJoueur.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return idJoueur; }
final int com.ttpa.iris.ttpamobile.Seance.getIntensiteEffet | ( | ) | [package] |
Méthode getIntensiteEffet accesseur de l'attribut intensiteEffet.
Références com.ttpa.iris.ttpamobile.Seance.intensiteEffet.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return intensiteEffet; }
Méthode getNombreBalles accesseur de l'attribut nombreBalles.
Références com.ttpa.iris.ttpamobile.Seance.nombreBalles.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance(), com.ttpa.iris.ttpamobile.IHMEcranPrincipal.calculerReussiteSeance(), com.ttpa.iris.ttpamobile.IHMEcranPrincipal.incrementerBallesJouees(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return nombreBalles; }
Références com.ttpa.iris.ttpamobile.Seance.puissance.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return puissance; }
Références com.ttpa.iris.ttpamobile.Seance.rotation.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return rotation; }
Méthode getTauxReussite accesseur de l'attribut tauxReussite.
Références com.ttpa.iris.ttpamobile.Seance.tauxReussite.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return tauxReussite; }
Références com.ttpa.iris.ttpamobile.Seance.zoneObjectif.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherBoiteDialogueDetailsSeance(), com.ttpa.iris.ttpamobile.IHMEcranPrincipal.calculerReussiteSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return zoneObjectif; }
Références com.ttpa.iris.ttpamobile.Seance.zoneRobot.
Référencé par com.ttpa.iris.ttpamobile.IHMHistoriqueSeances.afficherBoiteDialogueDetailsSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.insererSeance().
{ return zoneRobot; }
String com.ttpa.iris.ttpamobile.Seance.horodaterBD | ( | ) |
Référencé par com.ttpa.iris.ttpamobile.Seance.Seance().
{ Calendar calendar = Calendar.getInstance(); // Format SQLite : "2018-04-28 14:11:52" SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); final String strDate = simpleDateFormat.format(calendar.getTime()); return strDate; }
void com.ttpa.iris.ttpamobile.Seance.setDateDebut | ( | String | dateDebut | ) |
Références com.ttpa.iris.ttpamobile.Seance.dateDebut.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setDateFin | ( | String | dateFin | ) |
Références com.ttpa.iris.ttpamobile.Seance.dateFin.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setEffet | ( | String | effet | ) |
Méthode setEffet mutateur de l'attribut effet.
effet | étant l'effet à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.effet.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setFrequence | ( | int | frequence | ) |
Méthode setFrequence mutateur de l'attribut frequence.
frequence | étant la fréquence à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.frequence.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setId | ( | int | id | ) |
Méthode setId mutateur de l'attribut id.
id | étant l'id à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.id.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
{ this.id = id; }
void com.ttpa.iris.ttpamobile.Seance.setIdJoueur | ( | int | idJoueur | ) |
void com.ttpa.iris.ttpamobile.Seance.setIntensiteEffet | ( | int | intensiteEffet | ) |
Méthode setIntensiteEffet mutateur de l'attribut intensiteEffet.
intensiteEffet | étant l'intensité de l'effet à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.intensiteEffet.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
{ this.intensiteEffet = intensiteEffet; }
void com.ttpa.iris.ttpamobile.Seance.setNombreBalles | ( | int | nombreBalles | ) |
Méthode setNombreBalles mutateur de l'attribut nombreBalles.
nombreBalles | étant le nombre de balles à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.nombreBalles.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
{ this.nombreBalles = nombreBalles; }
void com.ttpa.iris.ttpamobile.Seance.setPuissance | ( | int | puissance | ) |
Références com.ttpa.iris.ttpamobile.Seance.puissance.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setRotation | ( | int | rotation | ) |
Références com.ttpa.iris.ttpamobile.Seance.rotation.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
void com.ttpa.iris.ttpamobile.Seance.setTauxReussite | ( | float | tauxReussite | ) |
Méthode setTauxReussite mutateur de l'attribut tauxReussite.
tauxReussite | étant le tausx de réussite à affecter. |
Références com.ttpa.iris.ttpamobile.Seance.tauxReussite.
Référencé par com.ttpa.iris.ttpamobile.IHMEcranPrincipal.calculerReussiteSeance(), et com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance().
{ this.tauxReussite = tauxReussite; }
void com.ttpa.iris.ttpamobile.Seance.setZoneObjectif | ( | int | zoneObjectif | ) |
Références com.ttpa.iris.ttpamobile.Seance.zoneObjectif.
Référencé par com.ttpa.iris.ttpamobile.ServeurBDD.cursorToSeance(), et com.ttpa.iris.ttpamobile.IHMEcranPrincipal.demarrerSeance().
{ this.zoneObjectif = zoneObjectif; }
void com.ttpa.iris.ttpamobile.Seance.setZoneRobot | ( | int | zoneRobot | ) |
String com.ttpa.iris.ttpamobile.Seance.toString | ( | ) |
Méthode toString permettant la visualisation des caractéristiques de la séance.
Références com.ttpa.iris.ttpamobile.Seance.dateDebut, com.ttpa.iris.ttpamobile.Seance.dateFin, com.ttpa.iris.ttpamobile.Seance.effet, com.ttpa.iris.ttpamobile.Seance.frequence, com.ttpa.iris.ttpamobile.Seance.idJoueur, com.ttpa.iris.ttpamobile.Seance.intensiteEffet, com.ttpa.iris.ttpamobile.Seance.nombreBalles, com.ttpa.iris.ttpamobile.Seance.puissance, com.ttpa.iris.ttpamobile.Seance.rotation, com.ttpa.iris.ttpamobile.Seance.tauxReussite, com.ttpa.iris.ttpamobile.Seance.zoneObjectif, et com.ttpa.iris.ttpamobile.Seance.zoneRobot.
{ return "Frequence : " + frequence + "\nNombre balles : " + nombreBalles + "\nEffet : " + effet + "\nIntensité effet : " + intensiteEffet + "\nTaux réussite : " + tauxReussite + "\nPuissance : " + puissance + "\nRotation robot : " + rotation + "\nZone objectif : " + zoneObjectif + "\nZone robot : " + zoneRobot + "\nDate début : " + dateDebut + "\nDate fin : " + dateFin + "\nID joueur : " + idJoueur; }
String com.ttpa.iris.ttpamobile.Seance.dateDebut [private] |
String com.ttpa.iris.ttpamobile.Seance.dateFin [private] |
String com.ttpa.iris.ttpamobile.Seance.effet [private] |
int com.ttpa.iris.ttpamobile.Seance.frequence [private] |
int com.ttpa.iris.ttpamobile.Seance.id [private] |
Référencé par com.ttpa.iris.ttpamobile.Seance.getId(), et com.ttpa.iris.ttpamobile.Seance.setId().
int com.ttpa.iris.ttpamobile.Seance.idJoueur [private] |
int com.ttpa.iris.ttpamobile.Seance.intensiteEffet [private] |
int com.ttpa.iris.ttpamobile.Seance.nombreBalles [private] |
int com.ttpa.iris.ttpamobile.Seance.puissance [private] |
int com.ttpa.iris.ttpamobile.Seance.rotation [private] |
float com.ttpa.iris.ttpamobile.Seance.tauxReussite [private] |
int com.ttpa.iris.ttpamobile.Seance.zoneObjectif [private] |
int com.ttpa.iris.ttpamobile.Seance.zoneRobot [private] |