|
|||||||||
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.NXTCommandSendMsg
public class NXTCommandSendMsg
Represents the SENDMESSAGE Command.
The response to this command (if required) is a NXTResponseStatus
.
Example 1:
Example 2:
NXTResponseStatus
Constructor Summary | |
---|---|
NXTCommandSendMsg()
|
|
NXTCommandSendMsg(int mailbox,
String message)
Constructs a new NXTCommandSendMsg object with a given frequency and duration and
with no response requirement. |
|
NXTCommandSendMsg(int mailbox,
String message,
boolean responseRequired)
Constructs a new NXTCommandSendMsg object with a give message and mailbox number to
send to. |
Method Summary | |
---|---|
int |
getMailbox()
Returns the mailbox number when the command is sent. |
String |
getMessage()
Returns the current message when the command is sent. |
void |
setMailbox(int mailbox)
Sets the mailbox number to send the message to. |
void |
setMessage(String message)
Sets the message. |
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 NXTCommandSendMsg()
public NXTCommandSendMsg(int mailbox, String message)
NXTCommandSendMsg
object with a given frequency and duration and
with no response requirement.
Mailbox
- Message
- (string)public NXTCommandSendMsg(int mailbox, String message, boolean responseRequired)
NXTCommandSendMsg
object with a give message and mailbox number to
send to.
mailbox
- Mailbox number for your NXT-G blockmessage
- Message stringresponseRequired
- Indicates if a response to this command is required.Method Detail |
---|
public int getMailbox()
public void setMailbox(int mailbox)
mailbox
- (0->mailbox 1)public String getMessage()
public void setMessage(String message)
message.
- String.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |