public interface ConstraintSplitter<C extends Constraint>
In practice, the splitter ensures the given constraint does not spread over multiple partitions. This may require to split the constraint.
|Modifier and Type||Method and Description|
Get the class of the Constraint associated to the splitter.
Ensure a given constraint fit into a single partition.
boolean split(C cstr, Instance origin, List<Instance> partitions, gnu.trove.map.hash.TIntIntHashMap vmsPosition, gnu.trove.map.hash.TIntIntHashMap nodePosition)
cstr- the model constraint
origin- the original instance to split
partitions- the possible partitions @return
falseiff this leads to a problem without solutions.
vmsPosition- the partition associated to each VM
nodePosition- the partition associated to each node
trueiff the split was successful.
Copyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.