Comment out DAG dependency matching draft
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.terasology.engine.SimpleUri;
+//import org.terasology.logic.console.Console;
+//import org.terasology.naming.Name;
+//import org.terasology.rendering.dag.gsoc.NewAbstractNode;
/**
* TODO: Add javadocs
@@ -90,6 +93,7 @@ public void connect(Node ... nodeList) {
if (fromNode != null) {
if (!graph.hasEdgeConnecting(fromNode, toNode)) {
graph.putEdge(fromNode, toNode);
+ // matchDependencyConnections(fromNode, toNode);
} else {
logger.warn("Trying to connect two already connected nodes, " + fromNode.getUri() + " and " + toNode.getUri());
}
@@ -166,4 +170,27 @@ public void dispose() {
}
nodeMap.clear();
}
+
+ /*private void matchDependencyConnections(Node fromNode, Node toNode){
+ /**TODO REMOVE THIS IF WE MAKE THIS CHANGE FOR EVERY NODE
+ *!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*//*
+ if((fromNode instanceof NewAbstractNode)&&(toNode instanceof NewAbstractNode)){
+ NewAbstractNode fromN=(NewAbstractNode) fromNode;
+ NewAbstractNode toN=(NewAbstractNode) toNode;
+
+ List<Name> fromOutputs = fromN.getOutputConnections();
+ List<Name> toInputs = toN.getInputConnections();
+
+ if(fromOutputs.size() != toInputs.size()){
+
+ }
+
+ for (Name n: fromOutputs
+ ) {
+
+ }
+ } else{
+ return;
+ }
+ }*/
}
