public void fillFieldValues(List<SynapseUpdateRule> ruleList){
  HebbianCPCARule synapseRef=(HebbianCPCARule)ruleList.get(0);
  if (!NetworkUtils.isConsistent(ruleList,HebbianCPCARule.class,"getLearningRate")) {
    tfLearningRate.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfLearningRate.setText(Double.toString(synapseRef.getLearningRate()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianCPCARule.class,"getM")) {
    tfM.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfM.setText(Double.toString(synapseRef.getM()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianCPCARule.class,"getTheta")) {
    tfTheta.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfTheta.setText(Double.toString(synapseRef.getTheta()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianCPCARule.class,"getLambda")) {
    tfLambda.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfLambda.setText(Double.toString(synapseRef.getLambda()));
  }
}

public void fillFieldValues ( List < SynapseUpdateRule > ruleList ) { HebbianCPCARule synapseRef = ( HebbianCPCARule ) ruleList . get ( 0 ) ; if ( ! NetworkUtils . isConsistent ( ruleList , HebbianCPCARule . class , "getLearningRate" ) ) { tfLearningRate . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfLearningRate . setText ( Double . toString ( synapseRef . getLearningRate ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianCPCARule . class , "getM" ) ) { tfM . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfM . setText ( Double . toString ( synapseRef . getM ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianCPCARule . class , "getTheta" ) ) { tfTheta . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfTheta . setText ( Double . toString ( synapseRef . getTheta ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianCPCARule . class , "getLambda" ) ) { tfLambda . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfLambda . setText ( Double . toString ( synapseRef . getLambda ( ) ) ) ; } }
populate fields with current data .
