Package opencard.core.terminal
Class Slot
- java.lang.Object
-
- opencard.core.terminal.Slot
-
@Deprecated public final class Slot extends java.lang.ObjectDeprecated.use slot number insteadA Slot object represents an individual slot of a card terminal.- Author:
- Peter Trommler (trp@zurich.ibm.com), Stephan Breideneich (sbreiden@de.ibm.com)
- See Also:
CardTerminal
-
-
Field Summary
Fields Modifier and Type Field Description protected intslotIDDeprecated.The slot identifier.protected CardTerminalterminalDeprecated.The "owning" CardTerminal.
-
Constructor Summary
Constructors Constructor Description Slot(CardTerminal terminal, int slotID)Deprecated.Instantiate a Slot object belonging to the CardTerminal object terminal.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CardIDgetCardID()Deprecated.Return the CardID object of the presently inserted smart card.CardIDgetCardID(int timeout)Deprecated.CardTerminalgetCardTerminal()Deprecated.Return a reference to the "owning" CardTerminal object.intgetSlotID()Deprecated.Return the Slot number.booleanisCardPresent()Deprecated.Check whether there is a smart card present.
-
-
-
Field Detail
-
terminal
protected CardTerminal terminal
Deprecated.The "owning" CardTerminal.
-
slotID
protected int slotID
Deprecated.The slot identifier.
-
-
Constructor Detail
-
Slot
public Slot(CardTerminal terminal, int slotID)
Deprecated.Instantiate a Slot object belonging to the CardTerminal object terminal.- Parameters:
terminal- The card terminal to which this Slot belongs toslotID- Slot number (0 = first slotID)
-
-
Method Detail
-
isCardPresent
public boolean isCardPresent() throws CardTerminalExceptionDeprecated.Check whether there is a smart card present.- Returns:
- True if there is a smart card inserted in the slot.
- Throws:
CardTerminalException- Thrown when terminal.isCardPresent failed.
-
getCardID
@Deprecated public CardID getCardID(int timeout) throws CardTerminalException
Deprecated.- Throws:
CardTerminalException
-
getCardID
public CardID getCardID() throws CardTerminalException
Deprecated.Return the CardID object of the presently inserted smart card. In the case this slot is in use already (i.e., there is already a CardService attached to this slot), this method returns a cached CardID immediately.- Returns:
- The CardID object for the currently inserted smart card.
- Throws:
CardTerminalException- Thrown when problems in the card terminal occur.
-
getCardTerminal
public CardTerminal getCardTerminal()
Deprecated.Return a reference to the "owning" CardTerminal object.- Returns:
- The reference to the owning CardTerminal object.
-
getSlotID
public int getSlotID()
Deprecated.Return the Slot number.- Returns:
- the slot number.
-
-