jlink.flowchart.graph
Class DuplicateJLVertexException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jlink.flowchart.graph.DuplicateJLVertexException
- All Implemented Interfaces:
- java.io.Serializable
public class DuplicateJLVertexException
- extends java.lang.Exception
Occasionally when using methods that add a JLVertex to a JLGraph (which is the
same as adding a JLVertex to inside a JLVertexSet), the calling program may have
accidentally duplicated an addition of a vertex. If this has occurred, this exception will be thrown, with
a reference to the JLVertex that was duplicated in addition.
It should be known that in a graph, vertices and edges are single entities- there are no duplicates.
- Author:
- jasonkb
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
duplicateVertex
public JLVertex duplicateVertex
JLVertex that is responsible for throwing this duplicate exception.
duplicateVertexSet
public JLVertexSet duplicateVertexSet
- The
JLVertexSet that holds the duplicated JLVertex.
DuplicateJLVertexException
public DuplicateJLVertexException(JLVertex duplicate,
JLVertexSet duplicateSet)
- Thrown when a
JLVertex is duplicated in appending to a JLVertexSet.
- Parameters:
duplicate - The duplicate JLVertex.duplicateSet - The duplicate JLVertex resides inside this JLVertexSet.