Crea sito


org.zu.ardulink.protocol
Class MessageInfo

java.lang.Object
  extended by org.zu.ardulink.protocol.MessageInfo

public class MessageInfo
extends Object

Ardulink - return to homepage

v0.6.1 Magnum PI

MessageInfo collects information about messages sent to the Arduino board. An instance of this class is returned by the methods defined in the IProtocol interface. If a ReplyMessageCallback handler is set then MessageInfo is completed with other information.

Author:
Luciano Zu project Ardulink http://www.ardulink.org/
See Also:



Constructor Summary
MessageInfo()
           
MessageInfo(boolean result)
           
MessageInfo(boolean result, long messageID)
           
 
Method Summary
 ReplyMessageCallback getCallback()
           
 long getMessageID()
           
 String getMessageReceived()
           
 String getMessageSent()
           
 int getReply()
           
 boolean isSent()
           
 void setCallback(ReplyMessageCallback callback)
           
 void setMessageID(long messageID)
           
 void setMessageReceived(String messageReceived)
           
 void setMessageSent(String messageSent)
           
 void setReply(int reply)
           
 void setSent(boolean result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageInfo

public MessageInfo()

MessageInfo

public MessageInfo(boolean result,
                   long messageID)
Parameters:
result -
messageID -

MessageInfo

public MessageInfo(boolean result)
Method Detail

isSent

public boolean isSent()

setSent

public void setSent(boolean result)

getMessageID

public long getMessageID()

setMessageID

public void setMessageID(long messageID)

getMessageSent

public String getMessageSent()

setMessageSent

public void setMessageSent(String messageSent)

getReply

public int getReply()

setReply

public void setReply(int reply)

getCallback

public ReplyMessageCallback getCallback()

setCallback

public void setCallback(ReplyMessageCallback callback)

getMessageReceived

public String getMessageReceived()

setMessageReceived

public void setMessageReceived(String messageReceived)


Copyright © 2015. All rights reserved.