public class Unit extends Object implements PseudoNamed, Summaried, DataMatchable
Modifier and Type | Field and Description |
---|---|
String |
dimension |
String |
name |
static String |
NO_UNIT |
static String |
NO_UNIT_SYMBOL |
double |
offset |
int |
power |
double |
scale |
String |
symbol |
Constructor and Description |
---|
Unit() |
Unit(String nm,
String sb,
Dimension dim) |
Unit(String nm,
String sb,
Dimension dim,
int power,
double scale,
double offset) |
Modifier and Type | Method and Description |
---|---|
boolean |
dataMatches(Object obj) |
double |
getAbsoluteValue(double val) |
Dimension |
getDimension() |
double |
getLocalizingFactor() |
double |
getLocalizingOffset() |
double |
getLocalValue(double siVal) |
String |
getName() |
static Unit |
getNoUnit() |
int |
getPowTen() |
String |
getPseudoName() |
double |
getScale() |
String |
getSymbol() |
String |
getSymbolString() |
boolean |
isDimensionless() |
void |
resolve(LemsCollection<Dimension> dimensions) |
void |
setOffset(double d) |
void |
setPower(int p) |
void |
setScaleFactor(double f) |
String |
summary() |
String |
toString() |
public static final String NO_UNIT
public static final String NO_UNIT_SYMBOL
public String name
public String symbol
public String dimension
public int power
public double scale
public double offset
public static Unit getNoUnit()
public void setOffset(double d)
public void setScaleFactor(double f)
public void setPower(int p)
public boolean dataMatches(Object obj)
dataMatches
in interface DataMatchable
public void resolve(LemsCollection<Dimension> dimensions) throws ContentError
ContentError
public Dimension getDimension()
public double getAbsoluteValue(double val)
public double getLocalValue(double siVal)
public double getLocalizingFactor()
public double getLocalizingOffset()
public String getPseudoName()
getPseudoName
in interface PseudoNamed
public String getName()
public int getPowTen()
public double getScale()
public String getSymbol()
public boolean isDimensionless()
public String getSymbolString()
Copyright © 2020. All rights reserved.