fr.ifremer.wao.ui.pages
Class Synthesis

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

@RequiresAuthentication(value={ADMIN,COORDINATOR,OBSERVER})
@IncludeStylesheet(value="context:css/synthesis.css")
public class Synthesis
extends AbstractFilteredPage

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.
 ContactState[] getContactStates()
          Get all existing contactStates.
 Collection<ContactStateStatistics> getContactStateStatistics()
          Get all contactStateStatistics from serviceSynthesis.
 Map<String,Double> getDataReliability()
           
 Double getDataReliabilityValue()
           
 org.jfree.chart.JFreeChart getDataSamplingChart()
           
 ChartUtils.ChartType getDataSamplingChartType()
           
 DateFormat getDateFormat()
           
 SamplingFilter getFilter()
           
 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()
           
 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()
           
 boolean highlightGlobalLevel()
           
protected  boolean isAvailableDataForFiltersOnly()
          Used to show only active company and observers.
 void setActiveIndicator(Indicator activeIndicator)
           
 
Methods inherited from class fr.ifremer.wao.ui.base.AbstractFilteredPage
getCompanySelectModel, getDcfGearSelectModel, getDcfSpeciesSelectModel, getFacadeSelectModel, getObserverSelectModel, getProgramSelectModel, getSampleRowSelectModel, getSectorSelectModel, initCompanyFilter, initSelectFilters, isEdited, onProvideCompletionsFromBoatName, onSelectedFromAddSampleRowCode, onSelectedFromRefreshByCompany, onSelectedFromRefreshByFacade, onSelectedFromRefreshByProgram, onSelectedFromRefreshBySector, onSelectedFromRemoveSampleRowCode, onSelectedFromSearch, resetCompanySelect, resetFacadeSelect, resetSampleRowSelect, resetSectorSelect
 
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

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()

getFilter

public SamplingFilter getFilter()
                         throws WaoException
Specified by:
getFilter in class AbstractFilteredPage
Throws:
WaoException

getPeriod

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

isAvailableDataForFiltersOnly

protected boolean isAvailableDataForFiltersOnly()
Description copied from class: AbstractFilteredPage
Used to show only active company and observers.

Specified by:
isAvailableDataForFiltersOnly in class AbstractFilteredPage
Returns:
true if only active users will be showed, false otherwise

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 ContactState[] getContactStates()
Get all existing contactStates.

Returns:
ContactState[]

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

highlightGlobalLevel

public boolean highlightGlobalLevel()


Copyright © 2009-2010 Ifremer. All Rights Reserved.