Package eas.users.students.dominikColling.rocket

Examples of eas.users.students.dominikColling.rocket.DomPhysNetPopulation


  /* (non-Javadoc)
   * @see eas.plugins.Plugin#runDuringSim(eas.simulation.environment.AbstractEnvironment, eas.simulation.Wink, eas.statistics.ParCollection)
   */
  @Override
  public void runDuringSimulation(DomPhysEnv env, Wink simZyk, ParCollection params) {
    DomPhysNetPopulation netPop = env.getNetPop();
   
    for (int i = 0; i < netPop.getSize(); i++) {
      DomPhysSparseNet hirn = netPop.getNet(i);
     
      List<DomPhysNeuron> neurons = hirn.getNeurons();
      for (int j = 0; j < neurons.size() - 1; j++) {
        int k = neurons.get(j).getId();
        int l = neurons.get(j + 1).getId();
        if (k == l) {
          System.out.println("TIME: " + simZyk.getCurrentTime() + " NR" + i + ":  zweimal gleich!!! " + hirn.generateGenome(new DominikEncoding1()) );
          System.out.println("ID: " + hirn.getId() + " VaterID: " + hirn.getVaterId());
         
          System.out.println(netPop.getNet(99).generateGenome(new DominikEncoding1()) );
          System.out.println("ID: " + netPop.getNet(99).getId() + " VaterID: " + netPop.getNet(4).getVaterId());
              }
      }
    }
   
  }
View Full Code Here

TOP

Related Classes of eas.users.students.dominikColling.rocket.DomPhysNetPopulation

Copyright © 2018 www.massapicom. 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.