RBNpackage
Class SparseRelStruc
java.lang.Object
RBNpackage.RelStruc
RBNpackage.SparseRelStruc
- All Implemented Interfaces:
- java.lang.Cloneable
public class SparseRelStruc
- extends RelStruc
Methods inherited from class RBNpackage.RelStruc |
addDomainDec, addNode, addNode, addNode, addNode, addTuple, addTuple, allArgTuples, allElements, allTrue, allTypedTuples, createCoords, deleteRelation, deleteTuple, domSize, getArbitraryRelations, getAttributes, getAttributesColors, getBinaryColors, getBinaryRelations, getCoords, getData, getIndexes, getNames, getRels, getSize, isOrdRel, nameAt, namesAt, namesAtAsArray, saveToAtomFile, saveToMysql, saveToProximityText, saveToRDEF, saveToTextFiles, setData, setName, trueCC, trueGroundCC, trueOrdAtom, trueOrdAtom, truthValueOf |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparseRelStruc
public SparseRelStruc()
- Creates new SparseRelStruc
SparseRelStruc
public SparseRelStruc(int n)
- Creates new SparseRelStruc with n elements
SparseRelStruc
public SparseRelStruc(java.util.Vector en,
OneStrucData data,
java.util.Vector coords)
SparseRelStruc
public SparseRelStruc(SparseRelStruc toCopy)
- Since:
- 20060515
SparseRelStruc
public SparseRelStruc(RelStruc toCast)
clone
public java.lang.Object clone()
- Specified by:
clone
in class RelStruc
- Since:
- 20060515
addRelation
public void addRelation(Rel r)
- Specified by:
addRelation
in class RelStruc
allTrue
public int[][] allTrue(CConstr cc,
java.lang.String[] vars)
throws java.lang.IllegalArgumentException,
RBNCompatibilityException
- Overrides:
allTrue
in class RelStruc
- Throws:
java.lang.IllegalArgumentException
RBNCompatibilityException
allTrueAsTreeSet
public java.util.TreeSet allTrueAsTreeSet(CConstr cc,
java.lang.String[] vars)
throws java.lang.IllegalArgumentException,
RBNCompatibilityException
- Throws:
java.lang.IllegalArgumentException
RBNCompatibilityException
deleteNode
public void deleteNode(int node)
getAttrRelsAndTuples
public java.util.Vector[] getAttrRelsAndTuples(int node)
- returns this node's attributes and tuples
getOtherRelsAndTuples
public java.util.Vector[] getOtherRelsAndTuples(int node)
- returns binary and arbitrary relations and corresponding tuples
which include this node
cloneDomain
public SparseRelStruc cloneDomain(java.lang.Boolean clonerelations)
- Returns a new SparseRelStruc containing all the objects of this
SparseRelStruc. If clonerelations=true then also
the relations in this structure will be cloned.
Object names, coordinates and relations are
not cloned themselves, so that changes to these in the original
structure will also affect the clone.