|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.ddg.ConstraintGraphEdge
public class ConstraintGraphEdge
Represents a directed edge from one Primitive to another in the constraint
graph. Stores:
- start point primitive
- end point primitive
- confidence (in the interval [0;1]) that the constraint holds
- relevance of the constraint ([0;1])
If the constraint represents a property instead of a relationship, the primitive will have a self loop - both the start and the end primitives will be the same.
ConstraintGraphEdge.java Created: Sat Nov 21 18:26:00 2001
| Constructor Summary | |
|---|---|
ConstraintGraphEdge(ConstraintGraphEdge edge)
Constructs an edge from a given edge |
|
ConstraintGraphEdge(Primitive startPrimitive,
Primitive endPrimitive,
double confidence,
double relevance)
Constructs an edge. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone the edge |
double |
confidence()
Get confidence |
Primitive |
endPrimitive()
Get end point primitive. |
boolean |
equals(java.lang.Object other)
|
void |
print(java.io.PrintStream out,
boolean printDetails)
Print the edge to a given output stream. |
double |
relevance()
Get relevance |
void |
setConfidence(double confidence)
Set confidence. |
void |
setEndPrimitive(Primitive primitive)
Set end point primitive. |
void |
setRelevance(double relevance)
Set relevance. |
void |
setStartPrimitive(Primitive primitive)
Set start point primitive. |
Primitive |
startPrimitive()
Get start point primitive. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintGraphEdge(Primitive startPrimitive,
Primitive endPrimitive,
double confidence,
double relevance)
throws ValueOutOfRangeException
ValueOutOfRangeExceptionpublic ConstraintGraphEdge(ConstraintGraphEdge edge)
| Method Detail |
|---|
public Primitive startPrimitive()
public void setStartPrimitive(Primitive primitive)
public Primitive endPrimitive()
public void setEndPrimitive(Primitive primitive)
public double confidence()
public double relevance()
public void setConfidence(double confidence)
throws ValueOutOfRangeException
ValueOutOfRangeException
public void setRelevance(double relevance)
throws ValueOutOfRangeException
ValueOutOfRangeException
public void print(java.io.PrintStream out,
boolean printDetails)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||