Package cnslab.cnsnetwork

Examples of cnslab.cnsnetwork.Network


     
      assertNotNull ( simulatorParser );
     
      final Seed  idum = new Seed ( -2 );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
        simulatorParser.layerStructure.neurons,
        simulatorParser.layerStructure.axons,
        jpvmInfo,
        simulatorParser.layerStructure.base,
        simulatorParser.minDelay,
        simulatorParser,             
        idum,
        simulatorParser.experiment );
     
      assertNotNull ( network );
     
      network.initNet ( );
     
      final Object
        lockObject = new Object ( );
     
      final CyclicBarrier
        cyclicBarrier = new CyclicBarrier ( 2 );
     
      final PRun
        pRun = new PRun (
          network.getDiscreteEventQueue ( ),
          network,
          lockObject,
          cyclicBarrier );
     
      final Runnable  runnable = new Runnable ( )
View Full Code Here


    @Test
    public void  test ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      final Network  network = createNetwork ( );
     
      assertNull ( network.getFireEventSlot ( ) );
     
      network.initNet ( );
     
      assertNotNull ( network.getFireEventSlot ( ) );
     
      network.init ( );
     
      final CyclicBarrier  cyclicBarrier = new CyclicBarrier ( 1 );
     
      final PRun  pRun = new PRun (
        network.getDiscreteEventQueue ( ),
        network,
        new Object ( ), // lock
        cyclicBarrier );
     
      new Thread ( pRun ).start ( );
View Full Code Here

        subexperiments,
        recorder );
     
      final JpvmInfo  jpvmInfo = createJpvmInfo ( );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
        neurons,
        axonMap,
View Full Code Here

     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = new Seed ( -3 );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),       
        neurons,
        axonMap,
        0,      // minDelay
        simulatorParser,
        networkSeed );
     
      assertNull ( network.getFireEventSlot ( ) );
     
      network.initNet ( );
     
      assertNotNull ( network.getFireEventSlot ( ) );
     
      assertNull ( network.getFirstFireEvent ( ) );
     
      neuron0.init (
        0, // expId
        0, // trialId
        seed,
        network,
        1234 );
     
      final FireEvent  fireEvent = network.getFirstFireEvent ( );
     
      assertNotNull ( fireEvent );
     
//      network.fireQueue.deleteItem ( fireEvent );
//     
View Full Code Here

     
      final Experiment  experiment = new Experiment (
        subexperiments,
        recorder );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
        neurons,
        axonMap,
        null, // info
        0,    // base
        0,    // minDelay
        simulatorParser,
        networkSeed,
        experiment );
     
      assertNull ( network.getFireEventSlot ( ) );
     
      network.initNet ( );
     
      assertNotNull ( network.getFireEventSlot ( ) );
     
      network.init ( );
    }
View Full Code Here

      final jpvmTaskId
        parentJpvmTaskId = new jpvmTaskId ( "localhost", 1968 );
     
      jpvmInfo.parentJpvmTaskId = parentJpvmTaskId;
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
        neurons,
        axonMap,
        jpvmInfo, // info
        0,    // base
        0,    // minDelay
        simulatorParser,
        networkSeed,
        experiment );
     
      assertNull ( network.getFireEventSlot ( ) );
     
      network.initNet ( );
     
      assertNotNull ( network.getFireEventSlot ( ) );
     
      network.init ( );
     
      int  spikeCount = 0;
     
      FireEvent  firstFireEvent = null;
     
      while ( ( firstFireEvent = network.getFirstFireEvent ( ) ) != null )
      {     
//        LOGGER.debug (
//          "index {} time {}",
//          firstFireEvent.index,
//          firstFireEvent.time );
       
        if ( firstFireEvent.index >= 1 )
        {
          break;
        }
       
        spikeCount++;
     
        network.pFireProcess ( firstFireEvent );
      }
     
//      LOGGER.debug ( "spike count {}", spikeCount );
    }
View Full Code Here

     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = createTestSeed ( );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
        neurons,
        axonMap,
View Full Code Here

TOP

Related Classes of cnslab.cnsnetwork.Network

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.