Package | Description |
---|---|
ptolemy.moml.unit |
Unit System Modeling Markup Language classes.
|
Modifier and Type | Method and Description |
---|---|
UnitExpr |
UnitExpr.copy()
Create a copy of this UnitExpr.
|
UnitExpr |
Unit.factor()
Factor a Unit into a UnitExpr that has UnitTerms that are in the
Library.
|
UnitExpr |
UnitConstraint.getLhs()
Get the left hand side.
|
UnitExpr |
UnitConstraint.getRhs()
Get the right hand side.
|
UnitExpr |
UnitAttribute.getUnitExpr()
Get the Unit Expression.
|
UnitExpr |
UnitTerm.getUnitExpr()
Get the element if it is a UnitExpr.
|
UnitExpr |
UnitExpr.invert()
Create a new UnitExpr that is the inverse of this UnitExpr.
|
UnitExpr |
UParser.parseUnitExpr(java.lang.String expression)
Parse a unit expression.
|
UnitExpr |
UnitExpr.reduce()
Reduce a UnitExpr to produce a UnitExpr that has at most one Unit.
|
UnitExpr |
UParser.uExpr() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
EquationVisitor._visitUnitExpr(UnitExpr unitExpr)
Visit a UnitExpr by visiting the UnitTerms.
|
void |
UnitConstraint.setLhs(UnitExpr expr) |
void |
UnitConstraint.setRhs(UnitExpr expr) |
void |
UnitAttribute.setUnitExpr(UnitExpr expr)
Set the Unit Expression.
|
void |
UnitTerm.setUnitExpr(UnitExpr expr)
Set the element to be a UnitExpr.
|
Constructor and Description |
---|
UnitConstraint(UnitExpr lhs,
java.lang.String operator,
UnitExpr rhs) |
UnitEquation(UnitExpr lhs,
UnitExpr rhs)
Construct a UnitEquation from the left and right hand sides.
|
UnitInEquality(UnitExpr lhs,
UnitExpr rhs)
Construct a UnitInEquality from the left and right hand sides.
|