Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## opencard.core.terminal
Interface Pollable

All Known Implementing Classes:
  CTAPICardTerminal, CTAPIWithKeyboardCardTerminal, JCWDPSimCardTerminal, Pcsc10CardTerminal, Pcsc10LockableTerminal, SmartCardIOTerminal

    public interface Pollable

This interface must be implemented by implementations of `CardTerminal` if they do not generate events when a card is inserted in or removed from the card terminal.

Version:
  $Id: Pollable.java,v 1.2 1999/10/22 16:07:34 damke Exp $
Author:
  Peter Trommler (trp@zurich.ibm.com), Mike Wendler (mwendler@de.ibm.com)

Method Summary
`void` | `poll()` Checks the status of the underlying terminal device.

Method Detail

### poll

    void poll()
              throws CardTerminalException

  Checks the status of the underlying terminal device. Must generate a `CardTerminalEvent` if a card is being inserted or removed by calling CardTerminal.cardInserted() or CardTerminal.cardRemoved(). Alternatively the terminal could perform status checks itsself, e.g. by handling interrupts. Implementation Note: the `CardTerminalRegistry` calls this method of all registered `Pollable` terminals periodically. So the implementation of this method should not carry out lengthy operations but return as quickly as possible.

  Throws:
    `CardTerminalException` - Thrown when error occurred in poll-mechanism.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD