org.openwms.core.domain.values
Interface UnitType

All Known Implementing Classes:
WeightUnit

public interface UnitType

An UnitType is the type definition of an Unit. Each UnitType defines a base Unit of it's character. For example a UnitType of weights can define grams, kilograms or tons.

Since:
0.1
Version:
$Revision: 1595 $
Author:
Heiko Scherrer

Method Summary
 List<UnitType> getAll()
          Return all sub types of the UnitType.
 UnitType getBaseUnit()
          Return the base unit type of the UnitType.
 long getBaseUnitValue()
          Return the value of the base unit.
 

Method Detail

getBaseUnitValue

long getBaseUnitValue()
Return the value of the base unit.

Returns:
The value of the base unit

getAll

List<UnitType> getAll()
Return all sub types of the UnitType.

Returns:
a list of sub types

getBaseUnit

UnitType getBaseUnit()
Return the base unit type of the UnitType.

Returns:
The base unit type


Copyright © 2005-2011 openwms.org. All Rights Reserved.