|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsalomeTMF_plug.jasperreport.BIData
public class BIData
Classe contenant des méthodes d'extraction de données depuis les bases de données de Salomé et Mantis ainsi que des méthodes de création de diagramme avec l'API JFreeChart
Nested Class Summary | |
---|---|
static class |
BIData.Statistique
Classe utilisée pour calculer la satisfaction des exigences |
Constructor Summary | |
---|---|
BIData()
|
Method Summary | |
---|---|
static org.jfree.data.time.TimeSeriesCollection |
createDataSetForBugTrackingTimeSeriesChart(java.util.Map<org.objectweb.salome_tmf.data.Environment,java.util.Map<java.sql.Date,int[][]>> dataChart,
java.util.Map<java.lang.Integer,java.lang.String> severityNameMap)
Méthode permettant de calculer les séries pour le suivi des anomalies dans le temps pour un TimeSeriesChart |
static org.jfree.data.time.TimeSeriesCollection |
createDataSetForExecutionTrackingTimeSeriesChart(java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<java.sql.Date,java.lang.Integer>> chartData)
|
static org.jfree.chart.JFreeChart |
createPieChart3D(java.util.LinkedHashMap<java.lang.String,java.lang.String> chartTable,
java.lang.String title)
Méthode permettant de créer un pieChart3D (Camembert) |
static org.jfree.chart.JFreeChart |
createTimeSeriesChart(org.jfree.data.time.TimeSeriesCollection collection,
java.lang.String title,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel,
boolean legend,
boolean tooltip,
boolean url)
Méthode permettant de créer un TimeSeriesChart |
static int |
findBugIdInAttachement(org.objectweb.salome_tmf.data.Attachment attachment)
Méthode d'extraction de l'id d'un bug à patir d'un attachement |
static java.util.Vector<java.lang.String> |
getAllBugId(org.objectweb.salome_tmf.data.Campaign pCamp)
Méthode qui retourne la liste des identifiants des anomalies pour une campagne donnée |
static java.util.HashSet<ReqWrapper> |
getAllNonSatisfiedRequirementFromCampain(org.objectweb.salome_tmf.data.Campaign camp)
|
static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<DefectWrapper>> |
getBugIdByEnvironment(org.objectweb.salome_tmf.data.Project proj)
|
static DefectWrapper |
getBugIdFromAttachment(org.objectweb.salome_tmf.api.data.UrlAttachementWrapper urlAttachmentWrapper)
|
static java.util.ArrayList<BugStatusCampaignBean> |
getBugStatusCampaignBean()
Méthode permettant de récupérer une liste de bean contenant pour chaque campagne qui possède au moins une anomalie la liste des anomalies par statut |
static java.util.LinkedHashMap |
getChartTable(java.util.ArrayList<ChartWrapper> chartData,
java.util.Map<java.lang.Integer,java.lang.String> referenceeMap)
Méthode permettant de préparer les données pour un pieChart en effectuant des conversions de noms à l'insertion des données. |
static java.util.HashSet<ReqWrapper> |
getCoveredRequirements(java.util.ArrayList<org.objectweb.salome_tmf.data.Test> listTest)
Retourne l'ensemble des exigences sans doublons couvertes par un ensemble de tests |
static java.util.Map<org.objectweb.salome_tmf.data.Environment,java.util.Map<java.sql.Date,int[][]>> |
getDataForBugTracking(org.objectweb.salome_tmf.data.Project proj,
java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<DefectWrapper>> bugIdByEnvMap,
java.util.Map<java.lang.String,java.lang.Integer> severityValueMap,
java.util.Map<java.lang.Integer,java.lang.String> severityNameMap)
Méthode récupérant les données nécessaires à la création graphique de suivi des anomalies dans le temps. |
static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<java.sql.Date,java.lang.Integer>> |
getDataForExecutionTracking(org.objectweb.salome_tmf.data.Project proj,
java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<org.objectweb.salome_tmf.data.Execution,java.lang.Integer>> NumberOfTestByEnvAndExec)
Construit l'ensemble des données pour le suivi des exécutions dans le temps |
static java.sql.Date |
getDateFromEnvironment(org.objectweb.salome_tmf.data.Environment env)
Extrait la date de début de la phase de recette de la livraison du nom de l'environnement Attention : Les environnements doivent être utilisées comme des livraisons d'application Ils doivent être nommés comme suit : nomLivraion-yyyy/mm/dd |
static java.util.Map<org.objectweb.salome_tmf.data.Environment,java.sql.Date> |
getEnvByVersionDate(org.objectweb.salome_tmf.data.Project proj)
Méthode retournant pour chaque livraison, la date de début de la phase de recette Attention : Les environnements doivent être utilisées comme des livraisons d'application Ils doivent être nommés comme suit : nomLivraion-yyyy/mm/dd |
static java.util.HashSet<org.objectweb.salome_tmf.data.Test> |
getExecutedTest(org.objectweb.salome_tmf.data.Campaign pCamp)
|
static org.objectweb.salome_tmf.data.ExecutionResult |
getFirstExecutionResultComplete(org.objectweb.salome_tmf.data.Execution execution)
|
static org.objectweb.salome_tmf.data.ExecutionResult |
getLastResultExecutionFinished(org.objectweb.salome_tmf.data.Execution execution)
|
static java.lang.String |
getNameFromEnvironment(org.objectweb.salome_tmf.data.Environment env)
Extrait le nom de la livraison du nom de l'environnement Attention : Les environnements doivent être utilisées comme des livraisons d'application Ils doivent être nommés comme suit : nomLivraion-yyyy/mm/dd |
static java.util.ArrayList<NbTestByVersionBean> |
getNbTestByVersionBeanList(org.objectweb.salome_tmf.data.Project proj)
Construit la liste de beans du nombre de test par livraison |
static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<org.objectweb.salome_tmf.data.Execution,java.lang.Integer>> |
getNumberOfTestByEnvAndExecution(org.objectweb.salome_tmf.data.Project proj)
Méthode qui calcule pour chaque environnement, pour chaque exécution liée à l'environnement, le nombre de test à effectuer. |
static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.lang.Integer> |
getNumberOfTestByEnvironment(org.objectweb.salome_tmf.data.Project proj)
Méthode calculant le nombre de tests par environnement |
static java.util.HashSet<ReqWrapper> |
getReqNonSatisfiedByExecutionResult(org.objectweb.salome_tmf.data.ExecutionResult executionResult)
Méthode qui récupère et retourne la liste des exigences non satisfaites par un résult d'exécution Une exigence est considérée comme non satisfaite par une résultat d'exécution si au moins un test appartenant au résultat d'exécution qui couvre l'exigence a un résultat 'FAILED' ou 'INCONCLUSIF' |
static java.util.ArrayList<ReqStatBean> |
getReqStatBean()
Méthode permettant de construire la liste des beans des exigences avec pour chaque exigence, le pourcentage de satisfaction de l'exigence |
static java.util.HashSet<ReqWrapper> |
getRequirementWithBug(org.objectweb.salome_tmf.data.Project proj)
|
static java.util.HashMap<ReqWrapper,BIData.Statistique> |
getStatForRequirements()
Méthode permettant de calculer pour chaque exigence du projet, la satisfaction de l'exigence. |
static java.util.ArrayList<TestToReplay> |
getTestToReplayBeanList(org.objectweb.salome_tmf.data.Project proj)
Méthode permettant de récupérer une liste de beans des tests de non régression à effectuer |
static java.util.ArrayList<TestWithBugBean> |
getTestWithBugBeanList(org.objectweb.salome_tmf.data.Project proj)
Méthode permettant de récupérer une liste de beans des tests liés à une anomalie mantis |
static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<org.objectweb.salome_tmf.data.Test>> |
getTestWithBugByEnvironment(org.objectweb.salome_tmf.data.Project proj)
|
static java.util.ArrayList<org.objectweb.salome_tmf.data.Test> |
getTestWithBugForCampaign(org.objectweb.salome_tmf.data.Campaign pCamp)
Retourne la liste des tests d'une campagne qui sont rattachés à une anomalie mantis |
static java.util.HashSet<org.objectweb.salome_tmf.data.Test> |
getTestWithBugForProject(org.objectweb.salome_tmf.data.Project proj)
|
java.util.HashSet<org.objectweb.salome_tmf.data.Test> |
getTestWithNonResolvedBug(org.objectweb.salome_tmf.data.Project proj)
|
static java.util.ArrayList<VersionByDateBean> |
getVersionByDateBeanList(org.objectweb.salome_tmf.data.Project proj)
Méthode permettant de récupérer une liste de beans associant à chaque livraison la date de début de la phase de recette |
static boolean |
isABugAttachment(org.objectweb.salome_tmf.api.data.UrlAttachementWrapper urlAttachmentWrapper)
|
static java.awt.image.BufferedImage |
writeScaledChart(org.jfree.chart.JFreeChart chart,
int width,
int height,
int widthScaleFactor,
int heightScaleFactor)
Méthode permettant d'optimiser le rendu d'affichage d'un chart dans une image pour les exports au format XLS et HTML. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BIData()
Method Detail |
---|
public static java.util.ArrayList<org.objectweb.salome_tmf.data.Test> getTestWithBugForCampaign(org.objectweb.salome_tmf.data.Campaign pCamp)
pCamp
- Une campagne
public static java.util.HashSet<org.objectweb.salome_tmf.data.Test> getTestWithBugForProject(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet
public java.util.HashSet<org.objectweb.salome_tmf.data.Test> getTestWithNonResolvedBug(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet
public static java.util.HashSet<ReqWrapper> getAllNonSatisfiedRequirementFromCampain(org.objectweb.salome_tmf.data.Campaign camp)
camp
- la campagne
public static org.objectweb.salome_tmf.data.ExecutionResult getLastResultExecutionFinished(org.objectweb.salome_tmf.data.Execution execution)
execution
- une exécution
public static java.util.HashSet<ReqWrapper> getCoveredRequirements(java.util.ArrayList<org.objectweb.salome_tmf.data.Test> listTest)
listTest
- Une liste de test
public static java.util.HashSet<org.objectweb.salome_tmf.data.Test> getExecutedTest(org.objectweb.salome_tmf.data.Campaign pCamp)
pCamp
- Une campagne de test
public static java.util.HashSet<ReqWrapper> getReqNonSatisfiedByExecutionResult(org.objectweb.salome_tmf.data.ExecutionResult executionResult)
executionResult
- Un résultat d'exécution
public static java.util.Vector<java.lang.String> getAllBugId(org.objectweb.salome_tmf.data.Campaign pCamp)
pCamp
- Une campagne
public static java.util.HashMap<ReqWrapper,BIData.Statistique> getStatForRequirements() throws java.lang.Exception
java.lang.Exception
public static boolean isABugAttachment(org.objectweb.salome_tmf.api.data.UrlAttachementWrapper urlAttachmentWrapper)
urlAttachmentWrapper
- urlAttachementWrapper
public static DefectWrapper getBugIdFromAttachment(org.objectweb.salome_tmf.api.data.UrlAttachementWrapper urlAttachmentWrapper)
urlAttachmentWrapper
-
public static java.util.Map<org.objectweb.salome_tmf.data.Environment,java.sql.Date> getEnvByVersionDate(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet Salomé
public static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<org.objectweb.salome_tmf.data.Test>> getTestWithBugByEnvironment(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet salomé
public static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<DefectWrapper>> getBugIdByEnvironment(org.objectweb.salome_tmf.data.Project proj)
proj
- projet
public static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.lang.Integer> getNumberOfTestByEnvironment(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet
public static java.util.HashSet<ReqWrapper> getRequirementWithBug(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet
public static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<org.objectweb.salome_tmf.data.Execution,java.lang.Integer>> getNumberOfTestByEnvAndExecution(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet
public static org.objectweb.salome_tmf.data.ExecutionResult getFirstExecutionResultComplete(org.objectweb.salome_tmf.data.Execution execution)
execution
- une exécution de campagne
public static java.sql.Date getDateFromEnvironment(org.objectweb.salome_tmf.data.Environment env)
env
- l'envrironnement
public static java.lang.String getNameFromEnvironment(org.objectweb.salome_tmf.data.Environment env)
env
- l'environnement
public static int findBugIdInAttachement(org.objectweb.salome_tmf.data.Attachment attachment)
attachment
-
public static java.util.ArrayList<ReqStatBean> getReqStatBean() throws java.lang.Exception
java.lang.Exception
public static java.util.ArrayList<BugStatusCampaignBean> getBugStatusCampaignBean() throws java.lang.NumberFormatException, java.lang.Exception
java.lang.Exception
java.lang.NumberFormatException
public static java.util.ArrayList<VersionByDateBean> getVersionByDateBeanList(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet Salomé
public static java.util.ArrayList<TestWithBugBean> getTestWithBugBeanList(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet Salomé
public static java.util.ArrayList<NbTestByVersionBean> getNbTestByVersionBeanList(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet Salomé
public static java.util.ArrayList<TestToReplay> getTestToReplayBeanList(org.objectweb.salome_tmf.data.Project proj)
proj
- le projet Salomé
public static java.util.Map<org.objectweb.salome_tmf.data.Environment,java.util.Map<java.sql.Date,int[][]>> getDataForBugTracking(org.objectweb.salome_tmf.data.Project proj, java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.ArrayList<DefectWrapper>> bugIdByEnvMap, java.util.Map<java.lang.String,java.lang.Integer> severityValueMap, java.util.Map<java.lang.Integer,java.lang.String> severityNameMap)
proj
- Le projet salomébugIdByEnvMap
- La liste des bugs par environnementseverityValueMap
- La correspondance valeur de sévérité indice de tableauseverityNameMap
- La correspondance nom de sévérité , indice de tableau
public static org.jfree.data.time.TimeSeriesCollection createDataSetForBugTrackingTimeSeriesChart(java.util.Map<org.objectweb.salome_tmf.data.Environment,java.util.Map<java.sql.Date,int[][]>> dataChart, java.util.Map<java.lang.Integer,java.lang.String> severityNameMap)
Les
- données du chart, la liste du nombre de bug nouvellement ouvert et résolu par date et par environnementLa
- liste des sévérités possibles pour un bug
public static java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<java.sql.Date,java.lang.Integer>> getDataForExecutionTracking(org.objectweb.salome_tmf.data.Project proj, java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<org.objectweb.salome_tmf.data.Execution,java.lang.Integer>> NumberOfTestByEnvAndExec)
proj
- Le projetNumberOfTestByEnvAndExec
- Le nombre de tests à exécuter pour chaque exécutions de chaque environnement
public static org.jfree.data.time.TimeSeriesCollection createDataSetForExecutionTrackingTimeSeriesChart(java.util.HashMap<org.objectweb.salome_tmf.data.Environment,java.util.HashMap<java.sql.Date,java.lang.Integer>> chartData)
public static org.jfree.chart.JFreeChart createTimeSeriesChart(org.jfree.data.time.TimeSeriesCollection collection, java.lang.String title, java.lang.String xAxisLabel, java.lang.String yAxisLabel, boolean legend, boolean tooltip, boolean url)
collection
- La collection des séries du TimeSeriesCharttitle
- Le titre du chart, null si aucunxAxisLabel
- Le titre de l'axe des abscisses, null si aucunyAxisLabel
- Le titre de l'axe des ordonnées, null si aucunlegend
- mettre à vrai si l'on veut afficher la légende du chart, false sinontooltip
- url
-
public static org.jfree.chart.JFreeChart createPieChart3D(java.util.LinkedHashMap<java.lang.String,java.lang.String> chartTable, java.lang.String title)
Les
- données à représenter par le pieChart. Les données sont représentées par une
Map associant à chaque nom d'une part du chart sa valeur.Le
- titre du chart, null si aucun
public static java.util.LinkedHashMap getChartTable(java.util.ArrayList<ChartWrapper> chartData, java.util.Map<java.lang.Integer,java.lang.String> referenceeMap)
chartData
- Les données à insérer dans la collectionreferenceeMap
- La map de référence utilisée pour effectuer des conversions de nom (exemple 10<--->A analyser)
public static java.awt.image.BufferedImage writeScaledChart(org.jfree.chart.JFreeChart chart, int width, int height, int widthScaleFactor, int heightScaleFactor)
chart
- Le chart dont le rendu est à optimiserwidth
- La largeur de l'image désiréeheight
- La hauteur de l'image désiréewidthScaleFactor
- facteur d'optimisationheightScaleFactor
- facteur d'optimisation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |