|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRBNpackage.RelStruc
public abstract class RelStruc
Field Summary | |
---|---|
static int |
BLP_FORMAT
|
int |
dom
|
static int |
MLN_FORMAT
|
Constructor Summary | |
---|---|
RelStruc()
Creates new RelStruc |
|
RelStruc(int n)
Creates new RelStruc with a domain of n elements |
|
RelStruc(RelStruc toCopy)
|
|
RelStruc(java.util.Vector en,
OneStrucData data,
java.util.Vector coords)
|
Method Summary | |
---|---|
void |
addDomainDec(Element el)
|
void |
addNode()
|
void |
addNode(int xc,
int yc)
|
void |
addNode(java.lang.String st)
|
void |
addNode(java.lang.String st,
int xc,
int yc)
|
abstract void |
addRelation(Rel r)
|
int |
addTuple(Rel r,
int[] tuple)
|
void |
addTuple(Rel r,
java.lang.String[] tuple)
|
int[][] |
allArgTuples(Rel r)
|
int[] |
allElements(Type rtype)
Returns all elements in the domain of type rtype. |
int[][] |
allTrue(CConstr cc,
java.lang.String[] vars)
|
java.util.Vector<int[]> |
allTrue(Rel r)
|
int[][] |
allTypedTuples(Type[] types)
Returns an array of integer tuples of length types.length. |
abstract java.lang.Object |
clone()
|
void |
createCoords()
|
void |
deleteRelation(Rel r)
|
void |
deleteTuple(Rel r,
int[] tuple)
|
int |
domSize()
|
java.util.Vector<Rel> |
getArbitraryRelations()
|
java.util.Vector<Rel> |
getAttributes()
|
java.util.Vector |
getAttributesColors(int n)
|
java.util.Vector[] |
getBinaryColors(int node)
Returns the binary relation tuples from this node to some other node and the colors of the relations |
java.util.Vector<Rel> |
getBinaryRelations()
|
java.util.Vector |
getCoords()
|
OneStrucData |
getData()
|
int[] |
getIndexes(java.lang.String[] tuple)
|
java.util.Vector |
getNames()
|
java.util.Vector<Rel> |
getRels()
|
int |
getSize()
|
boolean |
isOrdRel(Rel r)
Returns true if r is one of the OrdRels |
java.lang.String |
nameAt(int i)
|
java.lang.String |
namesAt(int[] args)
|
java.lang.String[] |
namesAtAsArray(int[] args)
|
void |
saveToAtomFile(java.lang.String filename,
int format)
Saves the RelStruc into a file using the BLP or MLN syntax for logical specifications |
void |
saveToMysql(java.lang.String dbname)
Saves the RelStruc to a new MySQL database |
void |
saveToProximityText(java.lang.String path)
Saves the RelStruc to a collection of text file in Proximity format path is a directory path |
void |
saveToRDEF(java.io.File f)
|
void |
saveToTextFiles(java.lang.String path)
Saves structure into collection of text files into directory path |
protected void |
setData(OneStrucData dat)
|
int |
setName(java.lang.String name,
int i)
|
boolean |
trueCC(CConstr cc,
java.lang.String[] vars,
int[] args)
|
boolean |
trueGroundCC(CConstr cc)
|
boolean |
trueOrdAtom(CConstrAtom at)
|
boolean |
trueOrdAtom(CConstrAtom at,
java.lang.String[] vars,
int[] args)
|
int |
truthValueOf(Rel r,
int[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int BLP_FORMAT
public static int MLN_FORMAT
public int dom
Constructor Detail |
---|
public RelStruc()
public RelStruc(int n)
public RelStruc(java.util.Vector en, OneStrucData data, java.util.Vector coords)
public RelStruc(RelStruc toCopy)
Method Detail |
---|
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public int domSize()
public java.lang.String nameAt(int i)
public java.lang.String namesAt(int[] args)
public java.lang.String[] namesAtAsArray(int[] args)
public int setName(java.lang.String name, int i)
public void createCoords()
public void addNode()
public void addNode(java.lang.String st)
public void addNode(java.lang.String st, int xc, int yc)
public void addNode(int xc, int yc)
public int addTuple(Rel r, int[] tuple)
public void deleteTuple(Rel r, int[] tuple)
public abstract void addRelation(Rel r) throws RBNCompatibilityException
RBNCompatibilityException
public void deleteRelation(Rel r)
public java.util.Vector getCoords()
public java.util.Vector getNames()
public int getSize()
public java.util.Vector getAttributesColors(int n)
public java.util.Vector[] getBinaryColors(int node)
public java.util.Vector<Rel> getAttributes()
public java.util.Vector<Rel> getBinaryRelations()
public java.util.Vector<Rel> getArbitraryRelations()
public boolean isOrdRel(Rel r)
public boolean trueCC(CConstr cc, java.lang.String[] vars, int[] args) throws java.lang.IllegalArgumentException, RBNCompatibilityException
java.lang.IllegalArgumentException
RBNCompatibilityException
public boolean trueGroundCC(CConstr cc) throws RBNCompatibilityException
RBNCompatibilityException
public boolean trueOrdAtom(CConstrAtom at)
public boolean trueOrdAtom(CConstrAtom at, java.lang.String[] vars, int[] args)
public int[] allElements(Type rtype) throws RBNIllegalArgumentException
rtype
-
RBNIllegalArgumentException
public int[][] allTrue(CConstr cc, java.lang.String[] vars) throws java.lang.IllegalArgumentException, RBNCompatibilityException
java.lang.IllegalArgumentException
RBNCompatibilityException
public java.util.Vector<int[]> allTrue(Rel r)
public int[][] allTypedTuples(Type[] types) throws RBNIllegalArgumentException
types
-
RBNIllegalArgumentException
public int[][] allArgTuples(Rel r) throws RBNIllegalArgumentException
RBNIllegalArgumentException
public void saveToAtomFile(java.lang.String filename, int format)
public void saveToRDEF(java.io.File f)
public void saveToProximityText(java.lang.String path) throws RBNioException
RBNioException
public void saveToMysql(java.lang.String dbname)
public void saveToTextFiles(java.lang.String path)
path
- public OneStrucData getData()
protected void setData(OneStrucData dat)
public void addDomainDec(Element el)
public void addTuple(Rel r, java.lang.String[] tuple)
public int[] getIndexes(java.lang.String[] tuple)
public java.util.Vector<Rel> getRels()
public int truthValueOf(Rel r, int[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |