DCT Lightfoot v3 API specification

javax.comm
Class SerialPortEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--javax.comm.SerialPortEvent

public class SerialPortEvent
extends EventObject

Serial port event that is sent when something happens on the 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 available at the serial port.
static int DSR
          Data set ready.
static int FE
          Framing error
static int OE
          Overrun error
static int OUTPUT_BUFFER_EMPTY
          Output buffer is empty.
static int PE
          Parity error
static int RI
          Ring indicator.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SerialPortEvent(SerialPort port, int type, boolean oldValue, boolean newValue)
          Create a new serial port event
 
Method Summary
 int getEventType()
          Get the event type
 boolean getNewValue()
          Get the new value
 boolean getOldValue()
          Get the old value
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_AVAILABLE

public static final int DATA_AVAILABLE
Data available at the serial port. This event will be generated once when new data arrive at the serial port. Even if the user doesn't read the data, it won't be generated again until next time new data arrive.

See Also:
Constant Field Values

OUTPUT_BUFFER_EMPTY

public static final int OUTPUT_BUFFER_EMPTY
Output buffer is empty. The event will be generated after a write is completed, when the system buffer becomes empty again.

See Also:
Constant Field Values

CTS

public static final int CTS
Clear to send.

See Also:
Constant Field Values

DSR

public static final int DSR
Data set ready.

See Also:
Constant Field Values

RI

public static final int RI
Ring indicator.

See Also:
Constant Field Values

CD

public static final int CD
Carrier detect.

See Also:
Constant Field Values

OE

public static final int OE
Overrun error

See Also:
Constant Field Values

PE

public static final int PE
Parity error

See Also:
Constant Field Values

FE

public static final int FE
Framing error

See Also:
Constant Field Values

BI

public static final int BI
Break interrupt

See Also:
Constant Field Values
Constructor Detail

SerialPortEvent

public SerialPortEvent(SerialPort port,
                       int type,
                       boolean oldValue,
                       boolean newValue)
Create a new serial port event

Parameters:
port - The serial port
oldValue - The old value
newValue - The new value
Method Detail

getNewValue

public boolean getNewValue()
Get the new value

Returns:
the new value

getOldValue

public boolean getOldValue()
Get the old value

Returns:
the old value

getEventType

public int getEventType()
Get the event type

Returns:
the event type

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification