Exemplo n.º 1
0
  public static void main(String[] args) {
    new ExampleProjects();

    try {

      File exsDir = new File("osb/showcase/neuroConstructShowcase");

      File mainFile = new File("docs/XML/xmlForHtml/samples/index.xml");

      logger.logComment("Going to create docs at: " + mainFile.getCanonicalPath(), true);

      generateMainPage(mainFile, exsDir);

      logger.logComment("Created doc at: " + mainFile.getCanonicalPath(), true);
      /*
      File modelsDir = new File("nCmodels");
      mainFile = new File("docs/XML/xmlForHtml/models/index.xml");


      generateMainPage(mainFile, modelsDir);

      logger.logComment("Created doc at: "+ mainFile.getCanonicalPath(), true);

       */
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  public SynapticPropertiesDialog(Dialog dlg, SynapticProperties synProps, Project project) {
    super(dlg, "Synaptic Properties", false);

    logger.logComment("Starting with: " + synProps);

    this.mySynProps = synProps;
    this.project = project;

    try {
      jbInit();
      extraInit();
      pack();
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
Exemplo n.º 3
0
  public static void main(String args[]) {

    try {

      logger.logComment("Sys prop: " + System.getProperty("java.library.path"), true);

      // File projFile = new File("../copyNcModels/NewGranCellLayer/NewGranCellLayer.neuro.xml");

      // File projFile = new File("../nC_projects/Bignet/Bignet.neuro.xml");
      File projFile = new File("testProjects/TestNetworkML/TestNetworkML.neuro.xml");

      // Project testProj = Project.loadProject(new File("projects/Parall/Parall.neuro.xml"),null);
      // Project testProj = Project.loadProject(new
      // File("examples/Ex5-Networks/Ex5-Networks.neuro.xml"),null);
      Project testProj = Project.loadProject(projFile, null);

      // File h5File = new File(projFile.getParentFile().getAbsolutePath()+
      // "/savedNetworks/hhh.h5");
      // File h5File = new File(projFile.getParentFile().getAbsolutePath()+
      // "/savedNetworks/nnnn.h5");

      File h5File = new File("testProjects/TestNetworkML/savedNetworks/small.h5");

      // logger.logComment("Loading netml cell from "+ h5File.getAbsolutePath(), true);

      NetworkMLReader nmlReader = new NetworkMLReader(testProj);

      nmlReader.parse(h5File);

      logger.logComment("Contents: " + testProj.generatedCellPositions);
      logger.logComment("Net conns: " + testProj.generatedNetworkConnections);
      logger.logComment("Inputs: " + testProj.generatedElecInputs.details(false));

    } catch (Exception e) {
      e.printStackTrace();
      System.exit(0);
    }
  }