toString() override for DependencyConnection
Example: "Output:FBO1([Parent]engine:NodeA->module:NodeB)"
Example: "Input:FBO2([Parent]engine:NodeB<-engine:NodeA)"
@@ -80,4 +80,11 @@ public Type getType() {
return this.connectionType;
}
+ @Override
+ public String toString() {
+ return (this.connectionType == Type.OUTPUT) ?
+ String.format("Output:%s([Parent]%s->%s)", this.connectionName, this.parentNode, this.connectedNode) :
+ String.format("Input:%s([Parent]%s<-%s)", this.connectionName, this.parentNode, this.connectedNode);
+ }
+
}
