|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.citar.diablu.nxt.protocol.NXTCommand pt.citar.diablu.nxt.protocol.NXTCommandReceiveMsg
public class NXTCommandReceiveMsg
Represents the SENDMESSAGE Command.
The response to this command (if required) is a NXTResponseStatus
.
Example 1:
Example 2:
NXTResponseStatus
Constructor Summary | |
---|---|
NXTCommandReceiveMsg()
|
|
NXTCommandReceiveMsg(int mailbox)
Constructs a new NXTCommandSendMsg object with a given frequency and duration and
with no response requirement. |
|
NXTCommandReceiveMsg(int mailbox,
boolean remove)
Represents the MESSAGEREAD Command. |
Method Summary | |
---|---|
int |
getMailbox()
Returns the mailbox number when the command is sent. |
String |
getMessageString()
Returns actual string message obtained from brick |
boolean |
getRemoveFlag()
Returns the current status of the remove flag |
void |
setMailbox(int mailbox)
Sets the mailbox number to send the message to. |
void |
setRemoveFlag(boolean remove)
Sets the value of the remove flag |
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTCommand |
---|
getPacketLength, isResponseRequired, sendCommand, setResponseRequired, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NXTCommandReceiveMsg()
public NXTCommandReceiveMsg(int mailbox)
NXTCommandSendMsg
object with a given frequency and duration and
with no response requirement.
Mailbox
- Message
- (string)public NXTCommandReceiveMsg(int mailbox, boolean remove)
NXTResponseReceiveMsg
.
mailbox
- Mailbox number on NXT brick to read message fromremove
- true indicates that NXT mailbox should be cleared after reading, false indicates otherwiseNXTResponseReceiveMsg
Method Detail |
---|
public int getMailbox()
public void setMailbox(int mailbox)
mailbox
- (0->mailbox 1)public boolean getRemoveFlag()
public void setRemoveFlag(boolean remove)
remove
- true or falsepublic String getMessageString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |