|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.ddg.ConstraintGraphEdge
Represents a directed edge from one Primitive to another in the constraint
graph. Stores:
- primitive to which the edge points to
- number representing the confidence (in the interval [0;1]) that the constraint holds
- number representing the belief in the relevance of the constraint ([0;1])
Constraint objects store a list of outcoming edges for each primitive.
If the constraint represents a property instead of a relationship, the primitive will have a self loop.
ConstraintGraphEdge.java Created: Sat Nov 21 18:26:00 2001
| Constructor Summary | |
ConstraintGraphEdge(Primitive primitive,
double confidence,
double relevance)
Constructs an edge. |
|
| Method Summary | |
double |
confidence()
Get confidence |
Primitive |
primitive()
Get primitive. |
void |
print(Primitive p1)
Print the edge. |
double |
relevance()
Get relevance |
void |
setConfidence(double confidence)
Set confidence |
void |
setPrimitive(Primitive primitive)
Set primitive |
void |
setRelevance(double relevance)
Set relevance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstraintGraphEdge(Primitive primitive,
double confidence,
double relevance)
| Method Detail |
public Primitive primitive()
public double confidence()
public double relevance()
public void setPrimitive(Primitive primitive)
public void setConfidence(double confidence)
public void setRelevance(double relevance)
public void print(Primitive p1)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||