diff --git a/contribs/drt-extensions/src/main/java/org/matsim/contrib/drt/extension/edrt/schedule/EDrtTaskFactoryImpl.java b/contribs/drt-extensions/src/main/java/org/matsim/contrib/drt/extension/edrt/schedule/EDrtTaskFactoryImpl.java index 5de0eef560d..736355552db 100644 --- a/contribs/drt-extensions/src/main/java/org/matsim/contrib/drt/extension/edrt/schedule/EDrtTaskFactoryImpl.java +++ b/contribs/drt-extensions/src/main/java/org/matsim/contrib/drt/extension/edrt/schedule/EDrtTaskFactoryImpl.java @@ -23,10 +23,10 @@ import org.matsim.contrib.drt.schedule.DrtTaskType; import org.matsim.contrib.dvrp.fleet.DvrpVehicle; import org.matsim.contrib.dvrp.path.VrpPathWithTravelData; -import org.matsim.contrib.ev.fleet.ElectricVehicle; -import org.matsim.contrib.ev.infrastructure.Charger; import org.matsim.contrib.evrp.EvDvrpVehicle; import org.matsim.contrib.evrp.VrpPathEnergyConsumptions; +import org.matsim.contrib.ev.fleet.ElectricVehicle; +import org.matsim.contrib.ev.infrastructure.Charger; /** * @author michalm diff --git a/contribs/dvrp/src/main/java/org/matsim/contrib/dvrp/passenger/InternalPassengerHandling.java b/contribs/dvrp/src/main/java/org/matsim/contrib/dvrp/passenger/InternalPassengerHandling.java index 778ebdd30c7..67da85c61a7 100644 --- a/contribs/dvrp/src/main/java/org/matsim/contrib/dvrp/passenger/InternalPassengerHandling.java +++ b/contribs/dvrp/src/main/java/org/matsim/contrib/dvrp/passenger/InternalPassengerHandling.java @@ -41,7 +41,7 @@ /** * @author Michal Maciejewski (michalm) */ -public class InternalPassengerHandling { +class InternalPassengerHandling { private static final Logger LOGGER = LogManager.getLogger(InternalPassengerHandling.class); private final String mode; @@ -50,20 +50,20 @@ public class InternalPassengerHandling { private InternalInterface internalInterface; - public InternalPassengerHandling(String mode, EventsManager eventsManager) { + InternalPassengerHandling(String mode, EventsManager eventsManager) { this.mode = mode; this.eventsManager = eventsManager; } - public void setInternalInterface(InternalInterface internalInterface) { + void setInternalInterface(InternalInterface internalInterface) { this.internalInterface = internalInterface; } - public Id createRequestId() { + Id createRequestId() { return Id.create(mode + "_" + currentRequestId.incrementAndGet(), Request.class); } - public boolean validateRequest(PassengerRequest request, PassengerRequestValidator requestValidator, double now) { + boolean validateRequest(PassengerRequest request, PassengerRequestValidator requestValidator, double now) { Set violations = requestValidator.validateRequest(request); if (!violations.isEmpty()) { String cause = String.join(", ", violations); @@ -75,7 +75,7 @@ public boolean validateRequest(PassengerRequest request, PassengerRequestValidat return violations.isEmpty(); } - public boolean tryPickUpPassenger(MobsimDriverAgent driver, MobsimPassengerAgent passenger, Id requestId, + boolean tryPickUpPassenger(MobsimDriverAgent driver, MobsimPassengerAgent passenger, Id requestId, double now) { if (internalInterface.unregisterAdditionalAgentOnLink(passenger.getId(), driver.getCurrentLinkId()) == null) { //only possible with prebooking @@ -92,7 +92,7 @@ public boolean tryPickUpPassenger(MobsimDriverAgent driver, MobsimPassengerAgent return true; } - public void dropOffPassenger(MobsimDriverAgent driver, MobsimPassengerAgent passenger, Id requestId, double now) { + void dropOffPassenger(MobsimDriverAgent driver, MobsimPassengerAgent passenger, Id requestId, double now) { MobsimVehicle mobVehicle = driver.getVehicle(); mobVehicle.removePassenger(passenger); passenger.setVehicle(null);