public class MeasurementType extends Object
Constructor and Description |
---|
MeasurementType()
Default constructor.
|
MeasurementType(String id,
String name,
javax.measure.unit.Unit<?> unit)
Creates a new MeasurementType.
|
MeasurementType(String name,
javax.measure.unit.Unit<?> unit)
Creates a new MeasurementType.
|
public MeasurementType()
public MeasurementType(String name, javax.measure.unit.Unit<?> unit)
name
- the name of the type.unit
- the units of measurement.public String getId()
public String getName()
public String getUnits()
public void setId(String id) throws BadSlugException
id
- the slug to setBadSlugException
- if the id is not valid.public void setName(String name)
name
- the name to setpublic void setUnits(String units)
units
- the units to setpublic javax.measure.unit.Unit<?> unit()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.