RBNpackage
Class MatrixRel

java.lang.Object
  extended by RBNpackage.RelInt
      extended by RBNpackage.MatrixRel

public class MatrixRel
extends RelInt


Field Summary
 
Fields inherited from class RBNpackage.RelInt
relation
 
Constructor Summary
MatrixRel()
          Creates new MatrixRel
MatrixRel(Rel r, int domsize)
          Creates new MatrixRel
 
Method Summary
 int addTuple(int[] tup)
          Add tup to interpretation (equivalent: set relation(tup)=true).
 void deleteNode(int node)
           
 void deleteTuple(int[] tup)
          Delete tup from interpretation (equivalent: set relation(tup)=false).
 boolean isInInterpretation(int[] tup)
          Returns true if the tuple is in the relation; otherwise returns false
 
Methods inherited from class RBNpackage.RelInt
allTrue, getTuples, rel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixRel

public MatrixRel()
Creates new MatrixRel


MatrixRel

public MatrixRel(Rel r,
                 int domsize)
Creates new MatrixRel

Method Detail

addTuple

public int addTuple(int[] tup)
Description copied from class: RelInt
Add tup to interpretation (equivalent: set relation(tup)=true). No effect if tup already in interpretation Returns 1 if tup was not in relation already; else -1

Specified by:
addTuple in class RelInt

deleteTuple

public void deleteTuple(int[] tup)
Description copied from class: RelInt
Delete tup from interpretation (equivalent: set relation(tup)=false). No effect if tup not contained in interpretation

Specified by:
deleteTuple in class RelInt

deleteNode

public void deleteNode(int node)

isInInterpretation

public boolean isInInterpretation(int[] tup)
Description copied from class: RelInt
Returns true if the tuple is in the relation; otherwise returns false

Specified by:
isInInterpretation in class RelInt