public class AmongSplitter extends Object implements ConstraintSplitter<Among>
When the constraint focuses VMs among different partitions, the constraint is split accordingly. If the nodes groups are also split among different partitions, this leads to a un-solvable problem as it is not possible to synchronize the sub-among constraints to make them choose the same nodes group.
|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(Among 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.