public class Util
extends java.lang.Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
extractKingUniqueDeviceIdFromState(IBlaubotState state,
IBlaubotDevice ownDevice)
Extracts the king's uniqueDevice id from the state.
|
static byte[] |
toFixedLengthByteArray(java.util.BitSet bs,
int length)
Converts a BitSet to a byte[] including length bytes (length*8 bits).
|
public static java.lang.String extractKingUniqueDeviceIdFromState(IBlaubotState state, IBlaubotDevice ownDevice)
state - must be a IBlaubotSubordinatedState or
KingStateownDevice - the own devicepublic static byte[] toFixedLengthByteArray(java.util.BitSet bs,
int length)
bs - BitSet, to convert to a byte arraylength - int, length of generated array