@Override public void update(){
  if (inputMode) {
    if (testData == null) {
      throw new NullPointerException("Test data variable is null," + " but neuron group " + getLabel() + " is in input"+ " mode.");
    }
    readNextInputUnsafe();
  }
 else {
    Network.updateNeurons(neuronList);
  }
  if (isRecording()) {
    writeActsToFile();
  }
}

@ Override public void update ( ) { if ( inputMode ) { if ( testData == null ) { throw new NullPointerException ( "Test data variable is null," + " but neuron group " + getLabel ( ) + " is in input" + " mode." ) ; } readNextInputUnsafe ( ) ; } else { Network . updateNeurons ( neuronList ) ; } if ( isRecording ( ) ) { writeActsToFile ( ) ; } }
updates all the neurons in the neuron group according to their neuronupdaterule ( s ) . if the group is in input mode reads in the next set of values from the input table and sets the neuron values accordingly .
