use of org.btrplace.plan.DependencyBasedPlanApplier in project scheduler by btrplace.
the class GettingStarted method run.
@Override
public void run() {
Model model = makeModel();
List<SatConstraint> cstrs = makeConstraints();
ChocoScheduler ra = new DefaultChocoScheduler();
ReconfigurationPlan plan = ra.solve(model, cstrs);
if (plan != null) {
System.out.println("Time-based plan:");
System.out.println(new TimeBasedPlanApplier().toString(plan));
System.out.println("\nDependency based plan:");
System.out.println(new DependencyBasedPlanApplier().toString(plan));
}
}
Aggregations