public class Ready extends SatConstraint
The restriction provided by the constraint is discrete however, if the VM is already in the ready state, then its state will be unchanged.
Constructor and Description |
---|
Ready(VM vm)
Make a new constraint.
|
Ready(VM vm,
boolean continuous)
Make a new constraint.
|
Modifier and Type | Method and Description |
---|---|
SatConstraintChecker<Ready> |
getChecker()
Get the validator used to check if a plan satisfies the constraint.
|
static List<Ready> |
newReady(Collection<VM> vms)
Instantiate discrete constraints for a collection of VMs.
|
String |
toString() |
equals, getInvolvedNodes, getInvolvedVMs, hashCode, isContinuous, isSatisfied, isSatisfied, restrictionToString, setContinuous
public Ready(VM vm)
vm
- the VM to make readypublic Ready(VM vm, boolean continuous)
vm
- the VM to make readycontinuous
- true
for a continuous restrictionpublic static List<Ready> newReady(Collection<VM> vms)
vms
- the VMs to integratepublic SatConstraintChecker<Ready> getChecker()
SatConstraint
getChecker
in class SatConstraint
SatConstraintChecker
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.