setTimeWindow(新TimeWindow(start_time,end_time))
用于为任务/托运添加时间限制。但我想有一个完整的例子。是否有jsprit在有时限装运上的完整例子?
发布于 2016-01-29 14:16:23
您可以通过以下方式设置托运的收件和交货时间窗口:
Shipment shipment = Shipment.Builder.newInstance("1") .addSizeDimension(0,1) .setPickupLocation(Location.newInstance(5,7)) .setPickupTimeWindow(TimeWindow.newInstance(0,1200)) .setDeliveryLocation(Location.newInstance(6,9)) .setDeliveryTimeWindow(TimeWindow.newInstance(2000,4000)) .build();
https://stackoverflow.com/questions/35080600
复制相似问题