/**
  * Sets the model and notofies children to reflect the changes.
  *
  * @param model The model to set.
  */
 public void setModel(DriveTrain model) {
   this.model = model;
   generalTranslationInput.setModel(model);
   generalGeometryInput.setModel(model);
   chainwheelTranslationInput.setModel(model.getChainwheels());
   chainwheelGeometryInput.setModel(model.getChainwheels());
   sprocketTranslationInput.setModel(model.getSprockets());
   sprocketGeometryInput.setModel(model.getSprockets());
   driveTrainDrawing.setModel(model);
   driveTrainOutput.setModel(model);
   update();
   driveTrainOutput.structureChanged();
 }
 /**
  * Sets the unit system for this instance and ensures that children reflect the change.
  *
  * @param unitSystem The new unit system
  */
 public void setUnitSystem(UnitSystem unitSystem) {
   model.setUnitSystem(unitSystem);
   update();
   driveTrainOutput.structureChanged();
 }