|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
neto.ProtocolMessageEvent
Object used by ProtocolMessageListener. The ProtocolMessage event shows information about the transfer of data. It shows error messages and the status of transfer of files. This event shows from which serial port the messages comes and if the message stops the protocol or that the protocol continuous after the message. Every message has it own unique code, to simplify translating messages to the language of need. Every message has also it's own textual information part. The text part matches the status code.
ProtocolMessageListener
,
Serialized FormConstructor Summary | |
ProtocolMessageEvent(java.lang.Object source,
int code,
java.lang.String msg,
short ends,
java.lang.String port)
Initializes a new instance of this object. |
Method Summary | |
short |
GetFinal()
Returns wether the message ends the protocol or not. |
java.lang.String |
GetMessage()
Returns a string expression that explains the status code. |
int |
GetMsgCode()
Returns the integer expression that specifies the status code. |
java.lang.String |
getPort()
Returns a string that specifies which serial port the message comes from. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProtocolMessageEvent(java.lang.Object source, int code, java.lang.String msg, short ends, java.lang.String port)
source
- object wich created this ProtocolMessageEvent object.code
- an integer expression that specifies the status code.msg
- a string expression that explains the status code.ends
- a short integer expression that specifies if this message
ends the protocol. If ends
is 1 than the
protocol is stopped, when ends
is 0 the protocol
keeps runningport
- a string that specifies which serial port the message comes
from.Method Detail |
public short GetFinal()
public java.lang.String GetMessage()
public int GetMsgCode()
public java.lang.String getPort()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |