protected boolean connectInput(NeuralConnection i,int n){
  for (int noa=0; noa < m_numInputs; noa++) {
    if (i == m_inputList[noa]) {
      return false;
    }
  }
  if (m_numInputs >= m_inputList.length) {
    allocateInputs();
  }
  m_inputList[m_numInputs]=i;
  m_inputNums[m_numInputs]=n;
  m_numInputs++;
  return true;
}

protected boolean connectInput ( NeuralConnection i , int n ) { for ( int noa = 0 ; noa < m_numInputs ; noa ++ ) { if ( i == m_inputList [ noa ] ) { return false ; } } if ( m_numInputs >= m_inputList . length ) { allocateInputs ( ) ; } m_inputList [ m_numInputs ] = i ; m_inputNums [ m_numInputs ] = n ; m_numInputs ++ ; return true ; }
this will connect the specified unit to be an input to this unit .
