All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class CDashboardMRel extends CDashboardBasic
See Also:
  • Field Details

    • _fCharts

      protected Form _fCharts
    • _pDetails

      protected Panel _pDetails
    • _ncRelCharts

      protected NullComponent _ncRelCharts
    • _ncRelChartDetail

      protected NullComponent _ncRelChartDetail
    • _ncRelChartAverageDetail

      protected NullComponent _ncRelChartAverageDetail
    • _jfcMRelMain

      protected JFCSerie _jfcMRelMain
    • _jfcMRelMainDetail

      protected JFCSeriePareto _jfcMRelMainDetail
    • _jfcMRelAverage

      protected JFCSerieLogarithmic _jfcMRelAverage
    • _jfcMRelAverageDetail

      protected JFCSerie _jfcMRelAverageDetail
    • _infoMainChartFailures

      protected String _infoMainChartFailures
    • _infoMainChartFailuresDetail

      protected String _infoMainChartFailuresDetail
    • _infoChartAverage

      protected String _infoChartAverage
    • _infoChartAverageDetail

      protected String _infoChartAverageDetail
    • _acliidDetialChart

      protected Long[] _acliidDetialChart
    • _lastMainChartClickedBar

      protected int _lastMainChartClickedBar
    • _lastAverageChartClickedBar

      protected int _lastAverageChartClickedBar
    • _insertMaphelper

      protected HashMap<String,Integer> _insertMaphelper
    • _dataList

      protected List<NotificationGroupManager> _dataList
    • _averageDataManager

      protected NotificationAverageGroupManager _averageDataManager
    • _averageLegendLabels

      protected String[] _averageLegendLabels
  • Constructor Details

    • CDashboardMRel

      public CDashboardMRel()
  • Method Details

    • getLoadTask

      protected DATask getLoadTask()
      Get the task that retrive graph data
      Specified by:
      getLoadTask in class CDashboardBasic
      Returns:
      DATLoadMRelChartData instance
    • initWindow

      protected void initWindow()
      Description copied from class: CDashboardBasic
      Get components from xml It must be overrided in subclass
      Overrides:
      initWindow in class CDashboardBasic
    • setupWindow

      protected void setupWindow()
      Define initial window style
      Overrides:
      setupWindow in class CDashboardBasic
    • prepareMultiDecoderIndicators

      protected void prepareMultiDecoderIndicators(LongSet filter)
      Sets the values for the InputDecoder of average data indicators
      Parameters:
      filter -
    • customOperationsOnSavedSearchers

      public void customOperationsOnSavedSearchers(HashGetter hg)
      Description copied from class: CDashboardBasic
      Extension for custom operation on saved search application
      Overrides:
      customOperationsOnSavedSearchers in class CDashboardBasic
      Parameters:
      hg - saved search params
    • prepareData

      public void prepareData(HashGetter hgFilter)
      Get field from form, convert (multi)decorder fields and set task parameters
      Specified by:
      prepareData in class CDashboardBasic
      Parameters:
      hgFilter -
    • loadChart

      public void loadChart(HashGetter hgFilter)
      Get data from loading task and build the two graphs Task dbvs are managed with specific object to split them on 2 parts, top & not top
      Specified by:
      loadChart in class CDashboardBasic
      Parameters:
      hgFilter -
    • groupChartData

      public void groupChartData(DBView dbvChartData, HashGetter hgFilter)
      Group data for the first graph
      Parameters:
      dbvChartData -
      hgFilter -
    • showChartFailuresNum

      public void showChartFailuresNum(HashGetter params, JFCSerie chart, Boolean onlyTop)
      Plot main chart
      Parameters:
      params -
      chart -
      onlyTop - print only top serie
    • getSerieForChart

      protected HashGetter getSerieForChart(HashGetter params)
      Prepare chart data from the data passed on input
      Parameters:
      params -
      Returns:
      HashGetter with chart needed data
    • buildInfoChartFailures

      public boolean buildInfoChartFailures(HashGetter hg, Boolean withTopSerie)
      Build the string (html format) to show in the Info button over the graph
      Parameters:
      hg - contains data used on chart plot
      withTopSerie -
      Returns:
    • onInfoChart

      public boolean onInfoChart(HashGetter oParams)
      Show info pop-up for the clicked chart
      Parameters:
      oParams -
      Returns:
    • onPrintChart

      public boolean onPrintChart(HashGetter oParams)
      Call print chart
      Parameters:
      oParams -
      Returns:
    • onShowMainGraphMenu

      public void onShowMainGraphMenu(UIMessage uim)
      Show menù of main chart
      Parameters:
      uim -
    • onShowTopFailures

      public boolean onShowTopFailures(UIMessage uim)
      Show pareto graph on new panel
      Parameters:
      uim -
      Returns:
    • getSerieTopDetail

      protected HashGetter getSerieTopDetail(NotificationGroupManager group)
      Build the pareto serie data from a group object retrived from user bar clicking
      Parameters:
      group -
      Returns:
    • showTopChartDetail

      public void showTopChartDetail(HashGetter hgResult, JFCSeriePareto chart)
      Build and show main graph detail chart with pareto line
      Parameters:
      hgResult -
      chart -
    • buildInfoChartFailuresDetail

      public boolean buildInfoChartFailuresDetail(HashGetter hg)
      Build the string (html format) to show in the Info button over Pareto graph
      Parameters:
      hg - contains data used on chart plot
      Returns:
    • onShowInnerPeriod

      public boolean onShowInnerPeriod(HashGetter oParams)
      Get the timeslot rappresented by the clicked bar and launch a new search with a minus level of CHART_TIME
      Parameters:
      oParams -
      Returns:
    • onShowNotifications

      public boolean onShowNotifications(UIMessage uim)
      Opens notification window to show notifications that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowWO

      public boolean onShowWO(UIMessage uim)
      Opens WO window to show WO linked with notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • prepareDataForExternalSearch

      public HashGetter prepareDataForExternalSearch(String data)
      Description copied from class: CDashboardBasic
      Convert dashboard filters in values for notification or wo search
      Overrides:
      prepareDataForExternalSearch in class CDashboardBasic
      Parameters:
      data - = string form of the data that represents of the column clicked by the user
      Returns:
    • onShowMainDetailGraphMenu

      public void onShowMainDetailGraphMenu(UIMessage uim)
      Show menù of main detail chart (only when clicking on a column item
      Parameters:
      uim -
    • onShowNotificationsFromDetails

      public boolean onShowNotificationsFromDetails(UIMessage uim)
      Opens notification window to show notifications that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowWOFromDetails

      public boolean onShowWOFromDetails(UIMessage uim)
      Opens WO window to show WO linked with top notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • displayAverageTimeChart

      public void displayAverageTimeChart(HashGetter filter)
      Check if there are some indicators to show and before call chart builder. If not, clean chart properites
      Parameters:
      filter -
    • showChartAverageTime

      public void showChartAverageTime(HashGetter filter)
      Build and show indicators chart
      Parameters:
      filter -
    • getSerieAverageTime

      protected HashGetter getSerieAverageTime(HashGetter oParams, DBView dbv)
      Build data for indicatos chart
      Parameters:
      oParams -
      dbv -
      Returns:
    • buildInfoChartAverage

      public boolean buildInfoChartAverage(Boolean isMainChart, String domainLabel, double[] serieMTBF, double[] serieMDT, double[] serieMTTR)
      Build info string of indicators chart
      Parameters:
      isMainChart -
      domainLabel -
      serieMTBF -
      serieMDT -
      serieMTTR -
      Returns:
    • onShowTopFailuresAverage

      public boolean onShowTopFailuresAverage(UIMessage uim)
      Show detail average graph checking only if top_equipment number != 0
      Parameters:
      uim -
      Returns:
    • showTopFailuresAverage

      public boolean showTopFailuresAverage(UIMessage uim)
      Show top average values of indicators chart
      Parameters:
      uim -
      Returns:
    • checkNoData

      protected Boolean checkNoData(DBView dbv)
      Check if some rows of the passed dbv haven't data to display
      Parameters:
      dbv -
      Returns:
    • onSearchOnCurrentFacility

      public boolean onSearchOnCurrentFacility(UIMessage uim)
      Launch main search from detail panel options of main chart
      Parameters:
      uim -
      Returns:
    • showChartAverageTimeDetail

      public void showChartAverageTimeDetail(HashGetter params, DBView dbv)
      Show detail graph of a single indicator
      Parameters:
      params -
      dbv -
    • getSerieAverageTimeDetail

      protected HashGetter getSerieAverageTimeDetail(HashGetter params, DBView dbv)
      Build indicator detail chart data
      Parameters:
      params -
      dbv -
      Returns:
    • onShowAverageGraphMenu

      public void onShowAverageGraphMenu(UIMessage uim)
      Show menù of average main chart
      Parameters:
      uim -
    • onShowInnerAveragePeriod

      public boolean onShowInnerAveragePeriod(HashGetter params)
      Get the timeslot rappresented by the clicked point on average chart and launch a new search with a minus level of CHART_TIME
      Parameters:
      params -
      Returns:
    • onShowNotificationsFromAverage

      public Boolean onShowNotificationsFromAverage(UIMessage uim)
      Show notifications that have produced the clicked average time
      Parameters:
      uim -
      Returns:
    • onShowWOFromAverage

      public Boolean onShowWOFromAverage(UIMessage uim)
      Show WO that have produced the clicked average time
      Parameters:
      uim -
      Returns:
    • onShowAverageDetailGraphMenu

      public void onShowAverageDetailGraphMenu(UIMessage uim)
      Show menù of main detail chart
      Parameters:
      uim -
    • onShowNotificationsFromAveargeDetails

      public boolean onShowNotificationsFromAveargeDetails(UIMessage uim)
      Opens notification window to show notifications that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowWOFromAveargeDetails

      public boolean onShowWOFromAveargeDetails(UIMessage uim)
      Opens WO window to show WO linked with top notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onAverageSearchOnCurrentFacility

      public boolean onAverageSearchOnCurrentFacility(UIMessage uim)
      Launch main search from detail panel options of average chart
      Parameters:
      uim -
      Returns:
    • onRestore

      public void onRestore(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.pop(java.lang.Object) of the above Window. It calls the onRestore(o) method of all the Container's childrens
      Overrides:
      onRestore in class Container
      Parameters:
      o - Object received from the caller
    • getMainChartItemEvent

      protected String getMainChartItemEvent()
      Get the name of the event triggered at main chart column click
    • getMainDetailChartItemEvent

      protected String getMainDetailChartItemEvent()
      Get the name of the event triggered at click on one top element of the top failures chart
    • getAverageChartItemEvent

      protected String getAverageChartItemEvent()
      Get the name of the event triggered at average chart point click
    • getAverageDetailChartItemEvent

      protected String getAverageDetailChartItemEvent()
      Get the name of the event triggered at click on one top element of the top failures average chart