|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
mapss.dif.graph.hierarchy.HierarchyException
mapss.dif.graph.hierarchy.CyclicHierarchyException
public class CyclicHierarchyException
This exception is thrown when a cycle in the hierarchy of graphs is detected.
Hierarchy
,
Serialized FormConstructor Summary | |
---|---|
CyclicHierarchyException(mocgraph.Edge violation)
Constructs a Cyclic Hierarchy Exception detected upon encountering a hierarchy relation (defined in the parameter) between two Hierarchy objects. |
Method Summary | |
---|---|
static CyclicHierarchyException |
checkCycle(Hierarchy parent,
Hierarchy child)
Returns a Cyclic Hierarchy Exception if a hierarchy relation cycle occurs when the child is added to parent via Hierarchy.addSuperNode(mocgraph.Node, mapss.dif.graph.hierarchy.Hierarchy) . |
mocgraph.Edge |
getViolatingEdge()
Returns an edge which is detected to cause a cycle during the traversal of the graph hierarchy. |
Methods inherited from class mapss.dif.graph.hierarchy.HierarchyException |
---|
checkConnection, checkConnection, checkFlatten, checkPort, checkSuperNode |
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 |
Constructor Detail |
---|
public CyclicHierarchyException(mocgraph.Edge violation)
violation
- An edge in the hierarchy relation graph which violates
the DAG property. The weights of the nodes connected to the edge should
be graphs. The direction of the edge should be from the parent to
the child.Method Detail |
---|
public static CyclicHierarchyException checkCycle(Hierarchy parent, Hierarchy child)
Hierarchy.addSuperNode(mocgraph.Node, mapss.dif.graph.hierarchy.Hierarchy)
.
parent
- Parent hierarchy that will include the child in a super
node.child
- The sub-hierarchy.
public mocgraph.Edge getViolatingEdge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |