neto
Class ShowPollEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byneto.ShowPollEvent
All Implemented Interfaces:
java.io.Serializable

public class ShowPollEvent
extends java.util.EventObject

Object used by ShowPollListener. The ShowPoll events show every poll that is transmitted to a serial port. The user can see what polling id is used during polling. It is also possible to see to which serial port the poll is sent.

Author:
Vincent Ramp
See Also:
ShowPollListener, Serialized Form

Constructor Summary
ShowPollEvent(java.lang.Object source, java.lang.String term_id, java.lang.String port)
          Initializes a new object, and sets the terminalID and the serialport.
 
Method Summary
 java.lang.String getPort()
          Returns the serial port name to which the poll is just transmitted.
 java.lang.String getTerminalId()
          Returns the terminal id of the terminal tah has just been polled.
 
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

ShowPollEvent

public ShowPollEvent(java.lang.Object source,
                     java.lang.String term_id,
                     java.lang.String port)
Initializes a new object, and sets the terminalID and the serialport. wich are used with the last poll command.

Parameters:
source - object wich created this ShowPollEvent object.
term_id - a string that holds the Terminal ID of the terminal that has just been polled.
port - a string that specifies to which serial port the poll is transmitted.
Method Detail

getPort

public java.lang.String getPort()
Returns the serial port name to which the poll is just transmitted.

Returns:
Last used serial port.

getTerminalId

public java.lang.String getTerminalId()
Returns the terminal id of the terminal tah has just been polled.

Returns:
The just polled terminalID.