fr.ifremer.wao.ui.pages
Class Synthesis

java.lang.Object
  extended by fr.ifremer.wao.ui.pages.Synthesis

@RequiresAuthentication(allowedRoles={ADMIN,COORDINATOR,OBSERVER,PROFESSIONAL})
@Import(stylesheet="context:css/synthesis.css")
public class Synthesis
extends Object

Synthesis Created: 9 nov. 2009

Author:
fdesbois

Constructor Summary
Synthesis()
           
 
Method Summary
 String getActionChartType()
           
 String getActionShowGlobalSynthesis()
           
 String getActionSynthesisId()
           
 org.apache.tapestry5.Block getActiveBlock()
           
 Indicator getActiveIndicator()
          update activeIndicator to the indicator corresponding to activeSynthesis.
 IndicatorLevel getActiveIndicatorLevel()
           
 SynthesisId getActiveSynthesis()
           
 Collection<ContactAverageReactivity> getAllegroReactivity()
           
 String getAllegroReactivityStyle()
           
 Double getAllegroReactivityValue()
           
 org.jfree.chart.JFreeChart getBoardingBoatsChart()
           
 BoardingResult getBoardingResult()
           
 Map<String,Double> getComplianceBoarding()
          Data for nonComplianceBoarding indicator.
 Double getComplianceBoardingValue()
          Return the value of nonComplianceBoarding indicator.
 List<ContactState> getContactStates()
           
 Collection<ContactStateStatistics> getContactStateStatistics()
          Get all contactStateStatistics from serviceSynthesis.
 Map<String,Double> getDataReliability()
           
 Double getDataReliabilityValue()
           
 org.jfree.chart.JFreeChart getDataSamplingChart()
           
 ChartUtils.ChartType getDataSamplingChartType()
           
 DateFormat getDateFormat()
           
 org.jfree.chart.JFreeChart getDistinctBoatsCountsChart()
          INDICATOR : OBSERVATION HOUR
 SamplingFilter getFilter()
          FILTERS
 GlobalSynthesisParameters getGlobalSynthesisParameters()
          permit lazy call to serviceSynthesis to set globalSynthesisParameters field.
 GlobalSynthesisResult getGlobalSynthesisResult()
           
 int getNbContactStates()
          Get the value for current contactStateStats in table row (by company) and current contactState in table column.
 NumberFormat getNumberFormat()
           
 org.jfree.chart.JFreeChart getObservationHoursChart()
          INDICATOR : OBSERVATION HOUR
 double getPercentContactStates()
          Get the percent value for the current contactStateStats in table row (by company) and current contactState in table column.
 NumberFormat getPercentFormat()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 ServiceSampling getServiceSampling()
           
 boolean highlightGlobalLevel()
           
 void setActiveIndicator(Indicator activeIndicator)
           
 boolean showObsMer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synthesis

public Synthesis()
Method Detail

getServiceSampling

public ServiceSampling getServiceSampling()

getActiveSynthesis

public SynthesisId getActiveSynthesis()

getGlobalSynthesisParameters

public GlobalSynthesisParameters getGlobalSynthesisParameters()
permit lazy call to serviceSynthesis to set globalSynthesisParameters field.


getGlobalSynthesisResult

public GlobalSynthesisResult getGlobalSynthesisResult()

getActiveIndicator

public Indicator getActiveIndicator()
update activeIndicator to the indicator corresponding to activeSynthesis.

Returns:
the value of activeIndicator field, after modification

setActiveIndicator

public void setActiveIndicator(Indicator activeIndicator)

getActiveIndicatorLevel

public IndicatorLevel getActiveIndicatorLevel()

getActiveBlock

public org.apache.tapestry5.Block getActiveBlock()
                                          throws WaoException
Throws:
WaoException

getActionSynthesisId

public String getActionSynthesisId()

getActionChartType

public String getActionChartType()

getActionShowGlobalSynthesis

public String getActionShowGlobalSynthesis()

getPercentFormat

public NumberFormat getPercentFormat()

getDateFormat

public DateFormat getDateFormat()

getNumberFormat

public NumberFormat getNumberFormat()

showObsMer

public boolean showObsMer()

getFilter

public SamplingFilter getFilter()
                         throws WaoException
FILTERS

Throws:
WaoException

getPeriod

public org.nuiton.util.PeriodDates getPeriod()
                                      throws WaoException
Throws:
WaoException

getDataSamplingChart

public org.jfree.chart.JFreeChart getDataSamplingChart()
                                                throws WaoException
Throws:
WaoException

getDataSamplingChartType

public ChartUtils.ChartType getDataSamplingChartType()

getBoardingBoatsChart

public org.jfree.chart.JFreeChart getBoardingBoatsChart()
                                                 throws WaoException
Throws:
WaoException

getBoardingResult

public BoardingResult getBoardingResult()
                                 throws WaoException
Throws:
WaoException

getComplianceBoarding

public Map<String,Double> getComplianceBoarding()
                                         throws WaoException
Data for nonComplianceBoarding indicator. The key is the company considered and the value is the indicator value. The map will contains only one row, if the current user is an observer.

Returns:
a Map with companies and there values for nonComplianceBoarding
Throws:
WaoException

getComplianceBoardingValue

public Double getComplianceBoardingValue()
                                  throws WaoException
Return the value of nonComplianceBoarding indicator. Only useful for observer user.

Returns:
the value of the indicator
Throws:
WaoException

getContactStates

public List<ContactState> getContactStates()

getContactStateStatistics

public Collection<ContactStateStatistics> getContactStateStatistics()
                                                             throws WaoException
Get all contactStateStatistics from serviceSynthesis. There will be only one result if the current user is an observer.

Returns:
all contactStateStatistics depends on company and selected period
Throws:
WaoException

getNbContactStates

public int getNbContactStates()
Get the value for current contactStateStats in table row (by company) and current contactState in table column.

Returns:
the number of contact states for the current contactState

getPercentContactStates

public double getPercentContactStates()
Get the percent value for the current contactStateStats in table row (by company) and current contactState in table column.

Returns:
the percent value of contact states for the current contactState

getAllegroReactivity

public Collection<ContactAverageReactivity> getAllegroReactivity()
                                                          throws WaoException
Throws:
WaoException

getAllegroReactivityValue

public Double getAllegroReactivityValue()
                                 throws WaoException
Throws:
WaoException

getAllegroReactivityStyle

public String getAllegroReactivityStyle()
                                 throws WaoException
Throws:
WaoException

getDataReliability

public Map<String,Double> getDataReliability()

getDataReliabilityValue

public Double getDataReliabilityValue()
                               throws WaoException
Throws:
WaoException

getObservationHoursChart

public org.jfree.chart.JFreeChart getObservationHoursChart()
                                                    throws WaoException
INDICATOR : OBSERVATION HOUR

Throws:
WaoException

getDistinctBoatsCountsChart

public org.jfree.chart.JFreeChart getDistinctBoatsCountsChart()
                                                       throws WaoException
INDICATOR : OBSERVATION HOUR

Throws:
WaoException

highlightGlobalLevel

public boolean highlightGlobalLevel()


Copyright © 2009-2011 Ifremer. All Rights Reserved.