public void updateWeights(double l,double m){
  if (!m_weightsUpdated && !Double.isNaN(m_unitError)) {
    m_methods.updateWeights(this,l,m);
    super.updateWeights(l,m);
  }
}

public void updateWeights ( double l , double m ) { if ( ! m_weightsUpdated && ! Double . isNaN ( m_unitError ) ) { m_methods . updateWeights ( this , l , m ) ; super . updateWeights ( l , m ) ; } }
call this function to update the weight values at this unit . after the weights have been updated at this unit , all the input connections will then be called from this to have their weights updated .
