Package org.openmuc.j60870
Class Util
- java.lang.Object
-
- org.openmuc.j60870.Util
-
public class Util extends java.lang.Object
Class offering static utility functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
convertToCommonAddress(int byte1, int byte2)
Returns the Common Address (CA) calculated from the given bytes.static int
convertToInformationObjectAddress(int byte1, int byte2, int byte3)
Returns the Information Object Address (IOA) calculated from the given bytes.
-
-
-
Method Detail
-
convertToInformationObjectAddress
public static int convertToInformationObjectAddress(int byte1, int byte2, int byte3)
Returns the Information Object Address (IOA) calculated from the given bytes. The first byte is the least significant byte of the IOA.- Parameters:
byte1
- the first bytebyte2
- the second bytebyte3
- the third byte- Returns:
- the IOA
-
convertToCommonAddress
public static int convertToCommonAddress(int byte1, int byte2)
Returns the Common Address (CA) calculated from the given bytes. The first byte is the least significant byte of the CA.- Parameters:
byte1
- the first bytebyte2
- the second byte- Returns:
- the CA
-
-