refactor
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package logistics;
|
||||
package uebung05.logistics;
|
||||
|
||||
import logistics.quantities.FloatUnit;
|
||||
import logistics.quantities.IntUnit;
|
||||
import logistics.quantities.NeedCollector;
|
||||
import logistics.quantities.Unit;
|
||||
import uebung05.logistics.quantities.FloatUnit;
|
||||
import uebung05.logistics.quantities.IntUnit;
|
||||
import uebung05.logistics.quantities.NeedCollector;
|
||||
import uebung05.logistics.quantities.Unit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -63,7 +63,7 @@ public class Manager {
|
||||
*
|
||||
* @return The NeedCollector object containing the needs of all the vehicles
|
||||
*/
|
||||
NeedCollector collectNeeds() {
|
||||
public NeedCollector collectNeeds() {
|
||||
NeedCollector collector = new NeedCollector();
|
||||
for (Vehicle vehicle : vehicles) {
|
||||
vehicle.reportNeeds(collector);
|
||||
|
||||
Reference in New Issue
Block a user