Class ConfigurationWizardModel

java.lang.Object
com.jgoodies.common.bean.Bean
com.jgoodies.binding.beans.Model
org.bidib.wizard.mvc.stepcontrol.model.ConfigurationWizardModel
All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean, com.jgoodies.common.bean.ObservableBean2, Serializable

public class ConfigurationWizardModel extends com.jgoodies.binding.beans.Model
See Also:
  • Field Details

  • Constructor Details

    • ConfigurationWizardModel

      public ConfigurationWizardModel(org.bidib.wizard.api.model.NodeInterface selectedNode)
  • Method Details

    • getSelectedNode

      public org.bidib.wizard.api.model.NodeInterface getSelectedNode()
      Returns:
      the selected node
    • getTurnTableType

      public org.bidib.wizard.model.stepcontrol.TurnTableType getTurnTableType()
      Returns:
      the turnTableType
    • setTurnTableType

      public void setTurnTableType(org.bidib.wizard.model.stepcontrol.TurnTableType turnTableType)
      Parameters:
      turnTableType - the turnTableType to set
    • getMotorSizeType

      public MotorSizeType getMotorSizeType()
      Returns:
      the motorSizeType
    • setMotorSizeType

      public void setMotorSizeType(MotorSizeType motorSizeType)
      Parameters:
      motorSizeType - the motorSizeType to set
    • getStepCount

      public Integer getStepCount()
      Returns:
      the stepCount
    • setStepCount

      public void setStepCount(Integer stepCount)
      Parameters:
      stepCount - the stepCount to set
    • getGearing

      public Gearing getGearing()
      Returns:
      the gearing
    • setGearing

      public void setGearing(Gearing gearing)
      Parameters:
      gearing - the gearing to set
    • getMicroStepping

      public MicroStepsEnum getMicroStepping()
      Returns:
      the microStepping
    • setMicroStepping

      public void setMicroStepping(MicroStepsEnum microStepping)
      Parameters:
      microStepping - the microStepping to set
    • getTotalStepCount

      public Integer getTotalStepCount()
      Returns:
      the total step count
    • triggerUpdateTotalSteps

      public void triggerUpdateTotalSteps()
    • getSpeedScale

      public MovementScaleEnum getSpeedScale()
      Returns:
      the speedScale
    • setSpeedScale

      public void setSpeedScale(MovementScaleEnum speedScale)
      Parameters:
      speedScale - the speedScale to set
    • getAccelerationScale

      public AccelarationScaleEnum getAccelerationScale()
      Returns:
      the accelerationScale
    • setAccelerationScale

      public void setAccelerationScale(AccelarationScaleEnum accelerationScale)
      Parameters:
      accelerationScale - the accelerationScale to set
    • getWizardStatus

      public ConfigurationWizardModel.WizardStatus getWizardStatus()
      Returns:
      the wizardStatus
    • setWizardStatus

      public void setWizardStatus(ConfigurationWizardModel.WizardStatus wizardStatus)
      Parameters:
      wizardStatus - the wizardStatus to set
    • getSpeed

      public Integer getSpeed()
      Returns:
      the speed
    • setSpeed

      public void setSpeed(Integer speed)
      Parameters:
      speed - the speed to set
    • getAccel

      public Integer getAccel()
      Returns:
      the accel
    • setAccel

      public void setAccel(Integer accel)
      Parameters:
      accel - the accel to set
    • getDecel

      public Integer getDecel()
      Returns:
      the decel
    • setDecel

      public void setDecel(Integer decel)
      Parameters:
      decel - the decel to set
    • checkValidConfigurationValues

      public void checkValidConfigurationValues(String valueIdentifier, LongSupplier newValueSupplier, LongConsumer correctedValueConsumer)
      Check if the current configuration values for accel and decel are valid
      Throws:
      IllegalArgumentException - thrown if invalid values detected
    • getHtmlContent

      public String getHtmlContent()
      Prepare the content of the SummaryPanel.
    • triggerUpdateHtmlContent

      public void triggerUpdateHtmlContent()
    • toString

      public String toString()
      Overrides:
      toString in class Object