org.openmuc.jsml.structures
Class SML_Unit

java.lang.Object
  extended by org.openmuc.jsml.structures.ASNObject
      extended by org.openmuc.jsml.structures.Unsigned8
          extended by org.openmuc.jsml.structures.SML_Unit

public class SML_Unit
extends Unsigned8


Field Summary
static int ACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
           
static int AMPERE
           
static int AMPERE_HOUR
           
static int AMPERE_PER_METRE
           
static int AMPERE_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE
           
static int AMPERE_SQUARED_HOURS
           
static int APPARENT_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
           
static int BAR
           
static int CALORIFIC_VALUE
           
static int COULOMB
           
static int COUNT
           
static int CUBIC_METRE
           
static int CUBIC_METRE_CORRECTED
           
static int CUBIC_METRE_PER_DAY
           
static int CUBIC_METRE_PER_DAY_CORRECTED
           
static int CUBIC_METRE_PER_HOUR
           
static int CUBIC_METRE_PER_HOUR_CORRECTED
           
static int CURRENCY
           
static int DAY
           
static int DEGREE
           
static int DEGREE_CELSIUS
           
static int ENERGY_PER_VOLUME
           
static int FARAD
           
static int HENRY
           
static int HERTZ
           
static int HOUR
           
static int JOULE
           
static int JOULE_PER_HOUR
           
static int KELVIN
           
static int KILOGRAM
           
static int KILOGRAM_PER_SECOND
           
static int LITRE
           
static int MASS_DENSITY
           
static int METER_CONSTANT_OR_PULSE_VALUE
           
static int METRE
           
static int METRE_PER_SECOND
           
static int MIN
           
static int MOLE_PERCENT
           
static int MONTH
           
static int NEWTON
           
static int NEWTONMETER
           
static int OHM
           
static int OHM_METRE
           
static int OTHER_UNIT
           
static int PASCAL
           
static int PASCAL_SECOND
           
static int PERCENTAGE
           
static int REACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
           
static int RESERVED
           
static int SECOND
           
static int TESLA
           
static int VAR
           
static int VAR_HOUR
           
static int VOLT
           
static int VOLT_AMPERE
           
static int VOLT_AMPERE_HOUR
           
static int VOLT_PER_METRE
           
static int VOLT_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE
           
static int VOLT_SQUARED_HOURS
           
static int WATT
           
static int WATT_HOUR
           
static int WEBER
           
static int WEEK
           
static int YEAR
           
 
Fields inherited from class org.openmuc.jsml.structures.Unsigned8
val
 
Fields inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected
 
Constructor Summary
SML_Unit()
           
SML_Unit(Unsigned8 val)
           
 
Method Summary
 
Methods inherited from class org.openmuc.jsml.structures.Unsigned8
code, decode, getVal, print
 
Methods inherited from class org.openmuc.jsml.structures.ASNObject
isOptional, isSelected, setOptional, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YEAR

public static final int YEAR
See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

WEEK

public static final int WEEK
See Also:
Constant Field Values

DAY

public static final int DAY
See Also:
Constant Field Values

HOUR

public static final int HOUR
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

SECOND

public static final int SECOND
See Also:
Constant Field Values

DEGREE

public static final int DEGREE
See Also:
Constant Field Values

DEGREE_CELSIUS

public static final int DEGREE_CELSIUS
See Also:
Constant Field Values

CURRENCY

public static final int CURRENCY
See Also:
Constant Field Values

METRE

public static final int METRE
See Also:
Constant Field Values

METRE_PER_SECOND

public static final int METRE_PER_SECOND
See Also:
Constant Field Values

CUBIC_METRE

public static final int CUBIC_METRE
See Also:
Constant Field Values

CUBIC_METRE_CORRECTED

public static final int CUBIC_METRE_CORRECTED
See Also:
Constant Field Values

CUBIC_METRE_PER_HOUR

public static final int CUBIC_METRE_PER_HOUR
See Also:
Constant Field Values

CUBIC_METRE_PER_HOUR_CORRECTED

public static final int CUBIC_METRE_PER_HOUR_CORRECTED
See Also:
Constant Field Values

CUBIC_METRE_PER_DAY

public static final int CUBIC_METRE_PER_DAY
See Also:
Constant Field Values

CUBIC_METRE_PER_DAY_CORRECTED

