|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
- edgeweightpublic DefaultEntityEdge(DefaultEntityVertex vertex1, DefaultEntityVertex vertex2)
vertex1
- first Vertexvertex2
- second VertexMethod Detail |
---|
public int getEdgeWeight()
getEdgeWeight
in interface EntityEdge
public EntityVertex getV1()
getV1
in interface EntityEdge
public EntityVertex getV2()
getV2
in interface EntityEdge
public void setEdgeWeight(int newEdgeWeight)
newEdgeWeight
- The new EdgeWeight value.public edu.uci.ics.jung.graph.util.Pair<EntityVertex> getVerticePair()
getVerticePair
in interface EntityEdge
public boolean isVertexIncluded(EntityVertex v)
the
- vertex to checkedpublic Relationship getRelationship()
getRelationship
in interface EntityEdge
public void setRelationship(Relationship newRelation)
setRelationship
in interface EntityEdge
newRelation
- the new Relationship value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |