org.openmuc.core.obis
Class OBISCode

java.lang.Object
  extended by org.openmuc.core.obis.OBISCode

public class OBISCode
extends java.lang.Object

A common representation for OBIS code strings according to IEC 62056-61. Contains methods to - convert OBIS code strings to a unique representation - test unique representations for equality - convert unique representation into a complete OBIS code string - get descriptive strings for OBIS codes


Field Summary
protected  short channel
           
protected  short measurement
           
protected  short measurementMode
           
protected  short medium
           
protected  short payLevel
           
protected  short previousValue
           
 
Constructor Summary
OBISCode()
          Deprecated. 
OBISCode(byte[] code)
           
OBISCode(short medium, short channel, short measurement, short measurementMode, short payLevel, short previousValue)
           
OBISCode(java.lang.String obisCode)
          Create new instance by a given OBIS code string
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 short getChannel()
          Deprecated. 
 java.lang.String getDescription(int defaultMedium)
           
 short getMeasurement()
          Deprecated. 
 short getMeasurementMode()
          Deprecated. 
 short getMedium()
          Deprecated. 
 short getPayLevel()
          Deprecated. 
 short getPreviousValue()
          Deprecated. 
 boolean isManufacturerSpecific()
          Tests if this OBIS code is in the range of manufacturer specific codes.
 java.lang.String toString()
          Convert object to a OBIS code string according to IEC 62056-61 with all code elements
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

medium

protected short medium

channel

protected short channel

measurement

protected short measurement

measurementMode

protected short measurementMode

payLevel

protected short payLevel

previousValue

protected short previousValue
Constructor Detail

OBISCode

public OBISCode(short medium,
                short channel,
                short measurement,
                short measurementMode,
                short payLevel,
                short previousValue)

OBISCode

@Deprecated
public OBISCode()
Deprecated. 


OBISCode

public OBISCode(java.lang.String obisCode)
Create new instance by a given OBIS code string

Parameters:
obisCode -

OBISCode

public OBISCode(byte[] code)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getMedium

@Deprecated
public short getMedium()
Deprecated. 


getChannel

@Deprecated
public short getChannel()
Deprecated. 


getMeasurement

@Deprecated
public short getMeasurement()
Deprecated. 


getMeasurementMode

@Deprecated
public short getMeasurementMode()
Deprecated. 


getPayLevel

@Deprecated
public short getPayLevel()
Deprecated. 


getPreviousValue

@Deprecated
public short getPreviousValue()
Deprecated. 


toString

public java.lang.String toString()
Convert object to a OBIS code string according to IEC 62056-61 with all code elements

Overrides:
toString in class java.lang.Object
Returns:
String representation of OBIS code

isManufacturerSpecific

public boolean isManufacturerSpecific()
Tests if this OBIS code is in the range of manufacturer specific codes.


getDescription

public java.lang.String getDescription(int defaultMedium)