Class LocoModel

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

    public class LocoModel
    extends com.jgoodies.common.bean.Bean
    See Also:
    Serialized Form
    • Constructor Detail

      • LocoModel

        public LocoModel()
    • Method Detail

      • removeLocoModelListener

        public void removeLocoModelListener​(LocoModelListener l)
      • getAddress

        public Integer getAddress()
      • setAddress

        public void setAddress​(Integer address)
      • getReportedSpeed

        public Integer getReportedSpeed()
      • setReportedSpeed

        public void setReportedSpeed​(Integer reportedSpeed)
      • getDirection

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

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

        public boolean getFunction​(int index)
      • getFunctions

        public BitSet getFunctions()
      • setFunction

        public void setFunction​(int index,
                                boolean value)
      • getDynStateEnergy

        public int getDynStateEnergy()
      • setDynStateEnergy

        public void setDynStateEnergy​(int dynStateEnergy)
      • getSpeedSteps

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

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

        public Integer getSpeed()
      • setSpeed

        public void setSpeed​(Integer speed)
      • setBinaryState

        public void setBinaryState​(int state,
                                   boolean value)
      • isCarControlEnabled

        public boolean isCarControlEnabled()
        Returns:
        the carControlEnabled
      • setCarControlEnabled

        public void setCarControlEnabled​(boolean carControlEnabled)
        Parameters:
        carControlEnabled - the carControlEnabled to set
      • getActiveBase

        public RfBasisMode getActiveBase()
        Returns:
        the activeBase
      • setActiveBase

        public void setActiveBase​(RfBasisMode activeBase)
        Parameters:
        activeBase - the activeBase to set
      • getPrevActiveBase

        public RfBasisMode getPrevActiveBase()
        Returns:
        the previous activeBase
      • resetPrevActiveBase

        public void resetPrevActiveBase()
        Reset the prev active base.
      • getReportedCellNumber

        public Integer getReportedCellNumber()
        Returns:
        the reportedCellNumber
      • setReportedCellNumber

        public void setReportedCellNumber​(Integer reportedCellNumber)
        Parameters:
        reportedCellNumber - the reportedCellNumber to set
      • getDevBinStateNumber

        public Integer getDevBinStateNumber()
        Returns:
        the devBinStateNumber
      • setDevBinStateNumber

        public void setDevBinStateNumber​(Integer devBinStateNumber)
        Parameters:
        devBinStateNumber - the devBinStateNumber to set
      • getDevBinStateValue

        public BinStateValue getDevBinStateValue()
        Returns:
        the devBinStateValue
      • setDevBinStateValue

        public void setDevBinStateValue​(BinStateValue devBinStateValue)
        Parameters:
        devBinStateValue - the devBinStateValue to set
      • getCounterCsDrive

        public int getCounterCsDrive()
        Returns:
        the counterCsDrive
      • incCounterCsDrive

        public int incCounterCsDrive()
        Increment the CS drive counter by 1.
      • resetCounterCsDrive

        public void resetCounterCsDrive()
        Reset the CS drive counter.
      • getCounterCsDriveAck

        public int getCounterCsDriveAck()
        Returns:
        the counterCsDriveAck
      • incCounterCsDriveAck

        public int incCounterCsDriveAck()
        Increment the CS drive ack counter by 1.
      • resetCounterCsAckDrive

        public void resetCounterCsAckDrive()
        Reset the CS drive ack counter.
      • getCounterCsBinState

        public int getCounterCsBinState()
        Returns:
        the counterCsBinState
      • incCounterCsBinState

        public int incCounterCsBinState()
        Increment the CS binState counter by 1.
      • resetCounterCsBinState

        public void resetCounterCsBinState()
        Reset the CS binState counter.