|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNpackage.RelInt
RBNpackage.SparseRel
public class SparseRel
Field Summary |
---|
Fields inherited from class RBNpackage.RelInt |
---|
relation |
Constructor Summary | |
---|---|
SparseRel()
Creates new SparseRel |
|
SparseRel(Rel r)
|
|
SparseRel(Rel r,
java.util.Vector v)
|
Method Summary | |
---|---|
int |
addTuple(int[] tup)
Add tup to interpretation (equivalent: set relation(tup)=true). |
int[][] |
allTrue()
Returns an array of all tuples that are true according to this RelInt |
void |
deleteNode(int node)
|
void |
deleteTuple(int[] tup)
Delete tup from interpretation (equivalent: set relation(tup)=false). |
java.util.Vector |
getBinDirs(int node)
|
java.util.Vector |
getTuples()
Return all tuples in the interpretation as a vector of int[] |
boolean |
isInInterpretation(int[] tup)
Returns true if the tuple is in the relation; otherwise returns false |
boolean |
match(int i,
int[] tuple)
|
int |
size()
|
int[] |
tupleAt(int i)
|
Methods inherited from class RBNpackage.RelInt |
---|
rel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SparseRel()
public SparseRel(Rel r)
public SparseRel(Rel r, java.util.Vector v)
Method Detail |
---|
public int size()
public int[] tupleAt(int i)
public java.util.Vector getTuples()
RelInt
getTuples
in class RelInt
public int[][] allTrue()
RelInt
allTrue
in class RelInt
public int addTuple(int[] tup)
RelInt
addTuple
in class RelInt
public void deleteTuple(int[] tup)
RelInt
deleteTuple
in class RelInt
public void deleteNode(int node)
public boolean isInInterpretation(int[] tup)
RelInt
isInInterpretation
in class RelInt
public java.util.Vector getBinDirs(int node)
public boolean match(int i, int[] tuple)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |