Example of an Neosim XML File

Example of a simulation with standard projection and control.


<header>
    <author> name </author>
    <email> name@org.org </email>
    <date> 02 Nov 2000 </date>
    <version> 0.1 </version>
</header>

<prototypes>
  <define-entity name="neuron" modulename="libNeuron" xmlfile="neuron.xml"/>

  <define-network name="net1">
     <population name="source" entityname="neuron" num="10"/>
     <population name="dest" entityname="neuron" num="10"/>

     <projection name="toOthers" srcPop="neuronpop" dstPop="neuronpop" type="standard" >
             <connection src="0" scrPort="out1" dst="1" dstPort="in1"
                         delay="2" weight="2"  />
             <connection src="1" scrPort="out1" dst="2" dstPort="in1"
                         delay="3" weight="2"  />
             <connection src="2" scrPort="out1" dst="3" dstPort="in1"
                         delay="5" weight="2"  />
     </projection>

  </define-network>
</prototypes>

<model>
    <network name ="net1" />
</model>

<experiment>
    <module name="libNeuron"
            location="file:/home/examples/simpleneuron/simpleneuron.jar" version="1.0"
    />
    <control>
       <time value="10" />
    </control>
</experiment>


Example of a simulation with custom projection and control.


<header>
    <author> name </author>
    <email> name@org.org </email>
    <date> 02 Nov 2000 </date>
    <version> 0.1 </version>
</header>

<prototypes>
  <define-entity name="neuron" modulename="libNeuron" xmlfile="neuron.xml"/>

  <define-network name="net2">

     <population name="source3D" entityname="neuron"type="Grid3D" 
                   xdim="3" ydim="3" zdim="2" 
                   xorig="0" yorig="0" zorig="0" 
                   xdelta="1" ydelta="1" zdelta="1"/>
     <population name="dest3D" entityname="neuron" type="Grid3D" 
                   xdim="3" ydim="3" zdim="2" 
                   xorig="0" yorig="0" zorig="0" 
                   xdelta="1" ydelta="1" zdelta="1"/>

     <projection name="Sphere" srcPop="source3D" dstPop="dest3D" type="jar" 
                    jarfile="ProjSphere" radius="1" autoconnect="true" 
                    boundmethod="mirror">
	  <connection scrPort="out1" dstPort="in1" delay="2" 
                         xrange="1" yrange="1" zrange="1" />
     </projection>

  </define-network>

<model>
    <network name ="net2" />
</model>

<experiment>
    <module name="libNeuron"
            location="file:/home/examples/simpleneuron/simpleneuron.jar" version="1.0" />
     <module name="controlMod" 
            location="file:/home/examples/controls/control.jar" version="1.0"
     <module name="ProjSphere" 
            location="file:/home/examples/projections/Proj3DSphere.jar" version="1.0"

    <control>
       <controlmodule name="controlMod" />      
    </control>
</experiment>





Go back to the XML Format Description page