Package ptolemy.moml.unit
Class UnitConstraint
- java.lang.Object
-
- ptolemy.moml.unit.UnitConstraint
-
- Direct Known Subclasses:
UnitEquation,UnitInEquality
public abstract class UnitConstraint extends java.lang.Object- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Rowland R Johnson
- Pt.AcceptedRating:
- Red (rowland)
- Pt.ProposedRating:
- Red (rowland)
-
-
Constructor Summary
Constructors Constructor Description UnitConstraint(java.lang.String string)UnitConstraint(UnitExpr lhs, java.lang.String operator, UnitExpr rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdescriptiveForm()UnitExprgetLhs()Get the left hand side.java.lang.StringgetOperator()UnitExprgetRhs()Get the right hand side.NamedObjgetSource()Get the source of this equation.voidsetLhs(UnitExpr expr)voidsetRhs(UnitExpr expr)voidsetSource(NamedObj source)java.lang.StringtoString()
-
-
-
Method Detail
-
descriptiveForm
public java.lang.String descriptiveForm()
-
getLhs
public UnitExpr getLhs()
Get the left hand side.- Returns:
- The left hand side.
-
getOperator
public java.lang.String getOperator()
- Returns:
- The operator.
-
getRhs
public UnitExpr getRhs()
Get the right hand side.- Returns:
- The right hand side.
-
getSource
public NamedObj getSource()
Get the source of this equation.- Returns:
- The source of this equation.
-
setLhs
public void setLhs(UnitExpr expr)
-
setRhs
public void setRhs(UnitExpr expr)
-
setSource
public void setSource(NamedObj source)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-