Class ChocoViews
java.lang.Object
org.btrplace.scheduler.choco.view.ChocoViews
public class ChocoViews extends Object
Utility class to manipulate collection of
ChocoView
.-
Method Summary
Modifier and Type Method Description static List<ChocoView>
resolveDependencies(Model mo, List<ChocoView> views, Collection<String> base)
Flatten the views while considering their dependencies.
-
Method Details
-
resolveDependencies
public static List<ChocoView> resolveDependencies(Model mo, List<ChocoView> views, Collection<String> base) throws SchedulerExceptionFlatten the views while considering their dependencies. Operations over the views that respect the iteration order, satisfies the dependencies.- Parameters:
mo
- the modelviews
- the associated solver viewsbase
- the identifier of the core views.- Returns:
- the list of views, dependency-free
- Throws:
SchedulerException
- if there is a cyclic dependency
-