Package rockBlock
Class RockBlockStatus
java.lang.Object
rockBlock.RockBlockStatus
- Author:
- mo55
-
Constructor Summary
ConstructorDescriptionRockBlockStatus
(String comPort, boolean commReady, String portError, int signalStrength, int numOutgoingMess, int numIncomingMess) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Subtract 1 to the number of outgoing messages in the queueint
int
int
void
Add 1 to the number of outgoing messages in the queueboolean
void
setCommReady
(boolean commReady) void
setComPort
(String comPort) void
setNumIncomingMess
(int numIncomingMess) void
setNumOutgoingMess
(int numOutgoingMess) void
setPortError
(String portError) void
setSignalStrength
(int signalStrength)
-
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 usecommReady
- boolean indicating whether or not we are communicating with RockBlockportError
- error code, if anysignalStrength
- int 0-5numOutgoingMess
- number of messages in the outgoing queuenumIncomingMess
- number of incoming messages waiting to be received
-
-
Method Details
-
getComPort
-
setComPort
-
isCommReady
public boolean isCommReady() -
setCommReady
public void setCommReady(boolean commReady) -
getPortError
-
setPortError
-
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)
-