Class BoosterModel

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

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

  • Constructor Details

    • BoosterModel

      public BoosterModel(org.bidib.wizard.api.model.NodeInterface booster, org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper, PropertyChangeListener boosterListener)
  • Method Details

    • registerNode

      public void registerNode()
    • freeNode

      public void freeNode()
    • getBooster

      public org.bidib.wizard.api.model.NodeInterface getBooster()
      Returns:
      the booster node
    • getUniqueId

      public String getUniqueId()
      Returns:
      the uniqueId
    • getNodeAddress

      public byte[] getNodeAddress()
      Returns:
      the node address
    • setNodeLabel

      public void setNodeLabel(String nodeLabel)
      Parameters:
      nodeLabel - the node label to set
    • getNodeLabel

      public String getNodeLabel()
      Returns:
      the node label
    • fetchMaxBoosterCurrent

      protected void fetchMaxBoosterCurrent()
    • getState

      public org.bidib.jbidibc.messages.enums.BoosterState getState()
      Returns:
      the state
    • setState

      public void setState(org.bidib.jbidibc.messages.enums.BoosterState state)
      Parameters:
      state - the state to set
    • getCommandStationState

      public org.bidib.jbidibc.messages.enums.CommandStationState getCommandStationState()
      Returns:
      the commandStationState
    • setCommandStationState

      public void setCommandStationState(org.bidib.jbidibc.messages.enums.CommandStationState commandStationState)
      Parameters:
      commandStationState - the commandStationState to set
    • getBoosterControl

      public org.bidib.jbidibc.messages.enums.BoosterControl getBoosterControl()
      Returns:
      the boosterControl
    • getMaxCurrent

      public Integer getMaxCurrent()
      Returns:
      the maxCurrent
    • getCurrent

      public Integer getCurrent()
      Returns:
      the current
    • setCurrent

      public void setCurrent(Integer current)
      Parameters:
      current - the current to set
    • getLastCurrentUpdate

      public long getLastCurrentUpdate()
      Returns:
      the lastCurrentUpdate
    • setLastCurrentUpdate

      public void setLastCurrentUpdate(long lastCurrentUpdate)
      Parameters:
      lastCurrentUpdate - the lastCurrentUpdate to set
    • getVoltage

      public Integer getVoltage()
      Returns:
      the voltage
    • setVoltage

      public void setVoltage(Integer voltage)
      Parameters:
      voltage - the voltage to set
    • getTemperature

      public Integer getTemperature()
      Returns:
      the temperature
    • setTemperature

      public void setTemperature(Integer temperature)
      Parameters:
      temperature - the temperature to set
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • prepareNodeLabel

      public String prepareNodeLabel()