public class JoinConstraint
extends java.lang.Object
An assertion that quantities are related in a certain way.
A constraint has a subject, a verb, and an object, each of which can either be unknown or given. The unknown quantities are termed "unknowns". Each unknown has a name, and can appear in multiple constraints.
A triple satisfies a constraint if it satisfies the following conditions.
If a triple satisfies a constraint then it defines an assignment of values to the variables in the constraint.
Constructor and Description |
---|
JoinConstraint(Quantum subject,
Quantum verb,
Quantum object)
Create a join constraint
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Quantum |
getObject() |
Quantum |
getSubject() |
Quantum |
getVerb() |
int |
hashCode() |
java.lang.String |
toString() |
public Quantum getSubject()
public Quantum getVerb()
public Quantum getObject()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object