|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.pdatalog.Relation
An abstract pDatalog++ relation. This class will be extended by classes for stored relations, computed relations, derived relations etc.
| Field Summary | |
protected int |
arity
The arity (number of arguments) of this relation. |
protected RelationBase |
base
The corresponding relation base. |
protected java.lang.String |
name
The relation name. |
| Constructor Summary | |
Relation(RelationBase base,
java.lang.String name,
int arity)
Constructs a new relation, and automatically adds it to the relation base. |
|
Relation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
Constructs a new relation, and automatically adds it to the relation base. |
|
Relation(java.lang.String name,
int arity)
Constructs a new relation, without adding it to the relation base. |
|
| Method Summary | |
int |
getArity()
Returns the arity of this relation. |
java.lang.String |
getName()
Returns the name of this relation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RelationBase base
protected java.lang.String name
protected int arity
| Constructor Detail |
public Relation(java.lang.String name,
int arity)
name - relatio n namearity - arity of the relation
public Relation(RelationBase base,
java.lang.String name,
int arity)
base - corresponding relation basename - relatio n namearity - arity of the relation
public Relation(RelationBase base,
java.lang.String name,
int arity,
boolean create)
base - corresponding relation basename - relatio n namearity - arity of the relation @ param create if true, the relation is physically
created @ status finished 2003-12-08| Method Detail |
public java.lang.String getName()
public int getArity()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||