Package ca.nengo.io

Examples of ca.nengo.io.FileManager.save()


   *             if model cannot be saved to file
   */
  public void saveModel(File file) throws IOException {
    FileManager fm = new FileManager();

    fm.save(this.getModel(), file);
    new TransientStatusMessage(this.getFullName() + " was saved to " + file.toString(), 2500);
  }
 
  public void generateScript(File file) throws IOException {
    FileManager fm = new FileManager();
View Full Code Here


                result = doMake(name, n, radii, 0);

                try {
                    // Set the ensemble's factory to null to allow saving with customized ensemble factories
                    result.setEnsembleFactory(null);
                    fm.save(result, ensembleFile);
                } catch (IOException e) {
                    ourLogger.error("Failed to save file " + ensembleFile.getAbsolutePath(), e);
                }
            }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.