From e594ae7ee261bd3359d8cce55deda989bcb33206 Mon Sep 17 00:00:00 2001 From: Tharre Date: Thu, 24 May 2018 14:26:01 +0200 Subject: Change OperationService rankVehicle() #25963 Taken an opCode instead of a operationId, since we need the ranking before the operation is created. --- .../groupphase/einsatzverwaltung/service/OperationService.java | 8 ++++---- .../einsatzverwaltung/service/OperationServiceImpl.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationService.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationService.java index 98a2068..4b7e630 100644 --- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationService.java +++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationService.java @@ -48,15 +48,15 @@ public interface OperationService { throws InvalidOperationException, ServiceException; /** - * Get all available vehicles, sorted by how well they fit to the given operation, starting with + * Get all available vehicles, sorted by how well they fit to the given opCode, starting with * the best fitting. * - * @param operationId id of the operation that is used to determine the ranking + * @param opCode the operation code that is used to determine the ranking * @return a sorted list containing all available vehicles - * @throws InvalidOperationException if the operationId is invalid or does not exist + * @throws InvalidOperationException if the opCode is invalid * @throws ServiceException if loading the stored vehicles failed */ - SortedSet rankVehicles(long operationId) + SortedSet rankVehicles(String opCode) throws InvalidOperationException, ServiceException; /** diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationServiceImpl.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationServiceImpl.java index 4663d76..e1d6f29 100644 --- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationServiceImpl.java +++ b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/OperationServiceImpl.java @@ -122,7 +122,7 @@ public class OperationServiceImpl implements OperationService { } @Override - public SortedSet rankVehicles(long operationId) + public SortedSet rankVehicles(String opCode) throws InvalidOperationException, ServiceException { throw new UnsupportedOperationException(); } -- cgit v1.2.3-70-g09d2