@@ -0,0 +1,642 @@
+package fr.unice.polytech.si5.al.projet.truck.newApp;%0A%0Aimport java.util.Map;%0A%0A/**%0A * Created by Benjamin on 12/01/2016.%0A */%0Apublic class ActionFactory %7B%0A%09public Action buildAction(String name, Map%3CString, Object%3E actionParams) %7B%0A%09%09switch(name) %7B%0A%09%09%09case %22collect%22:%0A%09%09%09%09return new CollectDrone();%0A%09%09%09case %22send%22:%0A%09%09%09%09return new SendDrone();%0A%09%09%09case %22ship%22:%0A%09%09%09%09return new GoToDropPoint();%0A%09%09%09case %22goto%22:%0A%09%09%09%09return new GoToShippingPosition();%0A%09%09%09case %22drop%22:%0A%09%09%09%09return new Drop();%0A%09%09%09case %22pick%22:%0A%09%09%09%09return new Pick();%0A%09%09%09default:%0A%09%09%09%09throw new IllegalArgumentException(%22Can not build an Action from given description : %22 + name);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add wonderful ActionFactory