|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HardLocation
Implementers of this interface are basic components of SDM. A HardLocation has a unique address that consists of a BitVector of the size of the space. It is composed of multiple counters (one for each dimension of the space). A HardLocation can be written to or read from.
Method Summary | |
---|---|
cern.colt.bitvector.BitVector |
getAddress()
|
byte[] |
getCounters()
Returns the counters of this HardLocation Each HardLocation has wordSize counters. |
int |
getWriteCount()
|
int |
hammingDistance(cern.colt.bitvector.BitVector vector)
Returns the Hamming distance between vector and the address of this HardLocation |
int[] |
read(int[] buffer)
This method reads this HardLocation and sums the reading vector to int[] buffer. |
void |
setAddress(cern.colt.bitvector.BitVector address)
Sets the address of this HardLocation in the vector Space |
void |
setCounters(byte[] newCounters)
Sets the counters of this HardLocation Each HardLocation has wordSize counters. |
void |
write(cern.colt.bitvector.BitVector word)
Writes BitVector word to this HardLocation. |
Method Detail |
---|
cern.colt.bitvector.BitVector getAddress()
void setAddress(cern.colt.bitvector.BitVector address)
address
- the address to setbyte[] getCounters()
void setCounters(byte[] newCounters)
newCounters
- new countersint getWriteCount()
void write(cern.colt.bitvector.BitVector word)
word
- word to be writtenint[] read(int[] buffer)
buffer
- buffer to be added to this hardlocation
int hammingDistance(cern.colt.bitvector.BitVector vector)
vector
- vector to compare with this hardlocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |