for (int i = 0; i < RawBackend.rawColumns * RawBackend.rawRows; i++) { Coordinate current = Layout.getTile(i); fw.write("listi_add(ReceiveSchedules, "); if (steadyReceiveSchedules.containsKey(current)) fw.write("tile" + i + "receive);\n"); else fw.write("0);\n");
for (row = 0; row < realRows; row++) { for (column = 0; column < realColumns; column++) { fw.write("listi_add(ReceiveSchedules, ");    if (row < RawBackend.rawRows && column < RawBackend.rawColumns) { Coordinate current = Layout.getTile(row, column);  if (steadyReceiveSchedules.containsKey(current)) fw.write("tile" + Layout.getTileNumber(current) + "receive);\n"); else fw.write("0);\n"); } else fw.write("0);\n"); }
    private static void createList(FileWriter fw) throws Exception    {	fw.write("SendSchedules = listi_new();\n");	for (int i = 0; i < RawBackend.rawColumns * RawBackend.rawRows; i++) {	    Coordinate current = Layout.getTile(i);	    fw.write("listi_add(SendSchedules, ");	    if (steadySendSchedules.containsKey(current))		fw.write("tile" + i + "send);\n");	    else 		fw.write("0);\n");	}	fw.write("ReceiveSchedules = listi_new();\n");	for (int i = 0; i < RawBackend.rawColumns * RawBackend.rawRows; i++) {	    Coordinate current = Layout.getTile(i);	    fw.write("listi_add(ReceiveSchedules, ");	    if (steadyReceiveSchedules.containsKey(current))		fw.write("tile" + i + "receive);\n");	    else 		fw.write("0);\n");	}		fw.write("}\n");    }