MpegTsInputTransformer implements InputTransformer { public void setDistanceTolerance(Double distanceTolerance) { inclusiveBetween( 0, Double.MAX_VALUE, distanceTolerance, "distanceTolerance must be non-negative"); this.distanceTolerance = distanceTolerance; } MpegTsInputTransformer(
      InputTransformer inputTransformer,
      List<MetacardType> metacardTypes,
      Stanag4609Processor stanag4609Processor,
      KlvHandlerFactory klvHandlerFactory,
      KlvHandler defaultKlvHandler,
      StanagParserFactory stanagParserFactory,
      KlvProcessor klvProcessor,
      Double distanceTolerance); @SuppressWarnings("unused") void setSubsampleCount(Integer subsampleCount); void setDistanceTolerance(Double distanceTolerance); Double getDistanceTolerance(); @Override Metacard transform(InputStream inputStream); void setSecurityClassificationCode1(String classification); void setSecurityClassificationCode2(String classification); void setSecurityClassificationCode3(String classification); void setSecurityClassificationCode4(String classification); void setSecurityClassificationCode5(String classification); void setSecurityClassificationDefault(String classification); @Override Metacard transform(InputStream inputStream, final String id); static final String CONTENT_TYPE; static final String DATA_TYPE; }
@Test public void testSetDistanceTolerance() { MpegTsInputTransformer t = new MpegTsInputTransformer( inputTransformer, metacardTypes, stanag4609Processor, klvHandlerFactory, defaultKlvHandler, stanagParserFactory, klvProcessor, DISTANCE_TOLERANCE); double value = 10; t.setDistanceTolerance(value); assertThat(t.getDistanceTolerance(), closeTo(value, 0.1)); }