public class Gather extends SatConstraint
If the restriction is discrete, VMs may then be temporary not co-located during the reconfiguration process but they are ensure of being co-located at the end of the reconfiguration.
If the restriction is continuous, VMs will always be co-located. In practice, if the VMs are all running, they have to already be co-located and it will not possible to relocate them to avoid a potential temporary separation.
Constructor and Description |
---|
Gather(Collection<VM> vms)
Make a new constraint with a discrete restriction.
|
Gather(Collection<VM> vms,
boolean continuous)
Make a new constraint.
|
Modifier and Type | Method and Description |
---|---|
SatConstraintChecker<Gather> |
getChecker()
Get the validator used to check if a plan satisfies the constraint.
|
String |
toString() |
equals, getInvolvedNodes, getInvolvedVMs, hashCode, isContinuous, isSatisfied, isSatisfied, restrictionToString, setContinuous
public Gather(Collection<VM> vms)
vms
- the VMs to grouppublic Gather(Collection<VM> vms, boolean continuous)
vms
- the VMs to groupcontinuous
- true
for a continuous restrictionpublic SatConstraintChecker<Gather> getChecker()
SatConstraint
getChecker
in class SatConstraint
SatConstraintChecker
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.