Search in sources :

Example 1 with TimeBasedPlanApplier

use of org.btrplace.plan.TimeBasedPlanApplier 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));
    }
}
Also used : DefaultChocoScheduler(org.btrplace.scheduler.choco.DefaultChocoScheduler) ChocoScheduler(org.btrplace.scheduler.choco.ChocoScheduler) TimeBasedPlanApplier(org.btrplace.plan.TimeBasedPlanApplier) DefaultChocoScheduler(org.btrplace.scheduler.choco.DefaultChocoScheduler) DependencyBasedPlanApplier(org.btrplace.plan.DependencyBasedPlanApplier) ReconfigurationPlan(org.btrplace.plan.ReconfigurationPlan)

Aggregations

DependencyBasedPlanApplier (org.btrplace.plan.DependencyBasedPlanApplier)1 ReconfigurationPlan (org.btrplace.plan.ReconfigurationPlan)1 TimeBasedPlanApplier (org.btrplace.plan.TimeBasedPlanApplier)1 ChocoScheduler (org.btrplace.scheduler.choco.ChocoScheduler)1 DefaultChocoScheduler (org.btrplace.scheduler.choco.DefaultChocoScheduler)1