@Test public void testIsSampleIncluded() { System.out.println("isSampleIncluded"); SampleResult res = null; AbstractGraphPanelVisualizer instance = new AbstractGraphPanelVisualizerImpl(); boolean expResult = true; boolean result = instance.isSampleIncluded(res); assertEquals(expResult, result); }
protected boolean isSampleIncluded(SampleResult res) { if (null == res) { return true; } if (startTimeRef == 0) { startTimeRef = res.getStartTime(); startTimeInf = startTimeRef - startTimeRef % 1000; startTimeSup = startTimeRef + (1000 - startTimeRef % 1000) % 1000; } if (includeRegexChkboxState && !incRegex.isEmpty() && !res.getSampleLabel().matches(incRegex)) { return false; } if (excludeRegexChkboxState && !excRegex.isEmpty() && res.getSampleLabel().matches(excRegex)) { return false; } if (!includeRegexChkboxState && !includes.isEmpty() && !includes.contains(res.getSampleLabel())) { return false; } if (!excludeRegexChkboxState && !excludes.isEmpty() && excludes.contains(res.getSampleLabel())) { return false; } if (startOffset > res.getStartTime() - startTimeInf) { return false; } if (endOffset < res.getStartTime() - startTimeSup) { return false; } return true; }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected boolean isSampleIncluded(SampleResult res) { if (null == res) { return true; } if (startTimeRef == 0) { startTimeRef = res.getStartTime(); startTimeInf = startTimeRef - startTimeRef % 1000; startTimeSup = startTimeRef + (1000 - startTimeRef % 1000) % 1000; } if (includeRegexChkboxState && !incRegex.isEmpty() && !res.getSampleLabel().matches(incRegex)) { return false; } if (excludeRegexChkboxState && !excRegex.isEmpty() && res.getSampleLabel().matches(excRegex)) { return false; } if (!includeRegexChkboxState && !includes.isEmpty() && !includes.contains(res.getSampleLabel())) { return false; } if (!excludeRegexChkboxState && !excludes.isEmpty() && excludes.contains(res.getSampleLabel())) { return false; } if (startOffset > res.getStartTime() - startTimeInf) { return false; } if (endOffset < res.getStartTime() - startTimeSup) { return false; } return true; } }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected boolean isSampleIncluded(SampleResult res) { if (null == res) { return true; } if (startTimeRef == 0) { startTimeRef = res.getStartTime(); startTimeInf = startTimeRef - startTimeRef % 1000; startTimeSup = startTimeRef + (1000 - startTimeRef % 1000) % 1000; } if (includeRegexChkboxState && !incRegex.isEmpty() && !res.getSampleLabel().matches(incRegex)) { return false; } if (excludeRegexChkboxState && !excRegex.isEmpty() && res.getSampleLabel().matches(excRegex)) { return false; } if (!includeRegexChkboxState && !includes.isEmpty() && !includes.contains(res.getSampleLabel())) { return false; } if (!excludeRegexChkboxState && !excludes.isEmpty() && excludes.contains(res.getSampleLabel())) { return false; } if (startOffset > res.getStartTime() - startTimeInf) { return false; } if (endOffset < res.getStartTime() - startTimeSup) { return false; } return true; } AbstractGraphPanelVisualizer(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected boolean isSampleIncluded(SampleResult res) { if (null == res) { return true; } if (startTimeRef == 0) { startTimeRef = res.getStartTime(); startTimeInf = startTimeRef - startTimeRef % 1000; startTimeSup = startTimeRef + (1000 - startTimeRef % 1000) % 1000; } if (includeRegexChkboxState && !incRegex.isEmpty() && !res.getSampleLabel().matches(incRegex)) { return false; } if (excludeRegexChkboxState && !excRegex.isEmpty() && res.getSampleLabel().matches(excRegex)) { return false; } if (!includeRegexChkboxState && !includes.isEmpty() && !includes.contains(res.getSampleLabel())) { return false; } if (!excludeRegexChkboxState && !excludes.isEmpty() && excludes.contains(res.getSampleLabel())) { return false; } if (startOffset > res.getStartTime() - startTimeInf) { return false; } if (endOffset < res.getStartTime() - startTimeSup) { return false; } return true; } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); }
AbstractGraphPanelVisualizer extends AbstractVisualizer implements Clearable,
        ImageVisualizer,
        SettingsInterface { protected boolean isSampleIncluded(SampleResult res) { if (null == res) { return true; } if (startTimeRef == 0) { startTimeRef = res.getStartTime(); startTimeInf = startTimeRef - startTimeRef % 1000; startTimeSup = startTimeRef + (1000 - startTimeRef % 1000) % 1000; } if (includeRegexChkboxState && !incRegex.isEmpty() && !res.getSampleLabel().matches(incRegex)) { return false; } if (excludeRegexChkboxState && !excRegex.isEmpty() && res.getSampleLabel().matches(excRegex)) { return false; } if (!includeRegexChkboxState && !includes.isEmpty() && !includes.contains(res.getSampleLabel())) { return false; } if (!excludeRegexChkboxState && !excludes.isEmpty() && excludes.contains(res.getSampleLabel())) { return false; } if (startOffset > res.getStartTime() - startTimeInf) { return false; } if (endOffset < res.getStartTime() - startTimeSup) { return false; } return true; } AbstractGraphPanelVisualizer(); @Override abstract String getStaticLabel(); void updateGui(Sample sample); void updateGui(); @Override void clearData(); @Override Image getImage(); @Override int getGranulation(); @Override void setGranulation(int granulation); @Override void stateChanged(ChangeEvent e); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override GraphPanelChart getGraphPanelChart(); @Override void switchModel(boolean aggregate); JSettingsPanel getSettingsPanel(); void setUpFiltering(CorrectedResultCollector rc); void setIgnoreCurrentTestStartTime(); boolean isIgnoreCurrentTestStartTime(); @Override void clearGui(); static final String INTERVAL_PROPERTY; static final String GRAPH_AGGREGATED; }