|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molwind.graph.DefaultEntityEdge
public class DefaultEntityEdge
DefaultEntityEdge represents an edge in the entity graph.
| Constructor Summary | |
|---|---|
DefaultEntityEdge(DefaultEntityVertex vertex1,
DefaultEntityVertex vertex2)
DefaultEntityEdge constructor. |
|
DefaultEntityEdge(EntityVertex vertex1,
EntityVertex vertex2,
int edgeWeight)
DefaultEntityEdge constructor. |
|
| Method Summary | |
|---|---|
int |
getEdgeWeight()
Get the EdgeWeight value. |
Relationship |
getRelationship()
Get the Relationship value. |
EntityVertex |
getV1()
Get the V1 value. |
EntityVertex |
getV2()
Get the V2 value. |
edu.uci.ics.jung.graph.util.Pair<EntityVertex> |
getVerticePair()
Returns the vertices |
boolean |
isVertexIncluded(EntityVertex v)
Checks if the vertex is part of this Edge |
void |
setEdgeWeight(int newEdgeWeight)
Set the EdgeWeight value. |
void |
setRelationship(Relationship newRelation)
Set the Relationship value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEntityEdge(EntityVertex vertex1,
EntityVertex vertex2,
int edgeWeight)
vertex1 - first Vertexvertex2 - second VertexedgeWeight - edgeweight
public DefaultEntityEdge(DefaultEntityVertex vertex1,
DefaultEntityVertex vertex2)
vertex1 - first Vertexvertex2 - second Vertex| Method Detail |
|---|
public int getEdgeWeight()
getEdgeWeight in interface EntityEdgepublic EntityVertex getV1()
getV1 in interface EntityEdgepublic EntityVertex getV2()
getV2 in interface EntityEdgepublic void setEdgeWeight(int newEdgeWeight)
newEdgeWeight - The new EdgeWeight value.public edu.uci.ics.jung.graph.util.Pair<EntityVertex> getVerticePair()
getVerticePair in interface EntityEdgepublic boolean isVertexIncluded(EntityVertex v)
the - vertex to checkedpublic Relationship getRelationship()
getRelationship in interface EntityEdgepublic void setRelationship(Relationship newRelation)
setRelationship in interface EntityEdgenewRelation - the new Relationship value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||