Package rockBlock

Class RockBlockStatus

java.lang.Object
rockBlock.RockBlockStatus

public class RockBlockStatus extends Object
Author:
mo55
  • Constructor Details

    • RockBlockStatus

      public RockBlockStatus(String comPort, boolean commReady, String portError, int signalStrength, int numOutgoingMess, int numIncomingMess)
      Parameters:
      comPort - Com Port we're trying to use
      commReady - boolean indicating whether or not we are communicating with RockBlock
      portError - error code, if any
      signalStrength - int 0-5
      numOutgoingMess - number of messages in the outgoing queue
      numIncomingMess - number of incoming messages waiting to be received
  • Method Details

    • getComPort

      public String getComPort()
    • setComPort

      public void setComPort(String comPort)
    • isCommReady

      public boolean isCommReady()
    • setCommReady

      public void setCommReady(boolean commReady)
    • getPortError

      public String getPortError()
    • setPortError

      public void setPortError(String portError)
    • getSignalStrength

      public int getSignalStrength()
    • setSignalStrength

      public void setSignalStrength(int signalStrength)
    • getNumOutgoingMess

      public int getNumOutgoingMess()
    • setNumOutgoingMess

      public void setNumOutgoingMess(int numOutgoingMess)
    • incOutgoingCount

      public void incOutgoingCount()
      Add 1 to the number of outgoing messages in the queue
    • decOutgoingCount

      public void decOutgoingCount()
      Subtract 1 to the number of outgoing messages in the queue
    • getNumIncomingMess

      public int getNumIncomingMess()
    • setNumIncomingMess

      public void setNumIncomingMess(int numIncomingMess)