public static final int CUBIC_METRE_PER_DAY_CORRECTED
See Also:
Constant Field Values

LITRE

public static final int LITRE
See Also:
Constant Field Values

KILOGRAM

public static final int KILOGRAM
See Also:
Constant Field Values

NEWTON

public static final int NEWTON
See Also:
Constant Field Values

NEWTONMETER

public static final int NEWTONMETER
See Also:
Constant Field Values

PASCAL

public static final int PASCAL
See Also:
Constant Field Values

BAR

public static final int BAR
See Also:
Constant Field Values

JOULE

public static final int JOULE
See Also:
Constant Field Values

JOULE_PER_HOUR

public static final int JOULE_PER_HOUR
See Also:
Constant Field Values

WATT

public static final int WATT
See Also:
Constant Field Values

VOLT_AMPERE

public static final int VOLT_AMPERE
See Also:
Constant Field Values

VAR

public static final int VAR
See Also:
Constant Field Values

WATT_HOUR

public static final int WATT_HOUR
See Also:
Constant Field Values

VOLT_AMPERE_HOUR

public static final int VOLT_AMPERE_HOUR
See Also:
Constant Field Values

VAR_HOUR

public static final int VAR_HOUR
See Also:
Constant Field Values

AMPERE

public static final int AMPERE
See Also:
Constant Field Values

COULOMB

public static final int COULOMB
See Also:
Constant Field Values

VOLT

public static final int VOLT
See Also:
Constant Field Values

VOLT_PER_METRE

public static final int VOLT_PER_METRE
See Also:
Constant Field Values

FARAD

public static final int FARAD
See Also:
Constant Field Values

OHM

public static final int OHM
See Also:
Constant Field Values

OHM_METRE

public static final int OHM_METRE
See Also:
Constant Field Values

WEBER

public static final int WEBER
See Also:
Constant Field Values

TESLA

public static final int TESLA
See Also:
Constant Field Values

AMPERE_PER_METRE

public static final int AMPERE_PER_METRE
See Also:
Constant Field Values

HENRY

public static final int HENRY
See Also:
Constant Field Values

HERTZ

public static final int HERTZ
See Also:
Constant Field Values

ACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE

public static final int ACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

REACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE

public static final int REACTIVE_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

APPARENT_ENERGY_METER_CONSTANT_OR_PULSE_VALUE

public static final int APPARENT_ENERGY_METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

VOLT_SQUARED_HOURS

public static final int VOLT_SQUARED_HOURS
See Also:
Constant Field Values

AMPERE_SQUARED_HOURS

public static final int AMPERE_SQUARED_HOURS
See Also:
Constant Field Values

KILOGRAM_PER_SECOND

public static final int KILOGRAM_PER_SECOND
See Also:
Constant Field Values

KELVIN

public static final int KELVIN
See Also:
Constant Field Values

VOLT_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE

public static final int VOLT_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

AMPERE_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE

public static final int AMPERE_SQUARED_HOUR_METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

METER_CONSTANT_OR_PULSE_VALUE

public static final int METER_CONSTANT_OR_PULSE_VALUE
See Also:
Constant Field Values

PERCENTAGE

public static final int PERCENTAGE
See Also:
Constant Field Values

AMPERE_HOUR

public static final int AMPERE_HOUR
See Also:
Constant Field Values

ENERGY_PER_VOLUME

public static final int ENERGY_PER_VOLUME
See Also:
Constant Field Values

CALORIFIC_VALUE

public static final int CALORIFIC_VALUE
See Also:
Constant Field Values

MOLE_PERCENT

public static final int MOLE_PERCENT
See Also:
Constant Field Values

MASS_DENSITY

public static final int MASS_DENSITY
See Also:
Constant Field Values

PASCAL_SECOND

public static final int PASCAL_SECOND
See Also:
Constant Field Values

RESERVED

public static final int RESERVED
See Also:
Constant Field Values

OTHER_UNIT

public static final int OTHER_UNIT
See Also:
Constant Field Values

COUNT

public static final int COUNT
See Also:
Constant Field Values
Constructor Detail

SML_Unit

public SML_Unit()

SML_Unit

public SML_Unit(Unsigned8 val)
Parameters:
val - number of unit (e.g. IEC 62056-62)
Throws:
java.lang.IllegalArgumentException - if val is no defined unit