@Override
        public void interruptionOccurred(int currentIteration, int numIterations) {
            // FIXME: maybe skip writing the SOM at 0 iterations (0 mod x == 0 ...)
            String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
            try {
                SOMLibMapOutputter.writeWeightVectorFile(GrowingSOM.this, fileProperties.outputDirectory(), filename,
                        true, "$CURRENT_ITERATION=" + currentIteration, "$NUM_ITERATIONS=" + numIterations);
            } catch (IOException e) {
                Logger.getLogger("at.tuwien.ifs.somtoolbox").severe(
                        "Could not open or write to output file " + filename + ": " + e.getMessage());
            }
        }
@Override
        public void interruptionOccurred(int currentIteration, int numIterations) {
           
            String filename = fileProperties.namePrefix(false) + "_" + currentIteration;
            try {
                SOMLibMapOutputter.writeWeightVectorFile(GrowingSOM.this, fileProperties.outputDirectory(), filename,
                        true, "$CURRENT_ITERATION=" + currentIteration, "$NUM_ITERATIONS=" + numIterations);
            } catch (IOException e) {
                Logger.getLogger("at.tuwien.ifs.somtoolbox").severe(
                        "Could not open or write to output file " + filename + ": " + e.getMessage());
            }
        }
@override public void interruptionoccurred(int currentiteration, int numiterations) { string filename = fileproperties.nameprefix(false) + "_" + currentiteration; try { somlibmapoutputter.writeweightvectorfile(growingsom.this, fileproperties.outputdirectory(), filename, true, "$current_iteration=" + currentiteration, "$num_iterations=" + numiterations); } catch (ioexception e) { logger.getlogger("at.tuwien.ifs.somtoolbox").severe( "could not open or write to output file " + filename + ": " + e.getmessage()); } }