public void setCell(int index, BitVector bits)
{
- if (bits.length() != cellWidth)
+ if (bits.width() != cellWidth)
throw new IllegalArgumentException(String.format(
- "BitVector to be saved in memory cell has unexpected length. Expected: %d Actual: %d", cellWidth, bits.length()));
+ "BitVector to be saved in memory cell has unexpected width. Expected: %d Actual: %d", cellWidth, bits.width()));
memory[index] = bits;
}