public class LonelySplitter extends Object implements ConstraintSplitter<Lonely>
Lonelyconstraints. When the constraint focuses VMs among different partitions, the constraint is split.
This operation is conservative wrt. the constraint semantic.
|Constructor and Description|
|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.
public boolean split(Lonely 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.