public class Quarantine extends SatConstraint
The restriction provided by the constraint is only continuous.
Constructor and Description |
---|
Quarantine(Node n)
Make a new constraint.
|
Modifier and Type | Method and Description |
---|---|
SatConstraintChecker<Quarantine> |
getChecker()
Get the validator used to check if a plan satisfies the constraint.
|
static List<Quarantine> |
newQuarantine(Collection<Node> nodes)
Instantiate constraints for a collection of nodes.
|
boolean |
setContinuous(boolean b)
Indicates if the restriction provided by the constraint is continuous.
|
String |
toString() |
equals, getInvolvedNodes, getInvolvedVMs, hashCode, isContinuous, isSatisfied, isSatisfied, restrictionToString
public Quarantine(Node n)
n
- the node to put into quarantinepublic static List<Quarantine> newQuarantine(Collection<Node> nodes)
nodes
- the nodes to integratepublic SatConstraintChecker<Quarantine> getChecker()
SatConstraint
getChecker
in class SatConstraint
SatConstraintChecker
public boolean setContinuous(boolean b)
SatConstraint
setContinuous
in class SatConstraint
b
- true
to ask for a continuous satisfaction, false
for a discrete satisfaction.true
iff the parameter has been consideredCopyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.