Class LocoModel

  • All Implemented Interfaces:
    com.jgoodies.common.bean.ObservableBean, com.jgoodies.common.bean.ObservableBean2, Serializable

    public class LocoModel
    extends com.jgoodies.binding.beans.Model
    See Also:
    Serialized Form
    • Constructor Detail

      • LocoModel

        public LocoModel​(int locoAddress)
    • Method Detail

      • getLocoAddress

        public int getLocoAddress()
      • getLocoName

        public String getLocoName()
        Returns:
        the locoName
      • setLocoName

        public void setLocoName​(String locoName)
        Parameters:
        locoName - the locoName to set
      • isOutputActive

        public boolean isOutputActive()
        Returns:
        the outputActive
      • setOutputActive

        public void setOutputActive​(boolean outputActive)
        Parameters:
        outputActive - the outputActive to set
      • getDynStateEnergy

        public int getDynStateEnergy()
      • setDynStateEnergy

        public void setDynStateEnergy​(int dynStateEnergy)
      • getDirection

        public org.bidib.wizard.model.status.DirectionStatus getDirection()
      • setDirection

        public void setDirection​(org.bidib.wizard.model.status.DirectionStatus direction)
      • getSpeed

        public int getSpeed()
      • setSpeed

        public void setSpeed​(int speed)
      • getSpeedSteps

        public org.bidib.wizard.model.status.SpeedSteps getSpeedSteps()
      • setSpeedSteps

        public void setSpeedSteps​(org.bidib.wizard.model.status.SpeedSteps speedSteps)
      • getFunctions

        public byte[] getFunctions()
      • getFunctions

        public byte getFunctions​(int index)
      • setFunctions

        public void setFunctions​(byte[] functions)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object