Commit 45b39ed7 authored by Iran's avatar Iran
Browse files

chnage the place of add duration

parent acec6841
......@@ -81,6 +81,8 @@ public class TestReusableResourceScheduler {
AllenIntervalConstraint dur3 = new AllenIntervalConstraint(AllenIntervalConstraint.Type.Duration, new Bounds(35, 55));
dur3.setFrom(three);
dur3.setTo(three);
temporalActivitySolver.addConstraints(dur1,dur2,dur3);
//There are PRECEDENCES between activities:
//(note: these are binary constraints, which means that each constraint is an edge from an activity to another activity)
......@@ -93,7 +95,7 @@ public class TestReusableResourceScheduler {
//temporalActivitySolver.addConstraint(con1);
//Add the constraints
temporalActivitySolver.addConstraints(dur1,dur2,dur3);
//Visualization
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment