drasys.or.mp
Class Constraint

java.lang.Object
  |
  +--drasys.or.mp.Constraint

public class Constraint
extends java.lang.Object
implements ConstraintI, java.io.Serializable

Constraint implementation.

See Also:
Serialized Form

Fields inherited from interface drasys.or.mp.ConstraintI
EQUAL, FREE, GREATER, LESS, RANGE
 
Method Summary
 boolean equals(java.lang.Object o)
           
 double getLowerRange()
          Returns the lower range.
 java.lang.String getName()
          Returns the name of the constraint.
 double getRightHandSide()
          Returns the right-hand-side.
 int getRowIndex()
          Returns the row index of the constraint.
 byte getType()
          Returns the constraint type.
 double getUpperRange()
          Returns the upper range.
 ConstraintI setLowerRange(double scaler)
          Sets the lower range.
 ConstraintI setRightHandSide(double scaler)
          Sets the right-hand-side.
 ConstraintI setType(byte type)
          Sets the constraint type.
 ConstraintI setUpperRange(double scaler)
          Sets the upper range.
 java.lang.String toString()
          Returns a string representation of the constraint.
static java.lang.String typeToString(byte type)
          Returns a String representation of a variable type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

typeToString

public static java.lang.String typeToString(byte type)
Returns a String representation of a variable type.

getName

public java.lang.String getName()
Returns the name of the constraint.
Specified by:
getName in interface ConstraintI

getRowIndex

public int getRowIndex()
Returns the row index of the constraint.
Specified by:
getRowIndex in interface ConstraintI

setType

public ConstraintI setType(byte type)
Sets the constraint type.
Specified by:
setType in interface ConstraintI

getType

public byte getType()
Returns the constraint type.
Specified by:
getType in interface ConstraintI

setRightHandSide

public ConstraintI setRightHandSide(double scaler)
Sets the right-hand-side.
Specified by:
setRightHandSide in interface ConstraintI

getRightHandSide

public double getRightHandSide()
Returns the right-hand-side.
Specified by:
getRightHandSide in interface ConstraintI

setUpperRange

public ConstraintI setUpperRange(double scaler)
Sets the upper range.
Specified by:
setUpperRange in interface ConstraintI

getUpperRange

public double getUpperRange()
Returns the upper range.
Specified by:
getUpperRange in interface ConstraintI

setLowerRange

public ConstraintI setLowerRange(double scaler)
Sets the lower range.
Specified by:
setLowerRange in interface ConstraintI

getLowerRange

public double getLowerRange()
Returns the lower range.
Specified by:
getLowerRange in interface ConstraintI

toString

public java.lang.String toString()
Returns a string representation of the constraint.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com