AZBC-REPO menu | @ | list
imagetextmenustatus


BitVector

self

<> BitVector :: BitVector :: Using a mask to monitor access. -




BitVector


A bitvector is a string of bits.

With a logical function, LogicalOr, LogicalAnd, etc,
each bit of a bitvector can be changed.

Thus each bit of the bitvector is a value on its own, representing the state of a specific object. The bitvector can identify the state of a range of objects since the individual bit can be changed with a bitwise operation such as  -> BitWiseOr

Most likely a bitvector will have a typical length. 8-bits, 16-bits, corresponding to  -> BitGroups


For instance if we have a range of devices connected to our computer, each connection could be represented by a bit to indicate if we have access to the device or not.

0 is open 1 is closed. If we have a range of 8 devices our bit-vector would be:
| 00000000 |
If device zero would be a printer, located in the bitstring at
the first position from the right, that is not available bit-0 would indicate closed with a ' 1 ' :
| 00000001 |
If the printer would become available the system would update the bit-vector
with a BitWiseAnd operation:
| 00000001 |
| 00000000 |
 ----------
| 00000000 |
and bit-0 becomes a ' 0 ', since 1 AND 0 => 0 .


Otherwise if the monitor at bit 6 becomes disconnected, the system would update the bitvector with a  -> BitWiseOr
| 00000000 |
| 00100000 |
 ----------
| 00100000 |
since since 0 OR 1 => 1 .





sister pages

-> BitGroups :: Bits :: Number of bits in a grouping. -

-> BitWiseOr :: Boolean OR :: inclusive OR -


BitVector
05.01.2021


status | Page | data.bits | BitVector