@Test public void when_isLastObservation_expect_observationNotSkipped() { FilterOperation sut = new UniformSkippingFilter(4); boolean isSkippedNotLastObservation = sut.isSkipped(null, 1, false); boolean isSkippedLastObservation = sut.isSkipped(null, 1, true); assertTrue(isSkippedNotLastObservation); assertFalse(isSkippedLastObservation); }
@Override public boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation) { return !isFinalObservation && (currentObservationStep % skipFrame != 0); }
UniformSkippingFilter implements FilterOperation { @Override public boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation) { return !isFinalObservation && (currentObservationStep % skipFrame != 0); } }
UniformSkippingFilter implements FilterOperation { @Override public boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation) { return !isFinalObservation && (currentObservationStep % skipFrame != 0); } UniformSkippingFilter(int skipFrame); }
UniformSkippingFilter implements FilterOperation { @Override public boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation) { return !isFinalObservation && (currentObservationStep % skipFrame != 0); } UniformSkippingFilter(int skipFrame); @Override boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation); }
UniformSkippingFilter implements FilterOperation { @Override public boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation) { return !isFinalObservation && (currentObservationStep % skipFrame != 0); } UniformSkippingFilter(int skipFrame); @Override boolean isSkipped(Map<String, Object> channelsData, int currentObservationStep, boolean isFinalObservation);  }