public class UnitEquation extends UnitConstraint implements UnitPresentation
Red (rowland) |
Red (rowland) |
_lhs, _operator, _rhs, _source
Constructor and Description |
---|
UnitEquation(UnitExpr lhs,
UnitExpr rhs)
Construct a UnitEquation from the left and right hand sides.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
areSatisfied(java.util.Vector equations)
Return true if the equations are all satisfied.
|
UnitEquation |
canonicalize()
Transform to the canonical form of the equation.
|
UnitEquation |
copy()
Make a copy where the left and right sides are alos copied.
|
boolean |
isSatisfied()
Return true if this equation is satisfied.
|
java.lang.Object |
visit(EquationVisitor visitor)
Visit this Unit equation (on the way to visiting the leaves)
|
descriptiveForm, getLhs, getOperator, getRhs, getSource, setLhs, setRhs, setSource, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
descriptiveForm, toString
public static boolean areSatisfied(java.util.Vector equations)
equations
- The equations.public UnitEquation canonicalize()
Ex1, Ex2, ..., Exn = Awhere each Exi is a Unit term containing only one variable, and A is a Unit term containing one Unit and no variables.
public UnitEquation copy()
public boolean isSatisfied()
public java.lang.Object visit(EquationVisitor visitor) throws IllegalActionException
visitor
- The visitor.IllegalActionException
- Not thrown in this base class.