|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscg.ac.ni.pmf.newgraph.graphdata.EdgeData
public final class EdgeData
Represents the data which defines an edge. It has the IDs of the both vertices and the multiplicity of the edge. It also implements the basic methods for manipulating edges as the data structure, such as hash tables and sorting algorithms.
The class can only report info about the edge, it can not change it.
For changing the edge, the class Edge
is used.
Edge
,
Graph
,
Serialized FormMethod Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares the object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is equal to this one. |
int |
getIDA()
Retrieves the ID of the vertex A. |
int |
getIDB()
Retrieves the ID of the vertex B. |
int |
getMultiplicity()
Retrieves the multiplicity of the edge. |
VertexData |
getVertexA()
Retrieves the vertex data A. |
VertexData |
getVertexB()
Retrieves the vertex data B. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isIncident(int id)
Retrieves is the specified vertex incident with the edge. |
boolean |
isIncident(VertexData v)
Retrieves is the specified vertex incident with the edge. |
boolean |
isPrimarySelected()
Retrieves is the edge primary selected. |
boolean |
isSelected()
Retrieves is the edge selected. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(Object)
public int getIDA()
public int getIDB()
public int getMultiplicity()
public boolean isIncident(int id)
id
- The ID of the vertex.
public boolean isIncident(VertexData v)
v
- The vertex data.
public VertexData getVertexA()
public VertexData getVertexB()
public boolean isSelected()
isSelected
in interface ElementData
public boolean isPrimarySelected()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |