|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.metric.MetricExpression
The MetricExpression class represents a metric expression. A
metric expression consists of a value and a certain unit and depicts a
length. So the structure of a metric expression looks like:
ValueUnit* * * * * * * * * * * * * * * * * * * *
Metric,
MetricConstants,
MetricExpressionParser| Field Summary | |
int |
unit
instance variable for the length unit |
double |
value
instance variable for the length value |
| Constructor Summary | |
MetricExpression(double value,
int unit)
Constructor with given value and unit for the
length to express. |
|
MetricExpression(MetricExpression other)
Copy constructor. |
|
| Method Summary | |
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object o)
|
MetricExpression |
deepCopy()
Creates a deep copy from this instance of MetricExpression. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double value
public int unit
| Constructor Detail |
public MetricExpression(double value,
int unit)
value and unit for the
length to express.
value - the value of the lengthunit - the unit of the lengthpublic MetricExpression(MetricExpression other)
other - the MetricExpression instance to create a copy
from| Method Detail |
public MetricExpression deepCopy()
MetricExpression.
public boolean equals(java.lang.Object obj)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.Object clone()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||