Serialio.modem
Class ModemEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bySerialio.modem.ModemEvent
All Implemented Interfaces:
java.io.Serializable

public class ModemEvent
extends java.util.EventObject

Modem event.

  • Copyright (c) 1999-2002 Solutions Consulting, All Rights Reserved.

    created 29 Jul 1999

    See Also:
    Serialized Form

    Field Summary
    static int CONNECT
               
    static int DONE
               
    static int EXCEPTION
               
    static int OK
               
    static int RING
               
     
    Fields inherited from class java.util.EventObject
    source
     
    Constructor Summary
    ModemEvent(Modem srcModem, int request, int type, java.lang.String msg)
              Create a new modem event
     
    Method Summary
     java.lang.String getEventMessage()
              Get the event message.
     int getEventRequest()
              Get the event request code.
     int getEventType()
              Get the event type code.
     java.lang.String toString()
              Create a string with the parameters of the event.
     
    Methods inherited from class java.util.EventObject
    getSource
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Field Detail

    EXCEPTION

    public static final int EXCEPTION
    See Also:
    Constant Field Values

    CONNECT

    public static final int CONNECT
    See Also:
    Constant Field Values

    RING

    public static final int RING
    See Also:
    Constant Field Values

    OK

    public static final int OK
    See Also:
    Constant Field Values

    DONE

    public static final int DONE
    See Also:
    Constant Field Values
    Constructor Detail

    ModemEvent

    public ModemEvent(Modem srcModem,
                      int request,
                      int type,
                      java.lang.String msg)
    Create a new modem event

    Parameters:
    srcModem - the modem object creating the event
    request - the event is a result of this modem request
    type - the type code for the event
    msg - the message for the event
    Method Detail

    getEventRequest

    public int getEventRequest()
    Get the event request code.


    getEventType

    public int getEventType()
    Get the event type code.


    getEventMessage

    public java.lang.String getEventMessage()
    Get the event message.


    toString

    public java.lang.String toString()
    Create a string with the parameters of the event.