public class Assignment
extends java.lang.Object
| Constructor and Description |
|---|
Assignment()
Creates an empty assignment.
|
Assignment(Assignment ass1,
Assignment ass2)
Creates an assignment corresponding
to the union of the two specified assignments.
|
Assignment(Assignment ass,
Variable var,
boolean val)
Creates an assignment corresponding to adding to the specified assignment
to assignment of the specified variable to the specified value.
|
Assignment(java.util.Map<Variable,java.lang.Boolean> ass)
Creates the assignment corresponding to the specified mapping.
|
Assignment(Variable var,
boolean val)
Creates the assignment that associates the specified value
to the specified variable.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Variable> |
assignedVariables()
Returns the list of assigned variables.
|
java.lang.Boolean |
assignment(Variable var)
Returns the boolean assignment of the specified variable.
|
static java.util.List<Assignment> |
carthesianProduct(java.util.Collection<Assignment> asses1,
java.util.Collection<Assignment> asses2)
Returns the Carthesian product of the two specified lists of assignments.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public Assignment(Variable var, boolean val)
var - the variable that is being assigned.val - the value that is assigned to the variable.public Assignment(java.util.Map<Variable,java.lang.Boolean> ass)
ass - a mapping that associates booleans to variables.public Assignment()
public Assignment(Assignment ass, Variable var, boolean val)
ass - the base assignment.var - the added variable.val - the value that is assigned to the variable.public Assignment(Assignment ass1, Assignment ass2)
ass1 - the first assignment.ass2 - the second assignment.public java.util.Set<Variable> assignedVariables()
public java.lang.Boolean assignment(Variable var)
var - the variable.public static java.util.List<Assignment> carthesianProduct(java.util.Collection<Assignment> asses1, java.util.Collection<Assignment> asses2)
asses1 - the first list of assignments.asses2 - the second list of assignments.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object