|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptLib.util.ObservableObject | +--mascoptLib.abstractGraph.MascoptObject | +--mascoptLib.abstractGraph.AbstractVertex
An AbstractVertex object is the most basic element one can build. An AbstractVertex provides information about its neighbors, its degree, the edges or arcs exiting or entering it. It derives from MascoptObject.
Constructor Summary | |
AbstractVertex()
Constructs a new AbstractVertex with default values
X=0.0
Y=0.0 |
|
AbstractVertex(double x,
double y)
Constructs a new AbstractVertex object. |
Method Summary | |
AbstractVertex |
getConnected(AbstractEdge abstractEdge)
Returns the vertex on the opposite side of this vertex on abstractEdge |
int |
getDegree(AbstractEdgeSet es)
Returns the degree of the vertex in an AbstractEdgeSet. |
int |
getDegree(AbstractGraph graph)
Returns the degree of the vertex in a AbstractGraph. |
AbstractEdgeSet |
getEdgesTo(AbstractEdgeSet aes,
AbstractVertex abstractVertex)
Construct an EdgeSet containing the edges leading to a vertex. |
AbstractEdgeSet |
getEdgesTo(AbstractGraph ag,
AbstractVertex abstractVertex)
Construct an EdgeSet containing the edges leading to a vertex. |
AbstractEdgeSet |
getIncidentEdges(AbstractEdgeSet es)
Returns a set of incoming and outgoing abstractEdges for this vertex. |
AbstractEdgeSet |
getIncidentEdges(AbstractGraph graph)
Returns a set of incoming and outgoing abstractEdges for this vertex. |
AbstractEdgeSet |
getIncoming(AbstractEdgeSet es)
Returns a set of incoming abstractEdges for this vertex. |
AbstractEdgeSet |
getIncoming(AbstractGraph graph)
Returns a set of incoming abstractEdges for this vertex. |
int |
getInDegree(AbstractEdgeSet es)
Returns the indegree of the vertex in a AbstractEdgeSet, ie the number of incoming abstractEdges. |
int |
getInDegree(AbstractGraph graph)
Returns the in degree of the vertex in a AbstractGraph, ie the number of incoming abstractEdges. |
AbstractVertexSet |
getNeighbours(AbstractEdgeSet es)
Returns the set of vertices which are neighbours of this vertex. |
AbstractVertexSet |
getNeighbours(AbstractGraph graph)
Returns a set of vertices which are neighbours of this vertex. |
int |
getOutDegree(AbstractEdgeSet es)
Returns the out degree of the vertex in a AbstractEdgeSet, ie the number of outgoing abstractEdges. |
int |
getOutDegree(AbstractGraph graph)
Returns the out degree of the vertex in a AbstractGraph, ie the number of outgoing abstractEdges. |
AbstractEdgeSet |
getOutgoing(AbstractEdgeSet es)
Returns a set of outgoing abstractEdges for this vertex. |
AbstractEdgeSet |
getOutgoing(AbstractGraph graph)
Returns a set of outgoing abstractEdges for this vertex. |
double |
getX()
Get X coordinate value of vertex |
double |
getY()
Get Y coordinate value of vertex |
static int |
order()
Counts all abstract vertices. |
void |
setX(double x)
Set X coordinate value of vertex |
void |
setY(double y)
Set Y coordinate value of vertex |
String |
toString()
Object string output |
Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, free, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue |
Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractVertex(double x, double y)
AbstractVertex
object.
x
- the x coordinatey
- the y coordinatepublic AbstractVertex()
AbstractVertex
with default values
X=0.0
Y=0.0
Method Detail |
public String toString()
toString
in class Object
public double getX()
public double getY()
public void setX(double x)
public void setY(double y)
public int getDegree(AbstractEdgeSet es)
inDeg(es)+outDeg(es)
es
- the AbstractEdgeSet where to compute the degree
public int getInDegree(AbstractEdgeSet es)
es
- the AbstractEdgeSet where to compute the degree
public int getOutDegree(AbstractEdgeSet es)
es
- the AbstractEdgeSet where to compute the degree
public AbstractEdgeSet getIncoming(AbstractEdgeSet es)
es
- the abstractEdgeset to consider for this operation.
public AbstractEdgeSet getOutgoing(AbstractEdgeSet es)
es
- the abstractEdgeset to consider for this operation.
public AbstractEdgeSet getIncidentEdges(AbstractEdgeSet es)
es
- the abstractEdgeset to consider for this operation.
public AbstractVertexSet getNeighbours(AbstractEdgeSet es)
es
- the AbstractEdgeSet to consider for this operation
public int getDegree(AbstractGraph graph)
degree(graph.getAbstractEdgeSet());
graph
- the AbstractGraph where to compute the degree
public int getInDegree(AbstractGraph graph)
graph
- the AbstractGraph where to compute the degree
public int getOutDegree(AbstractGraph graph)
graph
- the AbstractGraph where to compute the degree
public AbstractEdgeSet getIncoming(AbstractGraph graph)
graph
- the AbstractGraph to consider for this operation.
public AbstractEdgeSet getOutgoing(AbstractGraph graph)
graph
- the AbstractGraph to consider for this operation.
public AbstractEdgeSet getIncidentEdges(AbstractGraph graph)
graph
- the AbstractGraph to consider for this operation.
public AbstractVertexSet getNeighbours(AbstractGraph graph)
public AbstractVertex getConnected(AbstractEdge abstractEdge)
abstractEdge
- the abstractEdge
null
if there is no opposite vertex in abstractEdge.public AbstractEdgeSet getEdgesTo(AbstractEdgeSet aes, AbstractVertex abstractVertex)
abstractVertex
- the vertex we want the edges connected to
public AbstractEdgeSet getEdgesTo(AbstractGraph ag, AbstractVertex abstractVertex)
ag
- the graph set to considerabstractVertex
- the vertex we want the edges connected to
public static int order()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |