org.autopipes.graph
Class HydroVertex

java.lang.Object
  extended by org.autopipes.graph.HydroVertex
All Implemented Interfaces:
java.lang.Cloneable, CtPoint

public class HydroVertex
extends java.lang.Object
implements CtPoint, java.lang.Cloneable

Represent a vertex of a DirectedGraph derived from a drawing.


Constructor Summary
HydroVertex(CtEntity ent)
          Creates a vertex from a drawing entity centered at a point.
HydroVertex(CtPoint pt)
          Creates a vertex from a point location.
HydroVertex(double x, double y)
          Creates a vertex from a coordinate location.
 
Method Summary
 void addSymbol(CtEntity ent)
          Adds an entity to the list of drawing symbols at the vertex.
 java.lang.Object clone()
          
 java.util.Collection getCouplings()
          Gets cupling symbols at this vertex.
 java.util.Collection getHeads()
          Gets head symbols at this vertex.
 java.util.Collection getJumps()
          Gets jump symbols at this vertex.
 double getX()
          
 double getY()
          
 void setX(double x)
          
 void setY(double y)
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HydroVertex

public HydroVertex(CtEntity ent)
Creates a vertex from a drawing entity centered at a point.

Parameters:
ent - the entity

HydroVertex

public HydroVertex(CtPoint pt)
Creates a vertex from a point location.

Parameters:
pt - the point

HydroVertex

public HydroVertex(double x,
                   double y)
Creates a vertex from a coordinate location.

Parameters:
x - X-coordinate
y - Y-coordinate
Method Detail

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getX

public double getX()

Specified by:
getX in interface CtPoint

getY

public double getY()

Specified by:
getY in interface CtPoint

setX

public void setX(double x)

Specified by:
setX in interface CtPoint

setY

public void setY(double y)

Specified by:
setY in interface CtPoint

getJumps

public java.util.Collection getJumps()
Gets jump symbols at this vertex.

Returns:
the jump symbols

getHeads

public java.util.Collection getHeads()
Gets head symbols at this vertex.

Returns:
the head symbols

getCouplings

public java.util.Collection getCouplings()
Gets cupling symbols at this vertex.

Returns:
the coupling symbols

addSymbol

public void addSymbol(CtEntity ent)
Adds an entity to the list of drawing symbols at the vertex.

Parameters:
ent - the entity

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException