propKineticCount.setValue(e.getPreviousValue());
propSamplesPerSecond.setValue(e.getPreviousValue());
  public void initProperties() {    propCyberCount = addProperty(PROP_CYBERCOUNT, PROP_CYBERCOUNT_DFLT, 			       new ConfigurableComponentPropertyAdapter() {				 public void propertyValueChanged(PropertyEvent e) {				   int newVal = ((Integer)e.getProperty().getValue()).intValue();				   int prevVal = ((Integer)e.getPreviousValue()).intValue();				   if(newVal < 1) {				     propCyberCount.setValue(new Integer(prevVal));				   } else if( newVal == prevVal ) {				     // Ignore it.				   } else {				     changeCyberImpactCount(newVal);				   }				 }			       });    propCyberCount.setToolTip(PROP_CYBERCOUNT_DESC);    propKineticCount = addProperty(PROP_KINETICCOUNT, PROP_KINETICCOUNT_DFLT, 			       new ConfigurableComponentPropertyAdapter() {				 public void propertyValueChanged(PropertyEvent e) {				   int newVal = ((Integer)e.getProperty().getValue()).intValue();				   int prevVal = ((Integer)e.getPreviousValue()).intValue();				   if(newVal < 1) {				     propCyberCount.setValue(new Integer(prevVal));				   } else if( newVal == prevVal ) {				     // Ignore it.				   } else {				     changeKineticImpactCount(newVal);				   }				 }			       });    propKineticCount.setToolTip(PROP_KINETICCOUNT_DESC);    propRWEFile = addProperty(PROP_RWEFILE, PROP_RWEFILE_DFLT, 			       new ConfigurableComponentPropertyAdapter() {				 public void propertyValueChanged(PropertyEvent e) {				   if(((String)e.getProperty().getValue()).equals("")) {				     propKineticCount.setValue(e.getPreviousValue());				   }				 }			       });    propRWEFile.setToolTip(PROP_RWEFILE_DESC);    propSocietyFile = addProperty(PROP_SOCIETYFILE, PROP_SOCIETYFILE_DFLT, 			       new ConfigurableComponentPropertyAdapter() {				 public void propertyValueChanged(PropertyEvent e) {				   if(((String)e.getProperty().getValue()).equals("")) {				     propKineticCount.setValue(e.getPreviousValue());				   }				 }			       });    propSocietyFile.setToolTip(PROP_SOCIETYFILE_DESC);    // Create our two agents here.    transducerAgent = new ImpactAgentComponent("Transducer", false);    transducerAgent.initProperties();    addChild(transducerAgent);    generatorAgent = new ImpactAgentComponent("Generator", true);    generatorAgent.initProperties();    addChild(generatorAgent);  }