|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
comm.SerialPortEvent
public class SerialPortEvent
An event on a serial port.
Field Summary | |
---|---|
static int |
BI
Break interrupt. |
static int |
CD
Carrier detect. |
static int |
CTS
Clear to send. |
static int |
DATA_AVAILABLE
Data is available at the serial port. |
static int |
DSR
Data set ready. |
int |
eventType
Deprecated. Replaced by getEventType method.
For compatibility only. |
static int |
FE
Framing error. |
static int |
OE
Overrun error. |
static int |
OUTPUT_BUFFER_EMPTY
The output buffer is empty. |
static int |
PE
Parity error. |
static int |
RI
Ring indicator. |
Constructor Summary | |
---|---|
SerialPortEvent(SerialPortInterface srcport,
int eventtype,
boolean oldvalue,
boolean newvalue)
Constructor. |
Method Summary | |
---|---|
int |
getEventType()
Returns the type of event, one of: BI, CD, CTS, DATA_AVAILABLE, DSR, FE, OE, OUTPUT_BUFFER_EMPTY, PE or RI. |
boolean |
getNewValue()
Returns the new value of the state change that caused this event. |
boolean |
getOldValue()
Returns the old value of the state change that caused this event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int eventType
getEventType
method.
For compatibility only.public static final int DATA_AVAILABLE
public static final int OUTPUT_BUFFER_EMPTY
public static final int CTS
public static final int DSR
public static final int RI
public static final int CD
public static final int OE
public static final int PE
public static final int FE
public static final int BI
Constructor Detail |
---|
public SerialPortEvent(SerialPortInterface srcport, int eventtype, boolean oldvalue, boolean newvalue)
srcport
- the source porteventtype
- the event type, one of: BI, CD, CTS, DATA_AVAILABLE,
DSR, FE, OE, OUTPUT_BUFFER_EMPTY, PE or RI.oldvalue
- the old valuenewvalue
- the new valueMethod Detail |
---|
public int getEventType()
public boolean getNewValue()
public boolean getOldValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |