|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Unit | |
|---|---|
| cds.astro | |
| cds.tools.parser | |
| Uses of Unit in cds.astro |
|---|
| Fields in cds.astro declared as Unit | |
|---|---|
Unit |
Converter.source
The source unit |
Unit |
Converter.target
The target unit |
| Methods in cds.astro that return Unit | |
|---|---|
static Unit |
Unit.addSymbol(java.lang.String symbol,
java.lang.String equiv)
Introduce a new Symbol into the list of Symbols. |
static Unit |
Unit.addSymbol(java.lang.String symbol,
java.lang.String equiv,
java.lang.String explain)
Introduce a new Symbol into the list of Symbols. |
| Methods in cds.astro with parameters of type Unit | |
|---|---|
static void |
Unit.convert(Unit source_unit,
Unit target_unit)
Convert a unit+value into another unit+value. |
void |
Unit.convertFrom(Unit source_unit)
Convert the value in argument to the target Unit. |
void |
Unit.convertTo(Unit unit)
Convert the value into another unit. |
static void |
Unit.convertUnit(Unit source_unit,
Unit target_unit)
Convert a unit+value into another unit+value. |
void |
Unit.div(Unit unit)
Division of 2 quantities. |
boolean |
Unit.isCompatibleWith(Unit unit)
Checks whether 2 units are compatible. |
void |
Unit.minus(Unit unit)
Subtraction of 2 quantities. |
void |
Unit.mult(Unit unit)
Multiplication of 2 quantities. |
void |
Unit.plus(Unit unit)
Addition of 2 quantities. |
void |
Unit.prod(Unit unit)
Product of 2 quantities. |
void |
Unit.set(Unit u)
Copy a quantity. |
void |
Unit.sum(Unit unit)
Sum of 2 quantities. |
| Constructors in cds.astro with parameters of type Unit | |
|---|---|
Unit(Unit u)
Define a Unit and Value from an existing one (clone) |
|
| Uses of Unit in cds.tools.parser |
|---|
| Methods in cds.tools.parser that return Unit | |
|---|---|
Unit |
Parser.evalUnit()
Retourne l'évaluation de l'unité complète (valeur+symbole) Attention : l'unité de chaque variable doit avoir été fixée avec setVarUnit sans quoi le résultat de evalUnit sera inexact |
Unit |
Variable.getUnit()
|
Unit |
VariableOp.getUnit()
|
| Methods in cds.tools.parser with parameters of type Unit | |
|---|---|
void |
Variable.setUnit(Unit u)
|
void |
VariableOp.setUnit(Unit unit)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||