public class BitVector extends Object
Constructor and Description |
---|
BitVector(BitSet vector,
int bits) |
BitVector(int bits) |
Modifier and Type | Method and Description |
---|---|
void |
dump() |
BitVector |
get(int from,
int to) |
int |
getAs17BitInt(int from,
int to) |
int |
getAs18BitInt(int from,
int to) |
int |
getAs27BitInt(int from,
int to) |
int |
getAs28BitInt(int from,
int to) |
int |
getAs8BitInt(int from,
int to) |
boolean |
getBoolean(int index)
Return bit as boolean from the bit vector
|
int |
getUInt(int from,
int to)
Returns the requested bits interpreted as an integer (MSB first) from the message.
|
void |
set(int index) |
public BitVector(int bits)
public BitVector(BitSet vector, int bits)
public void dump()
public void set(int index)
public BitVector get(int from, int to)
public boolean getBoolean(int index)
index
- start index of bitpublic int getUInt(int from, int to)
from
- begin index (inclusive)to
- end index (inclusive)public int getAs8BitInt(int from, int to)
public int getAs17BitInt(int from, int to)
public int getAs18BitInt(int from, int to)
public int getAs27BitInt(int from, int to)
public int getAs28BitInt(int from, int to)
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.