|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.moml.unit.UnitConstraint
ptolemy.moml.unit.UnitEquation
public class UnitEquation
A Unit equation is a particular type of Unit constraint, another type being a Unit inequality.
Red (rowland) |
Red (rowland) |
Field Summary |
---|
Fields inherited from class ptolemy.moml.unit.UnitConstraint |
---|
_lhs, _operator, _rhs, _source |
Constructor Summary | |
---|---|
UnitEquation(UnitExpr lhs,
UnitExpr rhs)
Construct a UnitEquation from the left and right hand sides. |
Method Summary | |
---|---|
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) |
Methods inherited from class ptolemy.moml.unit.UnitConstraint |
---|
descriptiveForm, getLhs, getOperator, getRhs, getSource, setLhs, setRhs, setSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ptolemy.moml.unit.UnitPresentation |
---|
descriptiveForm, toString |
Constructor Detail |
---|
public UnitEquation(UnitExpr lhs, UnitExpr rhs)
lhs
- The left hand side.rhs
- The right hand side.Method Detail |
---|
public static boolean areSatisfied(java.util.Vector equations)
equations
- The equations.
public UnitEquation canonicalize()
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |