InflowTimeSeries { public double getSpeed(double time) { if (constantFlowPerLane >= 0) { return constantInitSpeed; } return Tables.intpextp(timeValues, speedValues, time); } InflowTimeSeries(List<Inflow> inflow); double getFlowPerLane(double time); double getSpeed(double time);  }
@Test public final void testGetSpeed() { assertEquals(24.0, inflowTimeSeries.getSpeed(0.0), delta); assertEquals(24.0, inflowTimeSeries.getSpeed(300.0), delta); assertEquals(24.0, inflowTimeSeries.getSpeed(600.0), delta); assertEquals(18.0, inflowTimeSeries.getSpeed(750.0), delta); assertEquals(12.0, inflowTimeSeries.getSpeed(900.0), delta); }