System.out.println("Assigning " + dev + " to " + port + ".");
    public void visitNode(FlatNode node) {        //lots of duplication here, but oh well        if (node.contents instanceof SIRFileReader) {            FileReaderDevice dev = new FileReaderDevice(streamGraph, node);            StaticStreamGraph parent = streamGraph.getParentSSG(node);                        if (parent.getIOFilters().contains(node.contents)) {                //we have a dynamic file reader                dev.setDynamic();            }            IOPort port = getPortFromUser(dev);            rawChip.connectDevice(dev, port);            fileReaders.put(node, dev);            foundReader = true;        } else if (node.contents instanceof SIRFileWriter) {            FileWriterDevice dev = new FileWriterDevice(streamGraph, node);            StaticStreamGraph parent = streamGraph.getParentSSG(node);                        if (parent.getIOFilters().contains(node.contents)) {                //we have a dynamic file reader                dev.setDynamic();            }            IOPort port = getPortFromUser(dev);            rawChip.connectDevice(dev, port);            foundWriter = true;            fileWriters.put(node, dev);        }    }