public class MoneyPerTimeUnit extends Unit<MoneyPerTimeUnit>
Copyright (c) 2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-04 20:48:33 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 87 $, by $Author: averbraeck $, initial
version Sep 5, 2015
| Modifier and Type | Field and Description |
|---|---|
static MoneyPerTimeUnit |
EUR_PER_DAY
Euro per day.
|
static MoneyPerTimeUnit |
EUR_PER_HOUR
Euro per hour.
|
static MoneyPerTimeUnit |
USD_PER_DAY
US$ per day.
|
static MoneyPerTimeUnit |
USD_PER_HOUR
US$ per hour.
|
| Constructor and Description |
|---|
MoneyPerTimeUnit(MoneyUnit moneyUnit,
TimeUnit timeUnit,
String name,
String abbreviation)
Build a user-defined money per time unit from a money unit and an time unit.
|
MoneyPerTimeUnit(String name,
String abbreviation,
MoneyPerTimeUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a user-defined MoneyPerTimeUnit with a conversion factor to another MoneyPerTimeUnit.
|
| Modifier and Type | Method and Description |
|---|---|
MoneyUnit |
getMoneyUnit() |
String |
getSICoefficientsString() |
static MoneyPerTimeUnit |
getStandardMoneyPerTimeUnit() |
MoneyPerTimeUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
protected static void |
setStandardUnit(MoneyUnit standardMoneyUnit)
Set the standard MoneyPerTimeUnit in case the standard MoneyUnit changes, as the standard money unit is flexible.
|
equals, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, hashCode, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final MoneyPerTimeUnit EUR_PER_HOUR
public static final MoneyPerTimeUnit EUR_PER_DAY
public static final MoneyPerTimeUnit USD_PER_HOUR
public static final MoneyPerTimeUnit USD_PER_DAY
public MoneyPerTimeUnit(MoneyUnit moneyUnit, TimeUnit timeUnit, String name, String abbreviation)
moneyUnit - the unit of money for the money per time unit, e.g., EURtimeUnit - the unit of time for the money per time unit, e.g., hourname - the key to the locale file for the long name of the unitabbreviation - the key to the locale file for the abbreviation of the unitpublic MoneyPerTimeUnit(String name, String abbreviation, MoneyPerTimeUnit referenceUnit, double conversionFactorToReferenceUnit)
name - the long name of the unitabbreviation - the abbreviation of the unitreferenceUnit - the unit to convert toconversionFactorToReferenceUnit - multiply a value in this unit by the factor to convert to the given reference unitpublic final MoneyUnit getMoneyUnit()
public final TimeUnit getTimeUnit()
protected static void setStandardUnit(MoneyUnit standardMoneyUnit)
standardMoneyUnit - the new standard money unit.public final MoneyPerTimeUnit getStandardUnit()
getStandardUnit in class Unit<MoneyPerTimeUnit>public static MoneyPerTimeUnit getStandardMoneyPerTimeUnit()
public final String getSICoefficientsString()
getSICoefficientsString in class Unit<MoneyPerTimeUnit>Copyright © 2015 Delft University of Technology. All rights reserved.