Rev 1568 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1568 | Rev 1574 | ||
---|---|---|---|
1 | package pt.estgp.estgweb.services.questionarios.utils; |
1 | package pt.estgp.estgweb.services.questionarios.pedagogico.reportprocessors.utils; |
2 | 2 | ||
3 | import java.util.ArrayList; |
3 | import java.util.ArrayList; |
4 | 4 | ||
5 | /** |
5 | /** |
6 | * Created by jorgemachado on 07/12/16. |
6 | * Created by jorgemachado on 07/12/16. |
7 | */ |
7 | */ |
8 | public class RespostasAgregadasGrupoStats |
8 | public class RespostasAgregadasGrupoStats |
9 | { |
9 | { |
10 | 10 | ||
11 | 1.5.0/docs/api/java/lang/String.html">String grupo; |
11 | 1.5.0/docs/api/java/lang/String.html">String grupo; |
12 | 1.5.0/docs/api/java/lang/String.html">String subGrupo; |
12 | 1.5.0/docs/api/java/lang/String.html">String subGrupo; |
13 | 13 | ||
14 | public RespostasAgregadasChartTable respostasAgregadasChartTable = new RespostasAgregadasChartTable(); |
14 | public RespostasAgregadasChartTable respostasAgregadasChartTable = new RespostasAgregadasChartTable(); |
15 | public RespostasAgregadasChartTable respostasAgregadasChartTable2Secs = new RespostasAgregadasChartTable(); |
15 | public RespostasAgregadasChartTable respostasAgregadasChartTable2Secs = new RespostasAgregadasChartTable(); |
16 | 16 | ||
17 | //Apenas para as perguntas de tempoMinimo = 0 |
17 | //Apenas para as perguntas de tempoMinimo = 0 |
18 | //criadas no metodo DocenteReportGenerator.criarGraficosRespostasAgregadas |
18 | //criadas no metodo DocenteReportGenerator.criarGraficosRespostasAgregadas |
19 | private ArrayList<PerguntaStats> perguntasStats = new ArrayList<PerguntaStats>(); |
19 | private ArrayList<PerguntaStats> perguntasStats = new ArrayList<PerguntaStats>(); |
20 | 20 | ||
21 | public MediasGrupo mediasGrupo; |
21 | public MediasGrupo mediasGrupo; |
22 | 22 | ||
23 | public RespostasAgregadasGrupoStats(1.5.0/docs/api/java/lang/String.html">String grupo,1.5.0/docs/api/java/lang/String.html">String subGrupo) { |
23 | public RespostasAgregadasGrupoStats(1.5.0/docs/api/java/lang/String.html">String grupo,1.5.0/docs/api/java/lang/String.html">String subGrupo) { |
24 | this.grupo = grupo; |
24 | this.grupo = grupo; |
25 | this.subGrupo = subGrupo; |
25 | this.subGrupo = subGrupo; |
26 | mediasGrupo = new MediasGrupo(grupo,subGrupo); |
26 | mediasGrupo = new MediasGrupo(grupo,subGrupo); |
27 | } |
27 | } |
28 | 28 | ||
29 | public 1.5.0/docs/api/java/lang/String.html">String getSubGrupo() { |
29 | public 1.5.0/docs/api/java/lang/String.html">String getSubGrupo() { |
30 | return subGrupo; |
30 | return subGrupo; |
31 | } |
31 | } |
32 | 32 | ||
33 | public void setSubGrupo(1.5.0/docs/api/java/lang/String.html">String subGrupo) { |
33 | public void setSubGrupo(1.5.0/docs/api/java/lang/String.html">String subGrupo) { |
34 | this.subGrupo = subGrupo; |
34 | this.subGrupo = subGrupo; |
35 | } |
35 | } |
36 | 36 | ||
37 | public 1.5.0/docs/api/java/lang/String.html">String getGrupo() { |
37 | public 1.5.0/docs/api/java/lang/String.html">String getGrupo() { |
38 | return grupo; |
38 | return grupo; |
39 | } |
39 | } |
40 | 40 | ||
41 | public void setGrupo(1.5.0/docs/api/java/lang/String.html">String grupo) { |
41 | public void setGrupo(1.5.0/docs/api/java/lang/String.html">String grupo) { |
42 | this.grupo = grupo; |
42 | this.grupo = grupo; |
43 | } |
43 | } |
44 | 44 | ||
45 | public ArrayList<PerguntaStats> getPerguntasStats() { |
45 | public ArrayList<PerguntaStats> getPerguntasStats() { |
46 | return perguntasStats; |
46 | return perguntasStats; |
47 | } |
47 | } |
48 | 48 | ||
49 | public void setPerguntasStats(ArrayList<PerguntaStats> perguntasStats) { |
49 | public void setPerguntasStats(ArrayList<PerguntaStats> perguntasStats) { |
50 | this.perguntasStats = perguntasStats; |
50 | this.perguntasStats = perguntasStats; |
51 | } |
51 | } |
52 | 52 | ||
53 | public RespostasAgregadasChartTable getRespostasAgregadasChartTable() { |
53 | public RespostasAgregadasChartTable getRespostasAgregadasChartTable() { |
54 | return respostasAgregadasChartTable; |
54 | return respostasAgregadasChartTable; |
55 | } |
55 | } |
56 | 56 | ||
57 | public void setRespostasAgregadasChartTable(RespostasAgregadasChartTable respostasAgregadasChartTable) { |
57 | public void setRespostasAgregadasChartTable(RespostasAgregadasChartTable respostasAgregadasChartTable) { |
58 | this.respostasAgregadasChartTable = respostasAgregadasChartTable; |
58 | this.respostasAgregadasChartTable = respostasAgregadasChartTable; |
59 | } |
59 | } |
60 | 60 | ||
61 | public RespostasAgregadasChartTable getRespostasAgregadasChartTable2Secs() { |
61 | public RespostasAgregadasChartTable getRespostasAgregadasChartTable2Secs() { |
62 | return respostasAgregadasChartTable2Secs; |
62 | return respostasAgregadasChartTable2Secs; |
63 | } |
63 | } |
64 | 64 | ||
65 | public void setRespostasAgregadasChartTable2Secs(RespostasAgregadasChartTable respostasAgregadasChartTable2Secs) { |
65 | public void setRespostasAgregadasChartTable2Secs(RespostasAgregadasChartTable respostasAgregadasChartTable2Secs) { |
66 | this.respostasAgregadasChartTable2Secs = respostasAgregadasChartTable2Secs; |
66 | this.respostasAgregadasChartTable2Secs = respostasAgregadasChartTable2Secs; |
67 | } |
67 | } |
68 | 68 | ||
69 | public MediasGrupo getMediasGrupo() { |
69 | public MediasGrupo getMediasGrupo() { |
70 | return mediasGrupo; |
70 | return mediasGrupo; |
71 | } |
71 | } |
72 | 72 | ||
73 | public void setMediasGrupo(MediasGrupo mediasGrupo) { |
73 | public void setMediasGrupo(MediasGrupo mediasGrupo) { |
74 | this.mediasGrupo = mediasGrupo; |
74 | this.mediasGrupo = mediasGrupo; |
75 | } |
75 | } |
76 | 76 | ||
77 | 77 | ||
78 | /* |
78 | /* |
79 | public void addRespostasAgregadasChart(RespostasChart chart) |
79 | public void addRespostasAgregadasChart(RespostasChart chart) |
80 | { |
80 | { |
81 | respostasAgregadasCharts.addChart(chart); |
81 | respostasAgregadasCharts.addChart(chart); |
82 | numeroPerguntaRespostasChart.put(chart.getNumero(),chart); |
82 | numeroPerguntaRespostasChart.put(chart.getNumero(),chart); |
83 | } |
83 | } |
84 | 84 | ||
85 | public void addRespostasAgregadasChartGt2Secs(RespostasChart chart) |
85 | public void addRespostasAgregadasChartGt2Secs(RespostasChart chart) |
86 | { |
86 | { |
87 | respostasAgregadasChartsGt2Secs.addChart(chart); |
87 | respostasAgregadasChartsGt2Secs.addChart(chart); |
88 | } |
88 | } |
89 | 89 | ||
90 | public void addRespostasAgregadasUnidadesChartGt2Secs(RespostasChart chart) |
90 | public void addRespostasAgregadasUnidadesChartGt2Secs(RespostasChart chart) |
91 | { |
91 | { |
92 | respostasAgregadasUnidadesChartsGt2Secs.addChart(chart); |
92 | respostasAgregadasUnidadesChartsGt2Secs.addChart(chart); |
93 | } |
93 | } |
94 | 94 | ||
95 | public void addRespostasAgregadasUnidadesChart(RespostasChart chart) |
95 | public void addRespostasAgregadasUnidadesChart(RespostasChart chart) |
96 | { |
96 | { |
97 | respostasAgregadasUnidadesCharts.addChart(chart); |
97 | respostasAgregadasUnidadesCharts.addChart(chart); |
98 | } |
98 | } |
99 | 99 | ||
100 | */ |
100 | */ |
101 | public static class RespostasAgregadasChartTable |
101 | public static class RespostasAgregadasChartTable |
102 | { |
102 | { |
103 | public ChartTable respostasAgregadasCharts = new ChartTable(); |
103 | public ChartTable respostasAgregadasCharts = new ChartTable(); |
104 | 104 | ||
105 | public DataTable respostasTable; |
105 | public DataTable respostasTable; |
106 | 106 | ||
107 | /*public List<PerguntaStats> generateCompleteListPerguntas() |
107 | /*public List<PerguntaStats> generateCompleteListPerguntas() |
108 | { |
108 | { |
109 | return respostasAgregadasCharts.generateCompleteListPerguntas(); |
109 | return respostasAgregadasCharts.generateCompleteListPerguntas(); |
110 | }*/ |
110 | }*/ |
111 | 111 | ||
112 | public ChartTable getRespostasAgregadasCharts() { |
112 | public ChartTable getRespostasAgregadasCharts() { |
113 | return respostasAgregadasCharts; |
113 | return respostasAgregadasCharts; |
114 | } |
114 | } |
115 | 115 | ||
116 | public void setRespostasAgregadasCharts(ChartTable respostasAgregadasCharts) { |
116 | public void setRespostasAgregadasCharts(ChartTable respostasAgregadasCharts) { |
117 | this.respostasAgregadasCharts = respostasAgregadasCharts; |
117 | this.respostasAgregadasCharts = respostasAgregadasCharts; |
118 | } |
118 | } |
119 | 119 | ||
120 | public DataTable getRespostasTable() { |
120 | public DataTable getRespostasTable() { |
121 | return respostasTable; |
121 | return respostasTable; |
122 | } |
122 | } |
123 | 123 | ||
124 | public void setRespostasTable(DataTable respostasTable) { |
124 | public void setRespostasTable(DataTable respostasTable) { |
125 | this.respostasTable = respostasTable; |
125 | this.respostasTable = respostasTable; |
126 | } |
126 | } |
127 | } |
127 | } |
128 | 128 | ||
129 | } |
129 | } |
130 | 130 |