|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.constraintsolver.VariableSelectionAttributes
VariableSelectionAttributes object to model the attributes and sort behavior of a variable and its associated selection attributes. The first selection attribute is the size of the remaining value domain. The second selection attribute is the number of forward constraint rules which apply to this variable. A forward constraint rule is one which uses only the current variable and future (yet to be considered) variables.
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
UnitTest#testBinding
Field Summary | |
protected CycVariable |
cycVariable
The constraint variable under consideration. |
protected java.lang.Integer |
degree
The number of applicable forward rules. |
protected java.lang.Integer |
remainingDomainSize
The size of the remaining value domain. |
Constructor Summary | |
VariableSelectionAttributes(CycVariable cycVariable,
java.lang.Integer remainingDomainSize,
java.lang.Integer degree)
Construct a new VariableSelectionAttibutes object given the variable, remaining domain size, and degree. |
Method Summary | |
int |
compareTo(java.lang.Object object)
Compares this object with the specified object for order. |
java.lang.String |
toString()
Returns a String representation of the VariableSelectionAttributes object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected CycVariable cycVariable
protected java.lang.Integer remainingDomainSize
protected java.lang.Integer degree
Constructor Detail |
public VariableSelectionAttributes(CycVariable cycVariable, java.lang.Integer remainingDomainSize, java.lang.Integer degree)
Method Detail |
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- the reference object with which to compare.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |