1
2
3
4
5 package com.hack23.cia.service.impl.common;
6
7 import java.util.List;
8
9 import com.hack23.cia.model.application.impl.common.Agency;
10 import com.hack23.cia.model.application.impl.common.ImageContent;
11 import com.hack23.cia.model.application.impl.common.Language;
12 import com.hack23.cia.model.sweden.impl.Ballot;
13 import com.hack23.cia.model.sweden.impl.ParliamentMember;
14 import com.hack23.cia.model.sweden.impl.PoliticalParty;
15
16 /***
17 * The Interface ChartService.
18 */
19 public interface ChartService {
20
21 /***
22 * Creates the recent actions graph.
23 *
24 * @param actionEventHistory the action event history
25 * @return the image content
26 */
27 @SuppressWarnings("unchecked")
28 ImageContent createRecentActionsGraph(List actionEventHistory);
29
30 /***
31 * Creates the response time graph.
32 *
33 * @param responseTimeHistory the response time history
34 * @return the image content
35 */
36 @SuppressWarnings("unchecked")
37 ImageContent createResponseTimeGraph(List responseTimeHistory);
38
39 /***
40 * Generate ballot charts.
41 *
42 * @param agency the agency
43 * @param ballot the ballot
44 * @param allPoliticalParties the all political parties
45 * @param language the language
46 * @return the list
47 */
48 List<ImageContent> generateBallotCharts(Agency agency,
49 Ballot ballot, List<PoliticalParty> allPoliticalParties,
50 Language language);
51
52 /***
53 * Generate committee report charts.
54 *
55 * @param agency the agency
56 * @param allBallots the all ballots
57 * @param allPoliticalParties the all political parties
58 * @param language the language
59 * @return the list
60 */
61 List<ImageContent> generateCommitteeReportCharts(Agency agency,
62 List<Ballot> allBallots, List<PoliticalParty> allPoliticalParties,
63 Language language);
64
65 /***
66 * Generate parliament charts.
67 *
68 * @param agency the agency
69 * @param ballots the ballots
70 * @param politicalParties the political parties
71 * @param language the language
72 * @return the list
73 */
74 List<ImageContent> generateParliamentCharts(Agency agency, List<Ballot> ballots,List<PoliticalParty> politicalParties, Language language);
75
76 /***
77 * Generate parliament member charts.
78 *
79 * @param agency the agency
80 * @param allBallots the all ballots
81 * @param parliamentMember the parliament member
82 * @param allPoliticalParties the all political parties
83 * @param language the language
84 * @return the list
85 */
86 List<ImageContent> generateParliamentMemberCharts(Agency agency,
87 List<Ballot> allBallots,ParliamentMember parliamentMember, List<PoliticalParty> allPoliticalParties,
88 Language language);
89
90 /***
91 * Generate political party charts.
92 *
93 * @param agency the agency
94 * @param allBallots the all ballots
95 * @param politicalParty the political party
96 * @param language the language
97 * @return the list
98 */
99 List<ImageContent> generatePoliticalPartyCharts(Agency agency,
100 List<Ballot> allBallots, PoliticalParty politicalParty,
101 Language language);
102
103
104 }