mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
modified activities to deal with multiple cap-dims
This commit is contained in:
parent
c1919649c7
commit
1b3af07e45
18 changed files with 211 additions and 3 deletions
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class DefaultShipmentActivityFactoryTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class DefaultTourActivityTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class DeliverServiceTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class DeliverShipmentTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class EndTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class PickupServiceTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import jsprit.core.problem.job.Shipment;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class PickupShipmentTest {
|
||||
|
||||
@Test
|
||||
public void whenGettingCapacity_itShouldReturnItCorrectly(){
|
||||
Shipment shipment = Shipment.Builder.newInstance("s").setPickupLocation("pickLoc").setDeliveryLocation("delLoc")
|
||||
.addCapacityDimension(0, 10).addCapacityDimension(1, 100).build();
|
||||
PickupShipment pick = new PickupShipment(shipment);
|
||||
assertEquals(10,pick.getCapacity().get(0));
|
||||
assertEquals(100,pick.getCapacity().get(1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenCopyingAct_itShouldCopyItCorrectly(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ import jsprit.core.problem.solution.route.activity.ServiceActivity;
|
|||
import org.junit.Test;
|
||||
|
||||
|
||||
public class ServiceActTest {
|
||||
public class ServiceActivityTest {
|
||||
|
||||
@Test
|
||||
public void whenTwoDeliveriesHaveTheSameUnderlyingJob_theyAreEqual(){
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class StartTest {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package jsprit.core.problem.solution.route.activity;
|
||||
|
||||
public class TimeWindowTest {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue