private NervousSystem constructConnectedNervousSystem() {
Neocortex unconnectedNeocortex = new Neocortex(new Region("V1", 4, 4,
4, 50, 3), new RegionToRegionRectangleConnect());
LGN unconnectedLGN = new LGN(new Region("LGN", 8, 8, 1, 50, 3));
Retina unconnectedRetina = new Retina(66, 66);
NervousSystem nervousSystem = new NervousSystem(unconnectedNeocortex,
unconnectedLGN, unconnectedRetina);
// connect OldRetina to LGN
Retina retina = nervousSystem.getPNS().getSNS().getRetina();
LGN LGN = nervousSystem.getCNS().getBrain().getThalamus().getLGN();
AbstractSensorCellsToRegionConnect opticNerve = new SensorCellsToRegionRectangleConnect();
opticNerve.connect(retina.getVisionCells(), LGN.getRegion(), 0, 0);
// connect LGN to very small part of V1 Region of Neocortex
Neocortex neocortex = nervousSystem.getCNS().getBrain().getCerebrum()
.getCerebralCortex().getNeocortex();
AbstractRegionToRegionConnect regionToRegionConnect = new RegionToRegionRectangleConnect();
regionToRegionConnect.connect(LGN.getRegion(),
neocortex.getCurrentRegion(), 0, 0);
return nervousSystem;
}