private void addSynapseToList(Synapse synapse){
  if (excitatoryInputs.contains(synapse)) {
    excitatoryInputs.remove(synapse);
  }
  if (inhibitoryInputs.contains(synapse)) {
    inhibitoryInputs.remove(synapse);
  }
  if (synapse.getStrength() > 0) {
    excitatoryInputs.add(synapse);
  }
 else {
    inhibitoryInputs.add(synapse);
  }
}

private void addSynapseToList ( Synapse synapse ) { if ( excitatoryInputs . contains ( synapse ) ) { excitatoryInputs . remove ( synapse ) ; } if ( inhibitoryInputs . contains ( synapse ) ) { inhibitoryInputs . remove ( synapse ) ; } if ( synapse . getStrength ( ) > 0 ) { excitatoryInputs . add ( synapse ) ; } else { inhibitoryInputs . add ( synapse ) ; } }
adds a synapse to the appropriate internal list .
