public class BitMatrix extends Object implements Serializable
VisibilityLocations.
THREAD-UNSAFE| Constructor and Description |
|---|
BitMatrix(int columns,
int rows) |
| Modifier and Type | Method and Description |
|---|---|
BitSet |
and(Collection<Integer> columns)
Return logical-and of 'columns'.
|
BitSet |
and(int... columns)
Return logical-and of 'columns'.
|
int |
columns() |
static void |
flip(BitSet bitSet)
Flips whole bitset passed.
|
void |
flip(int column,
int row)
Flips value in matrix[column, row]
|
boolean |
get(int column,
int row)
Returns matrix[column, row]
|
BitSet |
getColumn(int column)
Returns 'column' of the matrix.
|
static BitMatrix |
loadFromFile(File file) |
BitSet |
or(Collection<Integer> columns)
Return logical-and of 'columns'.
|
BitSet |
or(int... columns)
Return logical-or of 'columns'.
|
int |
rows() |
void |
saveToFile(File file) |
void |
set(int column,
int row)
Sets matrix[column, row] to TRUE
|
void |
set(int column,
int row,
boolean state)
Sets matrix[column, row] to 'state'
|
String |
toString() |
void |
unset(int column,
int row)
Sets matrix[column, row] to FALSE
|
public void set(int column,
int row)
column - row - public void set(int column,
int row,
boolean state)
column - row - state - to setpublic void flip(int column,
int row)
column - row - public void unset(int column,
int row)
column - row - public BitSet getColumn(int column)
column - public boolean get(int column,
int row)
public BitSet and(int... columns)
columns - public BitSet and(Collection<Integer> columns)
columns - public BitSet or(int... columns)
columns - public BitSet or(Collection<Integer> columns)
columns - public int columns()
public int rows()
public void saveToFile(File file)
public static void flip(BitSet bitSet)
bitSet - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.