private void dump(AbstractSampleDataRelationshipNode node, String tab) { System.out.println(tab + " -> " + toString(node)); dumpProtocols(node.getProtocolApplications(), tab); for (AbstractSampleDataRelationshipNode x : node.getPredecessors()) { System.out.println(tab + "\t <- " + toString(x)); } for (AbstractSampleDataRelationshipNode x : node.getSuccessors()) { dump(x, tab + "\t"); } }
private String toString(AbstractSampleDataRelationshipNode node) { return node.getName() + "(" + node.getNodeType() + "-" + System.identityHashCode(node) + ")"; }