public class Online extends SatConstraint
Constructor and Description |
---|
Online(Node n)
Make a new discrete constraint.
|
Online(Node n,
boolean continuous)
Make a new constraint.
|
Modifier and Type | Method and Description |
---|---|
SatConstraintChecker<Online> |
getChecker()
Get the validator used to check if a plan satisfies the constraint.
|
static List<Online> |
newOnline(Collection<Node> nodes)
Instantiate discrete constraints for a collection of nodes.
|
String |
toString() |
equals, getInvolvedNodes, getInvolvedVMs, hashCode, isContinuous, isSatisfied, isSatisfied, restrictionToString, setContinuous
public Online(Node n)
n
- the node to set onlinepublic Online(Node n, boolean continuous)
n
- the node to set onlinecontinuous
- true
for a continuous restrictionpublic static List<Online> newOnline(Collection<Node> nodes)
nodes
- the nodes to integratepublic SatConstraintChecker<Online> getChecker()
SatConstraint
getChecker
in class SatConstraint
SatConstraintChecker
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.