public class ObisCode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ObisCode.AbstractCosemObject
Abstract objects (A = 0)
|
static class |
ObisCode.CountrySpecificIdentifiers |
static class |
ObisCode.Medium |
static interface |
ObisCode.ValueGroupC |
Constructor and Description |
---|
ObisCode(byte[] bytes) |
ObisCode(int byteA,
int byteB,
int byteC,
int byteD,
int byteE,
int byteF)
Constructor
|
ObisCode(java.lang.String address)
The reference-id can be written as OBIS number (e.g.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes() |
int |
channel() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
ObisCode.Medium |
medium() |
java.lang.String |
toDecimal() |
java.lang.String |
toHexCode() |
java.lang.String |
toObisCode() |
java.lang.String |
toString() |
ObisCode.ValueGroupC |
valueGroupC() |
public ObisCode(int byteA, int byteB, int byteC, int byteD, int byteE, int byteF)
byteA
- First byte of the addressbyteB
- Second byte of the addressbyteC
- Third byte of the addressbyteD
- Fourth byte of the addressbyteE
- Fifth byte of the addressbyteF
- Sixth byte of the addressjava.lang.IllegalArgumentException
- If one of the bytes is out of range [0, 255]public ObisCode(java.lang.String address)
address
- Reference-IDpublic ObisCode(byte[] bytes)
public ObisCode.Medium medium()
public int channel()
public ObisCode.ValueGroupC valueGroupC()
public java.lang.String toObisCode()
public java.lang.String toHexCode()
public byte[] bytes()
public java.lang.String toDecimal()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object