org.mariuszgromada.math.mxparser.parsertokens.Unit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MathParser.org-mXparser Show documentation
Show all versions of MathParser.org-mXparser Show documentation
mXparser is a super easy, rich, fast and highly flexible math expression parser library (parser and evaluator of mathematical expressions / formulas provided as plain text / string). Software delivers easy to use API for JAVA, Android and C# .NET/MONO (Common Language Specification compliant: F#, Visual Basic, C++/CLI). *** If you find the software useful donation is something you might consider: https://mathparser.org/donate/ *** Scalar Scientific Calculator, Charts and Scripts, Scalar Lite: https://play.google.com/store/apps/details?id=org.mathparser.scalar.lite *** Scalar Pro: https://play.google.com/store/apps/details?id=org.mathparser.scalar.pro *** ScalarMath.org: https://scalarmath.org/ *** MathSpace.pl: https://mathspace.pl/ ***
/*
* @(#)Unit.java 5.0.4 2022-05-22
*
* MathParser.org-mXparser DUAL LICENSE AGREEMENT as of date 2022-05-22
* The most up-to-date license is available at the below link:
* - https://mathparser.org/mxparser-license
*
* AUTHOR: Copyright 2010 - 2022 Mariusz Gromada - All rights reserved
* PUBLISHER: INFIMA - https://payhip.com/infima
*
* SOFTWARE means source code and/or binary form and/or documentation.
* PRODUCT: MathParser.org-mXparser SOFTWARE
* LICENSE: DUAL LICENSE AGREEMENT
*
* BY INSTALLING, COPYING, OR OTHERWISE USING THE PRODUCT, YOU AGREE TO BE
* BOUND BY ALL OF THE TERMS AND CONDITIONS OF THE DUAL LICENSE AGREEMENT.
*
* AUTHOR & PUBLISHER provide the PRODUCT under the DUAL LICENSE AGREEMENT
* model designed to meet the needs of both non-commercial use as well as
* commercial use.
*
* NON-COMMERCIAL USE means any use or activity where a fee is not charged
* and the purpose is not the sale of a good or service, and the use or
* activity is not intended to produce a profit. NON-COMMERCIAL USE examples:
*
* 1. Free Open-Source Software ("FOSS").
* 2. Non-commercial use in research, scholarly and education.
*
* COMMERCIAL USE means any use or activity where a fee is charged or the
* purpose is the sale of a good or service, or the use or activity is
* intended to produce a profit. COMMERCIAL USE examples:
*
* 1. OEMs (Original Equipment Manufacturers).
* 2. ISVs (Independent Software Vendors).
* 3. VARs (Value Added Resellers).
* 4. Other distributors that combine and distribute commercially licensed
* software.
*
* IN CASE YOU WANT TO USE THE PRODUCT COMMERCIALLY, YOU MUST PURCHASE THE
* APPROPRIATE LICENSE FROM "INFIMA" ONLINE STORE, STORE ADDRESS:
*
* 1. https://mathparser.org/order-commercial-license
* 2. https://payhip.com/infima
*
* NON-COMMERCIAL LICENSE
*
* Redistribution and use of the PRODUCT in source and/or binary forms,
* with or without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain unmodified content of the
* entire MathParser.org-mXparser DUAL LICENSE AGREEMENT, including
* definition of NON-COMMERCIAL USE, definition of COMMERCIAL USE,
* NON-COMMERCIAL LICENSE conditions, COMMERCIAL LICENSE conditions, and
* the following DISCLAIMER.
* 2. Redistributions in binary form must reproduce the entire content of
* MathParser.org-mXparser DUAL LICENSE AGREEMENT in the documentation
* and/or other materials provided with the distribution, including
* definition of NON-COMMERCIAL USE, definition of COMMERCIAL USE,
* NON-COMMERCIAL LICENSE conditions, COMMERCIAL LICENSE conditions, and
* the following DISCLAIMER.
* 3. Any form of redistribution requires confirmation and signature of
* the NON-COMMERCIAL USE by successfully calling the method:
* License.iConfirmNonCommercialUse(...)
* The method call takes place only internally for logging purposes and
* there is no connection with other external services and no data is
* sent or collected. The lack of a method call (or its successful call)
* does not affect the operation of the PRODUCT in any way. Please see
* the API documentation.
*
* COMMERCIAL LICENSE
*
* 1. Before purchasing a commercial license, AUTHOR & PUBLISHER allow you
* to download, install and use up to three copies of the PRODUCT to
* perform integration tests, confirm the quality of the PRODUCT and
* its suitability. The testing period should be limited to fourteen
* days. Tests should be performed under the conditions of test
* environments. The purpose of the tests must not be to generate profit.
* 2. Provided that you purchased a license from "INFIMA" online store
* (store address: https://mathparser.org/order-commercial-license or
* https://payhip.com/infima), and you comply with all below terms and
* conditions, and you have acknowledged and understood the following
* DISCLAIMER, AUTHOR & PUBLISHER grant you a nonexclusive license
* including the following rights:
* 3. The license has been granted only to you, i.e., the person or entity
* that made the purchase, who is identified and confirmed by the data
* provided during the purchase.
* 4. In case you purchased a license in the "ONE-TIME PURCHASE" model,
* the license has been granted only for the PRODUCT version specified
* in the purchase. The upgrade policy gives you additional rights and
* is described in the dedicated section below.
* 5. In case you purchased a license in the "SUBSCRIPTION" model, you can
* install and use any version of the PRODUCT, but only during the
* subscription validity period.
* 6. In case you purchased a "SINGLE LICENSE" you can install and use the
* PRODUCT from one workstation.
* 7. Additional copies of the PRODUCT can be installed and used from more
* than one workstation; however, this number is limited to the number
* of workstations purchased as per order.
* 8. In case you purchased a "SITE LICENSE ", the PRODUCT can be installed
* and used from all workstations located at your premises.
* 9. You may incorporate the unmodified PRODUCT into your own products
* and software.
* 10. If you purchased a license with the "SOURCE CODE" option, you may
* modify the PRODUCT's source code and incorporate the modified source
* code into your own products and/or software.
* 11. Provided that the license validity period has not expired, you may
* distribute your product and/or software with the incorporated
* PRODUCT royalty-free.
* 12. You may make copies of the PRODUCT for backup and archival purposes.
* 13. Any form of redistribution requires confirmation and signature of
* the COMMERCIAL USE by successfully calling the method:
* License.iConfirmCommercialUse(...)
* The method call takes place only internally for logging purposes and
* there is no connection with other external services and no data is
* sent or collected. The lack of a method call (or its successful call)
* does not affect the operation of the PRODUCT in any way. Please see
* the API documentation.
* 14. AUTHOR & PUBLISHER reserve all rights not expressly granted to you
* in this agreement.
*
* ADDITIONAL CLARIFICATION ON WORKSTATION
*
* A workstation is a device, a remote device, or a virtual device, used by
* you, your employees, or other entities to whom you have commissioned the
* tasks. For example, the number of workstations may refer to the number
* of software developers, engineers, architects, scientists, and other
* professionals who use the PRODUCT on your behalf. The number of
* workstations is not the number of copies of your end-product that you
* distribute to your end-users.
*
* By purchasing the COMMERCIAL LICENSE, you only pay for the number of
* workstations, while the number of copies of your final product
* (delivered to your end-users) is not limited.
*
* UPGRADE POLICY
*
* The PRODUCT is versioned according to the following convention:
*
* [MAJOR].[MINOR].[PATCH]
*
* 1. COMMERCIAL LICENSE holders can install and use the updated version
* for bug fixes free of charge, i.e. if you have purchased a license
* for the [MAJOR].[MINOR] version (e.g.: 5.0), you can freely install
* all the various releases specified in the [PATCH] version (e.g.: 5.0.2).
* The license terms remain unchanged after the update.
* 2. COMMERCIAL LICENSE holders for [MAJOR].[MINOR] version (e.g.: 5.0)
* can install and use the updated version [MAJOR].[MINOR + 1] free of
* charge, i.e., plus one release in the [MINOR] range (e.g.: 5.1). The
* license terms remain unchanged after the update.
* 3. COMMERCIAL LICENSE holders who wish to upgrade their version, but are
* not eligible for the free upgrade, can claim a discount when
* purchasing the upgrade. For this purpose, please contact us via e-mail.
*
* DISCLAIMER
*
* THIS PRODUCT IS PROVIDED BY AUTHOR & PUBLISHER "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL AUTHOR OR PUBLISHER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS PRODUCT, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* THE VIEWS AND CONCLUSIONS CONTAINED IN THE PRODUCT AND DOCUMENTATION ARE
* THOSE OF THE AUTHORS AND SHOULD NOT BE INTERPRETED AS REPRESENTING
* OFFICIAL POLICIES, EITHER EXPRESSED OR IMPLIED, OF AUTHOR OR PUBLISHER.
*
* CONTACT
*
* - e-mail: [email protected]
* - website: https://mathparser.org
* - source code: https://github.com/mariuszgromada/MathParser.org-mXparser
* - online store: https://mathparser.org/order-commercial-license
* - online store: https://payhip.com/infima
*/
package org.mariuszgromada.math.mxparser.parsertokens;
import org.mariuszgromada.math.mxparser.mXparser;
/**
* Units - mXparser tokens definition.
*
* @author Mariusz Gromada
* MathParser.org - mXparser project page
* mXparser on GitHub
* INFIMA place to purchase a commercial MathParser.org-mXparser software license
* [email protected]
* ScalarMath.org - a powerful math engine and math scripting language
* Scalar Lite
* Scalar Pro
* MathSpace.pl
*
* @version 5.0.0
*/
public final class Unit {
/*
* Unit - token type id.
*/
public static final int TYPE_ID = 12;
public static final String TYPE_DESC = "Unit";
/*
* Unit - tokens id.
*/
/* Ratio, Fraction */
public static final int PERC_ID = 1;
public static final int PROMIL_ID = 2;
/* Metric prefixes */
public static final int YOTTA_ID = 101;
public static final int ZETTA_ID = 102;
public static final int EXA_ID = 103;
public static final int PETA_ID = 104;
public static final int TERA_ID = 105;
public static final int GIGA_ID = 106;
public static final int MEGA_ID = 107;
public static final int KILO_ID = 108;
public static final int HECTO_ID = 109;
public static final int DECA_ID = 110;
public static final int DECI_ID = 111;
public static final int CENTI_ID = 112;
public static final int MILLI_ID = 113;
public static final int MICRO_ID = 114;
public static final int NANO_ID = 115;
public static final int PICO_ID = 116;
public static final int FEMTO_ID = 117;
public static final int ATTO_ID = 118;
public static final int ZEPTO_ID = 119;
public static final int YOCTO_ID = 120;
/* Units of length / distance */
public static final int METRE_ID = 201;
public static final int KILOMETRE_ID = 202;
public static final int CENTIMETRE_ID = 203;
public static final int MILLIMETRE_ID = 204;
public static final int INCH_ID = 205;
public static final int YARD_ID = 206;
public static final int FEET_ID = 207;
public static final int MILE_ID = 208;
public static final int NAUTICAL_MILE_ID = 209;
/* Units of area */
public static final int METRE2_ID = 301;
public static final int CENTIMETRE2_ID = 302;
public static final int MILLIMETRE2_ID = 303;
public static final int ARE_ID = 304;
public static final int HECTARE_ID = 305;
public static final int ACRE_ID = 306;
public static final int KILOMETRE2_ID = 307;
/* Units of volume */
public static final int MILLIMETRE3_ID = 401;
public static final int CENTIMETRE3_ID = 402;
public static final int METRE3_ID = 403;
public static final int KILOMETRE3_ID = 404;
public static final int MILLILITRE_ID = 405;
public static final int LITRE_ID = 406;
public static final int GALLON_ID = 407;
public static final int PINT_ID = 408;
/* Units of time */
public static final int SECOND_ID = 501;
public static final int MILLISECOND_ID = 502;
public static final int MINUTE_ID = 503;
public static final int HOUR_ID = 504;
public static final int DAY_ID = 505;
public static final int WEEK_ID = 506;
public static final int JULIAN_YEAR_ID = 507;
/* Units of mass */
public static final int KILOGRAM_ID = 508;
public static final int GRAM_ID = 509;
public static final int MILLIGRAM_ID = 510;
public static final int DECAGRAM_ID = 511;
public static final int TONNE_ID = 512;
public static final int OUNCE_ID = 513;
public static final int POUND_ID = 514;
/* Units of information */
public static final int BIT_ID = 601;
public static final int KILOBIT_ID = 602;
public static final int MEGABIT_ID = 603;
public static final int GIGABIT_ID = 604;
public static final int TERABIT_ID = 605;
public static final int PETABIT_ID = 606;
public static final int EXABIT_ID = 607;
public static final int ZETTABIT_ID = 608;
public static final int YOTTABIT_ID = 609;
public static final int BYTE_ID = 610;
public static final int KILOBYTE_ID = 611;
public static final int MEGABYTE_ID = 612;
public static final int GIGABYTE_ID = 613;
public static final int TERABYTE_ID = 614;
public static final int PETABYTE_ID = 615;
public static final int EXABYTE_ID = 616;
public static final int ZETTABYTE_ID = 617;
public static final int YOTTABYTE_ID = 618;
/* Units of energy */
public static final int JOULE_ID = 701;
public static final int ELECTRONO_VOLT_ID = 702;
public static final int KILO_ELECTRONO_VOLT_ID = 703;
public static final int MEGA_ELECTRONO_VOLT_ID = 704;
public static final int GIGA_ELECTRONO_VOLT_ID = 705;
public static final int TERA_ELECTRONO_VOLT_ID = 706;
/* Units of speed */
public static final int METRE_PER_SECOND_ID = 801;
public static final int KILOMETRE_PER_HOUR_ID = 802;
public static final int MILE_PER_HOUR_ID = 803;
public static final int KNOT_ID = 804;
/* Units of acceleration */
public static final int METRE_PER_SECOND2_ID = 901;
public static final int KILOMETRE_PER_HOUR2_ID = 902;
public static final int MILE_PER_HOUR2_ID = 903;
/* Units of angle */
public static final int RADIAN_ARC_ID = 1001;
public static final int DEGREE_ARC_ID = 1002;
public static final int MINUTE_ARC_ID = 1003;
public static final int SECOND_ARC_ID = 1004;
/*
* Unit - tokens key words.
*/
/* Ratio, Fraction */
public static final String PERC_STR = "[%]";
public static final String PROMIL_STR = "[%%]";
/* Metric prefixes */
public static final String YOTTA_STR = "[Y]";
public static final String YOTTA_SEPT_STR = "[sept]";
public static final String ZETTA_STR = "[Z]";
public static final String ZETTA_SEXT_STR = "[sext]";
public static final String EXA_STR = "[E]";
public static final String EXA_QUINT_STR = "[quint]";
public static final String PETA_STR = "[P]";
public static final String PETA_QUAD_STR = "[quad]";
public static final String TERA_STR = "[T]";
public static final String TERA_TRIL_STR = "[tril]";
public static final String GIGA_STR = "[G]";
public static final String GIGA_BIL_STR = "[bil]";
public static final String MEGA_STR = "[M]";
public static final String MEGA_MIL_STR = "[mil]";
public static final String KILO_STR = "[k]";
public static final String KILO_TH_STR = "[th]";
public static final String HECTO_STR = "[hecto]";
public static final String HECTO_HUND_STR = "[hund]";
public static final String DECA_STR = "[deca]";
public static final String DECA_TEN_STR = "[ten]";
public static final String DECI_STR = "[deci]";
public static final String CENTI_STR = "[centi]";
public static final String MILLI_STR = "[milli]";
public static final String MICRO_STR = "[mic]";
public static final String NANO_STR = "[n]";
public static final String PICO_STR = "[p]";
public static final String FEMTO_STR = "[f]";
public static final String ATTO_STR = "[a]";
public static final String ZEPTO_STR = "[z]";
public static final String YOCTO_STR = "[y]";
/* Units of length / distance */
public static final String METRE_STR = "[m]";
public static final String KILOMETRE_STR = "[km]";
public static final String CENTIMETRE_STR = "[cm]";
public static final String MILLIMETRE_STR = "[mm]";
public static final String INCH_STR = "[inch]";
public static final String YARD_STR = "[yd]";
public static final String FEET_STR = "[ft]";
public static final String MILE_STR = "[mile]";
public static final String NAUTICAL_MILE_STR = "[nmi]";
/* Units of area */
public static final String METRE2_STR = "[m2]";
public static final String CENTIMETRE2_STR = "[cm2]";
public static final String MILLIMETRE2_STR = "[mm2]";
public static final String ARE_STR = "[are]";
public static final String HECTARE_STR = "[ha]";
public static final String ACRE_STR = "[acre]";
public static final String KILOMETRE2_STR = "[km2]";
/* Units of volume */
public static final String MILLIMETRE3_STR = "[mm3]";
public static final String CENTIMETRE3_STR = "[cm3]";
public static final String METRE3_STR = "[m3]";
public static final String KILOMETRE3_STR = "[km3]";
public static final String MILLILITRE_STR = "[ml]";
public static final String LITRE_STR = "[l]";
public static final String GALLON_STR = "[gall]";
public static final String PINT_STR = "[pint]";
/* Units of time */
public static final String SECOND_STR = "[s]";
public static final String MILLISECOND_STR = "[ms]";
public static final String MINUTE_STR = "[min]";
public static final String HOUR_STR = "[h]";
public static final String DAY_STR = "[day]";
public static final String WEEK_STR = "[week]";
public static final String JULIAN_YEAR_STR = "[yearj]";
/* Units of mass */
public static final String KILOGRAM_STR = "[kg]";
public static final String GRAM_STR = "[gr]";
public static final String MILLIGRAM_STR = "[mg]";
public static final String DECAGRAM_STR = "[dag]";
public static final String TONNE_STR = "[t]";
public static final String OUNCE_STR = "[oz]";
public static final String POUND_STR = "[lb]";
/* Units of information */
public static final String BIT_STR = "[b]";
public static final String KILOBIT_STR = "[kb]";
public static final String MEGABIT_STR = "[Mb]";
public static final String GIGABIT_STR = "[Gb]";
public static final String TERABIT_STR = "[Tb]";
public static final String PETABIT_STR = "[Pb]";
public static final String EXABIT_STR = "[Eb]";
public static final String ZETTABIT_STR = "[Zb]";
public static final String YOTTABIT_STR = "[Yb]";
public static final String BYTE_STR = "[B]";
public static final String KILOBYTE_STR = "[kB]";
public static final String MEGABYTE_STR = "[MB]";
public static final String GIGABYTE_STR = "[GB]";
public static final String TERABYTE_STR = "[TB]";
public static final String PETABYTE_STR = "[PB]";
public static final String EXABYTE_STR = "[EB]";
public static final String ZETTABYTE_STR = "[ZB]";
public static final String YOTTABYTE_STR = "[YB]";
/* Units of energy */
public static final String JOULE_STR = "[J]";
public static final String ELECTRONO_VOLT_STR = "[eV]";
public static final String KILO_ELECTRONO_VOLT_STR = "[keV]";
public static final String MEGA_ELECTRONO_VOLT_STR = "[MeV]";
public static final String GIGA_ELECTRONO_VOLT_STR = "[GeV]";
public static final String TERA_ELECTRONO_VOLT_STR = "[TeV]";
/* Units of speed */
public static final String METRE_PER_SECOND_STR = "[m/s]";
public static final String KILOMETRE_PER_HOUR_STR = "[km/h]";
public static final String MILE_PER_HOUR_STR = "[mi/h]";
public static final String KNOT_STR = "[knot]";
/* Units of acceleration */
public static final String METRE_PER_SECOND2_STR = "[m/s2]";
public static final String KILOMETRE_PER_HOUR2_STR = "[km/h2]";
public static final String MILE_PER_HOUR2_STR = "[mi/h2]";
/* Units of angle */
public static final String RADIAN_ARC_STR = "[rad]";
public static final String DEGREE_ARC_STR = "[deg]";
public static final String MINUTE_ARC_STR = "[']";
public static final String SECOND_ARC_STR = "['']";
/*
* Unit - syntax.
*/
/* Ratio, Fraction */
public static final String PERC_SYN = PERC_STR;
public static final String PROMIL_SYN = PROMIL_STR;
/* Metric prefixes */
public static final String YOTTA_SYN = YOTTA_STR;
public static final String YOTTA_SEPT_SYN = YOTTA_SEPT_STR;
public static final String ZETTA_SYN = ZETTA_STR;
public static final String ZETTA_SEXT_SYN = ZETTA_SEXT_STR;
public static final String EXA_SYN = EXA_STR;
public static final String EXA_QUINT_SYN = EXA_QUINT_STR;
public static final String PETA_SYN = PETA_STR;
public static final String PETA_QUAD_SYN = PETA_QUAD_STR;
public static final String TERA_SYN = TERA_STR;
public static final String TERA_TRIL_SYN = TERA_TRIL_STR;
public static final String GIGA_SYN = GIGA_STR;
public static final String GIGA_BIL_SYN = GIGA_BIL_STR;
public static final String MEGA_SYN = MEGA_STR;
public static final String MEGA_MIL_SYN = MEGA_MIL_STR;
public static final String KILO_SYN = KILO_STR;
public static final String KILO_TH_SYN = KILO_TH_STR;
public static final String HECTO_SYN = HECTO_STR;
public static final String HECTO_HUND_SYN = HECTO_HUND_STR;
public static final String DECA_SYN = DECA_STR;
public static final String DECA_TEN_SYN = DECA_TEN_STR;
public static final String DECI_SYN = DECI_STR;
public static final String CENTI_SYN = CENTI_STR;
public static final String MILLI_SYN = MILLI_STR;
public static final String MICRO_SYN = MICRO_STR;
public static final String NANO_SYN = NANO_STR;
public static final String PICO_SYN = PICO_STR;
public static final String FEMTO_SYN = FEMTO_STR;
public static final String ATTO_SYN = ATTO_STR;
public static final String ZEPTO_SYN = ZEPTO_STR;
public static final String YOCTO_SYN = YOCTO_STR;
/* Units of length / distance */
public static final String METRE_SYN = METRE_STR;
public static final String KILOMETRE_SYN = KILOMETRE_STR;
public static final String CENTIMETRE_SYN = CENTIMETRE_STR;
public static final String MILLIMETRE_SYN = MILLIMETRE_STR;
public static final String INCH_SYN = INCH_STR;
public static final String YARD_SYN = YARD_STR;
public static final String FEET_SYN = FEET_STR;
public static final String MILE_SYN = MILE_STR;
public static final String NAUTICAL_MILE_SYN = NAUTICAL_MILE_STR;
/* Units of area */
public static final String METRE2_SYN = METRE2_STR;
public static final String CENTIMETRE2_SYN = CENTIMETRE2_STR;
public static final String MILLIMETRE2_SYN = MILLIMETRE2_STR;
public static final String ARE_SYN = ARE_STR;
public static final String HECTARE_SYN = HECTARE_STR;
public static final String ACRE_SYN = ACRE_STR;
public static final String KILOMETRE2_SYN = KILOMETRE2_STR;
/* Units of volume */
public static final String MILLIMETRE3_SYN = MILLIMETRE3_STR;
public static final String CENTIMETRE3_SYN = CENTIMETRE3_STR;
public static final String METRE3_SYN = METRE3_STR;
public static final String KILOMETRE3_SYN = KILOMETRE3_STR;
public static final String MILLILITRE_SYN = MILLILITRE_STR;
public static final String LITRE_SYN = LITRE_STR;
public static final String GALLON_SYN = GALLON_STR;
public static final String PINT_SYN = PINT_STR;
/* Units of time */
public static final String SECOND_SYN = SECOND_STR;
public static final String MILLISECOND_SYN = MILLISECOND_STR;
public static final String MINUTE_SYN = MINUTE_STR;
public static final String HOUR_SYN = HOUR_STR;
public static final String DAY_SYN = DAY_STR;
public static final String WEEK_SYN = WEEK_STR;
public static final String JULIAN_YEAR_SYN = JULIAN_YEAR_STR;
/* Units of mass */
public static final String KILOGRAM_SYN = KILOGRAM_STR;
public static final String GRAM_SYN = GRAM_STR;
public static final String MILLIGRAM_SYN = MILLIGRAM_STR;
public static final String DECAGRAM_SYN = DECAGRAM_STR;
public static final String TONNE_SYN = TONNE_STR;
public static final String OUNCE_SYN = OUNCE_STR;
public static final String POUND_SYN = POUND_STR;
/* Units of information */
public static final String BIT_SYN = BIT_STR;
public static final String KILOBIT_SYN = KILOBIT_STR;
public static final String MEGABIT_SYN = MEGABIT_STR;
public static final String GIGABIT_SYN = GIGABIT_STR;
public static final String TERABIT_SYN = TERABIT_STR;
public static final String PETABIT_SYN = PETABIT_STR;
public static final String EXABIT_SYN = EXABIT_STR;
public static final String ZETTABIT_SYN = ZETTABIT_STR;
public static final String YOTTABIT_SYN = YOTTABIT_STR;
public static final String BYTE_SYN = BYTE_STR;
public static final String KILOBYTE_SYN = KILOBYTE_STR;
public static final String MEGABYTE_SYN = MEGABYTE_STR;
public static final String GIGABYTE_SYN = GIGABYTE_STR;
public static final String TERABYTE_SYN = TERABYTE_STR;
public static final String PETABYTE_SYN = PETABYTE_STR;
public static final String EXABYTE_SYN = EXABYTE_STR;
public static final String ZETTABYTE_SYN = ZETTABYTE_STR;
public static final String YOTTABYTE_SYN = YOTTABYTE_STR;
/* Units of energy */
public static final String JOULE_SYN = JOULE_STR;
public static final String ELECTRONO_VOLT_SYN = ELECTRONO_VOLT_STR;
public static final String KILO_ELECTRONO_VOLT_SYN = KILO_ELECTRONO_VOLT_STR;
public static final String MEGA_ELECTRONO_VOLT_SYN = MEGA_ELECTRONO_VOLT_STR;
public static final String GIGA_ELECTRONO_VOLT_SYN = GIGA_ELECTRONO_VOLT_STR;
public static final String TERA_ELECTRONO_VOLT_SYN = TERA_ELECTRONO_VOLT_STR;
/* Units of speed */
public static final String METRE_PER_SECOND_SYN = METRE_PER_SECOND_STR;
public static final String KILOMETRE_PER_HOUR_SYN = KILOMETRE_PER_HOUR_STR;
public static final String MILE_PER_HOUR_SYN = MILE_PER_HOUR_STR;
public static final String KNOT_SYN = KNOT_STR;
/* Units of acceleration */
public static final String METRE_PER_SECOND2_SYN = METRE_PER_SECOND2_STR;
public static final String KILOMETRE_PER_HOUR2_SYN = KILOMETRE_PER_HOUR2_STR;
public static final String MILE_PER_HOUR2_SYN = MILE_PER_HOUR2_STR;
/* Units of angle */
public static final String RADIAN_ARC_SYN = RADIAN_ARC_STR;
public static final String DEGREE_ARC_SYN = DEGREE_ARC_STR;
public static final String MINUTE_ARC_SYN = MINUTE_ARC_STR;
public static final String SECOND_ARC_SYN = SECOND_ARC_STR;
/*
* Unit - tokens description.
*/
/* Ratio, Fraction */
public static final String PERC_DESC = " Percentage = 0.01";
public static final String PROMIL_DESC = " Promil, Per mille = 0.001";
/* Metric prefixes */
public static final String YOTTA_DESC = " Septillion / Yotta = 10^24";
public static final String ZETTA_DESC = " Sextillion / Zetta = 10^21";
public static final String EXA_DESC = " Quintillion / Exa = 10^18";
public static final String PETA_DESC = " Quadrillion / Peta = 10^15";
public static final String TERA_DESC = " Trillion / Tera = 10^12";
public static final String GIGA_DESC = " Billion / Giga = 10^9";
public static final String MEGA_DESC = " Million / Mega = 10^6";
public static final String KILO_DESC = " Thousand / Kilo = 10^3";
public static final String HECTO_DESC = " Hundred / Hecto = 10^2";
public static final String DECA_DESC = " Ten / Deca = 10";
public static final String DECI_DESC = " Tenth / Deci = 0.1";
public static final String CENTI_DESC = " Hundredth / Centi = 0.01";
public static final String MILLI_DESC = " Thousandth / Milli = 0.001";
public static final String MICRO_DESC = " Millionth / Micro = 10^-6";
public static final String NANO_DESC = " Billionth / Nano = 10^-9";
public static final String PICO_DESC = " Trillionth / Pico = 10^-12";
public static final String FEMTO_DESC = " Quadrillionth / Femto = 10^-15";
public static final String ATTO_DESC = " Quintillionth / Atoo = 10^-18";
public static final String ZEPTO_DESC = " Sextillionth / Zepto = 10^-21";
public static final String YOCTO_DESC = " Septillionth / Yocto = 10^-24";
/* Units of length / distance */
public static final String METRE_DESC = " Metre / Meter (m=1)";
public static final String KILOMETRE_DESC = " Kilometre / Kilometer (m=1)";
public static final String CENTIMETRE_DESC = " Centimetre / Centimeter (m=1)";
public static final String MILLIMETRE_DESC = " Millimetre / Millimeter (m=1)";
public static final String INCH_DESC = " Inch (m=1)";
public static final String YARD_DESC = " Yard (m=1)";
public static final String FEET_DESC = " Feet (m=1)";
public static final String MILE_DESC = " Mile (m=1)";
public static final String NAUTICAL_MILE_DESC = " Nautical mile (m=1)";
/* Units of area */
public static final String METRE2_DESC = " Square metre / Square meter (m=1)";
public static final String CENTIMETRE2_DESC = " Square centimetre / Square centimeter (m=1)";
public static final String MILLIMETRE2_DESC = " Square millimetre / Square millimeter (m=1)";
public static final String ARE_DESC = " Are (m=1)";
public static final String HECTARE_DESC = " Hectare (m=1)";
public static final String ACRE_DESC = " Acre (m=1)";
public static final String KILOMETRE2_DESC = " Square kilometre / Square kilometer (m=1)";
/* Units of volume */
public static final String MILLIMETRE3_DESC = " Cubic millimetre / Cubic millimeter (m=1)";
public static final String CENTIMETRE3_DESC = " Cubic centimetre / Cubic centimeter (m=1)";
public static final String METRE3_DESC = " Cubic metre / Cubic meter (m=1)";
public static final String KILOMETRE3_DESC = " Cubic kilometre / Cubic kilometer (m=1)";
public static final String MILLILITRE_DESC = " Millilitre / Milliliter (m=1)";
public static final String LITRE_DESC = " Litre / Liter (m=1)";
public static final String GALLON_DESC = " Gallon (m=1)";
public static final String PINT_DESC = " Pint (m=1)";
/* Units of time */
public static final String SECOND_DESC = " Second (s=1)";
public static final String MILLISECOND_DESC = " Millisecond (s=1)";
public static final String MINUTE_DESC = " Minute (s=1)";
public static final String HOUR_DESC = " Hour (s=1)";
public static final String DAY_DESC = " Day (s=1)";
public static final String WEEK_DESC = " Week (s=1)";
public static final String JULIAN_YEAR_DESC = " Julian year = 365.25 days (s=1)";
/* Units of mass */
public static final String KILOGRAM_DESC = " Kilogram (kg=1)";
public static final String GRAM_DESC = " Gram (kg=1)";
public static final String MILLIGRAM_DESC = " Milligram (kg=1)";
public static final String DECAGRAM_DESC = " Decagram (kg=1)";
public static final String TONNE_DESC = " Tonne (kg=1)";
public static final String OUNCE_DESC = " Ounce (kg=1)";
public static final String POUND_DESC = " Pound (kg=1)";
/* Units of information */
public static final String BIT_DESC = " Bit (bit=1)";
public static final String KILOBIT_DESC = " Kilobit (bit=1)";
public static final String MEGABIT_DESC = " Megabit (bit=1)";
public static final String GIGABIT_DESC = " Gigabit (bit=1)";
public static final String TERABIT_DESC = " Terabit (bit=1)";
public static final String PETABIT_DESC = " Petabit (bit=1)";
public static final String EXABIT_DESC = " Exabit (bit=1)";
public static final String ZETTABIT_DESC = " Zettabit (bit=1)";
public static final String YOTTABIT_DESC = " Yottabit (bit=1)";
public static final String BYTE_DESC = " Byte (bit=1)";
public static final String KILOBYTE_DESC = " Kilobyte (bit=1)";
public static final String MEGABYTE_DESC = " Megabyte (bit=1)";
public static final String GIGABYTE_DESC = " Gigabyte (bit=1)";
public static final String TERABYTE_DESC = " Terabyte (bit=1)";
public static final String PETABYTE_DESC = " Petabyte (bit=1)";
public static final String EXABYTE_DESC = " Exabyte (bit=1)";
public static final String ZETTABYTE_DESC = " Zettabyte (bit=1)";
public static final String YOTTABYTE_DESC = " Yottabyte (bit=1)";
/* Units of energy */
public static final String JOULE_DESC = " Joule (m=1, kg=1, s=1)";
public static final String ELECTRONO_VOLT_DESC = " Electronovolt (m=1, kg=1, s=1)";
public static final String KILO_ELECTRONO_VOLT_DESC = " Kiloelectronovolt (m=1, kg=1, s=1)";
public static final String MEGA_ELECTRONO_VOLT_DESC = " Megaelectronovolt (m=1, kg=1, s=1)";
public static final String GIGA_ELECTRONO_VOLT_DESC = " Gigaelectronovolt (m=1, kg=1, s=1)";
public static final String TERA_ELECTRONO_VOLT_DESC = " Teraelectronovolt (m=1, kg=1, s=1)";
/* Units of speed */
public static final String METRE_PER_SECOND_DESC = " Metre / Meter per second (m=1, s=1)";
public static final String KILOMETRE_PER_HOUR_DESC = " Kilometre / Kilometer per hour (m=1, s=1)";
public static final String MILE_PER_HOUR_DESC = " Mile per hour (m=1, s=1)";
public static final String KNOT_DESC = " Knot (m=1, s=1)";
/* Units of acceleration */
public static final String METRE_PER_SECOND2_DESC = " Metre / Meter per square second (m=1, s=1)";
public static final String KILOMETRE_PER_HOUR2_DESC = " Kilometre / Kilometer per square hour (m=1, s=1)";
public static final String MILE_PER_HOUR2_DESC = " Mile per square hour (m=1, s=1)";
/* Units of angle */
public static final String RADIAN_ARC_DESC = " Radian (rad=1)";
public static final String DEGREE_ARC_DESC = " Degree of arc (rad=1)";
public static final String MINUTE_ARC_DESC = " Minute of arc (rad=1)";
public static final String SECOND_ARC_DESC = " Second of arc (rad=1)";
/*
* Unit - since.
*/
/* Ratio, Fraction */
public static final String PERC_SINCE = mXparser.NAMEv40;
public static final String PROMIL_SINCE = mXparser.NAMEv40;
/* Metric prefixes */
public static final String YOTTA_SINCE = mXparser.NAMEv40;
public static final String YOTTA_SEPT_SINCE = mXparser.NAMEv40;
public static final String ZETTA_SINCE = mXparser.NAMEv40;
public static final String ZETTA_SEXT_SINCE = mXparser.NAMEv40;
public static final String EXA_SINCE = mXparser.NAMEv40;
public static final String EXA_QUINT_SINCE = mXparser.NAMEv40;
public static final String PETA_SINCE = mXparser.NAMEv40;
public static final String PETA_QUAD_SINCE = mXparser.NAMEv40;
public static final String TERA_SINCE = mXparser.NAMEv40;
public static final String TERA_TRIL_SINCE = mXparser.NAMEv40;
public static final String GIGA_SINCE = mXparser.NAMEv40;
public static final String GIGA_BIL_SINCE = mXparser.NAMEv40;
public static final String MEGA_SINCE = mXparser.NAMEv40;
public static final String MEGA_MIL_SINCE = mXparser.NAMEv40;
public static final String KILO_SINCE = mXparser.NAMEv40;
public static final String KILO_TH_SINCE = mXparser.NAMEv40;
public static final String HECTO_SINCE = mXparser.NAMEv40;
public static final String HECTO_HUND_SINCE = mXparser.NAMEv40;
public static final String DECA_SINCE = mXparser.NAMEv40;
public static final String DECA_TEN_SINCE = mXparser.NAMEv40;
public static final String DECI_SINCE = mXparser.NAMEv40;
public static final String CENTI_SINCE = mXparser.NAMEv40;
public static final String MILLI_SINCE = mXparser.NAMEv40;
public static final String MICRO_SINCE = mXparser.NAMEv40;
public static final String NANO_SINCE = mXparser.NAMEv40;
public static final String PICO_SINCE = mXparser.NAMEv40;
public static final String FEMTO_SINCE = mXparser.NAMEv40;
public static final String ATTO_SINCE = mXparser.NAMEv40;
public static final String ZEPTO_SINCE = mXparser.NAMEv40;
public static final String YOCTO_SINCE = mXparser.NAMEv40;
/* Units of length / distance */
public static final String METRE_SINCE = mXparser.NAMEv40;
public static final String KILOMETRE_SINCE = mXparser.NAMEv40;
public static final String CENTIMETRE_SINCE = mXparser.NAMEv40;
public static final String MILLIMETRE_SINCE = mXparser.NAMEv40;
public static final String INCH_SINCE = mXparser.NAMEv40;
public static final String YARD_SINCE = mXparser.NAMEv40;
public static final String FEET_SINCE = mXparser.NAMEv40;
public static final String MILE_SINCE = mXparser.NAMEv40;
public static final String NAUTICAL_MILE_SINCE = mXparser.NAMEv40;
/* Units of area */
public static final String METRE2_SINCE = mXparser.NAMEv40;
public static final String CENTIMETRE2_SINCE = mXparser.NAMEv40;
public static final String MILLIMETRE2_SINCE = mXparser.NAMEv40;
public static final String ARE_SINCE = mXparser.NAMEv40;
public static final String HECTARE_SINCE = mXparser.NAMEv40;
public static final String ACRE_SINCE = mXparser.NAMEv40;
public static final String KILOMETRE2_SINCE = mXparser.NAMEv40;
/* Units of volume */
public static final String MILLIMETRE3_SINCE = mXparser.NAMEv40;
public static final String CENTIMETRE3_SINCE = mXparser.NAMEv40;
public static final String METRE3_SINCE = mXparser.NAMEv40;
public static final String KILOMETRE3_SINCE = mXparser.NAMEv40;
public static final String MILLILITRE_SINCE = mXparser.NAMEv40;
public static final String LITRE_SINCE = mXparser.NAMEv40;
public static final String GALLON_SINCE = mXparser.NAMEv40;
public static final String PINT_SINCE = mXparser.NAMEv40;
/* Units of time */
public static final String SECOND_SINCE = mXparser.NAMEv40;
public static final String MILLISECOND_SINCE = mXparser.NAMEv40;
public static final String MINUTE_SINCE = mXparser.NAMEv40;
public static final String HOUR_SINCE = mXparser.NAMEv40;
public static final String DAY_SINCE = mXparser.NAMEv40;
public static final String WEEK_SINCE = mXparser.NAMEv40;
public static final String JULIAN_YEAR_SINCE = mXparser.NAMEv40;
/* Units of mass */
public static final String KILOGRAM_SINCE = mXparser.NAMEv40;
public static final String GRAM_SINCE = mXparser.NAMEv40;
public static final String MILLIGRAM_SINCE = mXparser.NAMEv40;
public static final String DECAGRAM_SINCE = mXparser.NAMEv40;
public static final String TONNE_SINCE = mXparser.NAMEv40;
public static final String OUNCE_SINCE = mXparser.NAMEv40;
public static final String POUND_SINCE = mXparser.NAMEv40;
/* Units of information */
public static final String BIT_SINCE = mXparser.NAMEv40;
public static final String KILOBIT_SINCE = mXparser.NAMEv40;
public static final String MEGABIT_SINCE = mXparser.NAMEv40;
public static final String GIGABIT_SINCE = mXparser.NAMEv40;
public static final String TERABIT_SINCE = mXparser.NAMEv40;
public static final String PETABIT_SINCE = mXparser.NAMEv40;
public static final String EXABIT_SINCE = mXparser.NAMEv40;
public static final String ZETTABIT_SINCE = mXparser.NAMEv40;
public static final String YOTTABIT_SINCE = mXparser.NAMEv40;
public static final String BYTE_SINCE = mXparser.NAMEv40;
public static final String KILOBYTE_SINCE = mXparser.NAMEv40;
public static final String MEGABYTE_SINCE = mXparser.NAMEv40;
public static final String GIGABYTE_SINCE = mXparser.NAMEv40;
public static final String TERABYTE_SINCE = mXparser.NAMEv40;
public static final String PETABYTE_SINCE = mXparser.NAMEv40;
public static final String EXABYTE_SINCE = mXparser.NAMEv40;
public static final String ZETTABYTE_SINCE = mXparser.NAMEv40;
public static final String YOTTABYTE_SINCE = mXparser.NAMEv40;
/* Units of energy */
public static final String JOULE_SINCE = mXparser.NAMEv40;
public static final String ELECTRONO_VOLT_SINCE = mXparser.NAMEv40;
public static final String KILO_ELECTRONO_VOLT_SINCE = mXparser.NAMEv40;
public static final String MEGA_ELECTRONO_VOLT_SINCE = mXparser.NAMEv40;
public static final String GIGA_ELECTRONO_VOLT_SINCE = mXparser.NAMEv40;
public static final String TERA_ELECTRONO_VOLT_SINCE = mXparser.NAMEv40;
/* Units of speed */
public static final String METRE_PER_SECOND_SINCE = mXparser.NAMEv40;
public static final String KILOMETRE_PER_HOUR_SINCE = mXparser.NAMEv40;
public static final String MILE_PER_HOUR_SINCE = mXparser.NAMEv40;
public static final String KNOT_SINCE = mXparser.NAMEv40;
/* Units of acceleration */
public static final String METRE_PER_SECOND2_SINCE = mXparser.NAMEv40;
public static final String KILOMETRE_PER_HOUR2_SINCE = mXparser.NAMEv40;
public static final String MILE_PER_HOUR2_SINCE = mXparser.NAMEv40;
/* Units of angle */
public static final String RADIAN_ARC_SINCE = mXparser.NAMEv40;
public static final String DEGREE_ARC_SINCE = mXparser.NAMEv40;
public static final String MINUTE_ARC_SINCE = mXparser.NAMEv40;
public static final String SECOND_ARC_SINCE = mXparser.NAMEv40;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy