public void fillFieldValues(List<SynapseUpdateRule> ruleList){
  HebbianThresholdRule synapseRef=(HebbianThresholdRule)ruleList.get(0);
  if (!NetworkUtils.isConsistent(ruleList,HebbianThresholdRule.class,"getLearningRate")) {
    tfLearningRate.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfLearningRate.setText(Double.toString(synapseRef.getLearningRate()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianThresholdRule.class,"getOutputThresholdMomentum")) {
    tfOutputThresholdMomentum.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfOutputThresholdMomentum.setText(Double.toString(synapseRef.getOutputThresholdMomentum()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianThresholdRule.class,"getOutputThreshold")) {
    tfOutputThreshold.setText(SimbrainConstants.NULL_STRING);
  }
 else {
    tfOutputThreshold.setText(Double.toString(synapseRef.getOutputThreshold()));
  }
  if (!NetworkUtils.isConsistent(ruleList,HebbianThresholdRule.class,"getUseSlidingOutputThreshold")) {
    isOutputThresholdSliding.setNull();
  }
 else {
    isOutputThresholdSliding.setSelected(synapseRef.getUseSlidingOutputThreshold());
  }
}

public void fillFieldValues ( List < SynapseUpdateRule > ruleList ) { HebbianThresholdRule synapseRef = ( HebbianThresholdRule ) ruleList . get ( 0 ) ; if ( ! NetworkUtils . isConsistent ( ruleList , HebbianThresholdRule . class , "getLearningRate" ) ) { tfLearningRate . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfLearningRate . setText ( Double . toString ( synapseRef . getLearningRate ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianThresholdRule . class , "getOutputThresholdMomentum" ) ) { tfOutputThresholdMomentum . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfOutputThresholdMomentum . setText ( Double . toString ( synapseRef . getOutputThresholdMomentum ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianThresholdRule . class , "getOutputThreshold" ) ) { tfOutputThreshold . setText ( SimbrainConstants . NULL_STRING ) ; } else { tfOutputThreshold . setText ( Double . toString ( synapseRef . getOutputThreshold ( ) ) ) ; } if ( ! NetworkUtils . isConsistent ( ruleList , HebbianThresholdRule . class , "getUseSlidingOutputThreshold" ) ) { isOutputThresholdSliding . setNull ( ) ; } else { isOutputThresholdSliding . setSelected ( synapseRef . getUseSlidingOutputThreshold ( ) ) ; } }
populate fields with current data .
