/** * Sets the borders of the location generator such that it spans the * specified area. The min position is <code>(0,0)</code>, and max is * <code>(sqrt(area),sqrt(area))</code>. * @param area The area to use. * @return This, as per the builder pattern. */ public Builder squareByArea(double area) { return square(Math.sqrt(area)); }
.announceTimes( TimeSeries.homogenousPoisson(4 * 60 * 60 * 1000L, 10)) .locations(Locations.builder().square(5).buildUniform()) .timeWindows(TimeWindows.builder().build()) .build())