linearalgebra
Class UnknownValue

java.lang.Object
  extended by linearalgebra.UnknownValue
All Implemented Interfaces:
java.lang.Cloneable

public final class UnknownValue
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
private static int BOUND
           
private static int CONSTRAINT
           
private static int FREE
           
private  LinearExpression m_constraint
           
private  java.lang.String m_name
           
private  int m_state
           
private  double m_value
           
 
Constructor Summary
UnknownValue(java.lang.String name)
           
 
Method Summary
 void bindUnknown(double value)
           
 void clearBindings()
           
 java.lang.Object clone()
           
 LinearExpression getConstraint()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 double getNumericValue()
           
 boolean isBound()
           
 boolean isConstrained()
           
 boolean isFree()
           
 void resolveBoundConstraints()
           
 void setConstraint(LinearExpression constraint)
           
 void solveFor(double y)
           
 void substituteConstraints()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FREE

private static final int FREE
See Also:
Constant Field Values

BOUND

private static final int BOUND
See Also:
Constant Field Values

CONSTRAINT

private static final int CONSTRAINT
See Also:
Constant Field Values

m_state

private int m_state

m_name

private java.lang.String m_name

m_value

private double m_value

m_constraint

private LinearExpression m_constraint
Constructor Detail

UnknownValue

public UnknownValue(java.lang.String name)
Method Detail

resolveBoundConstraints

public void resolveBoundConstraints()

getName

public java.lang.String getName()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

isBound

public boolean isBound()

isFree

public boolean isFree()

isConstrained

public boolean isConstrained()

getNumericValue

public double getNumericValue()
                       throws UnboundValueError
Throws:
UnboundValueError

bindUnknown

public void bindUnknown(double value)

setConstraint

public void setConstraint(LinearExpression constraint)

getConstraint

public LinearExpression getConstraint()

clearBindings

public void clearBindings()

solveFor

public void solveFor(double y)

getDescription

public java.lang.String getDescription()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

substituteConstraints

public void substituteConstraints()