|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--opencard.core.terminal.CardTerminal
|
+--com.dalsemi.onewire.jib.terminal.JiBCardTerminal
The JiBCardTerminal class represents a physical card terminal
for a Java Powered iButton. It polls for Java iButton
insertions and removals.
| Constructor Summary | |
JiBCardTerminal(String name,
String type,
String address)
Instantiate a JiBCardTerminal object. |
|
| Method Summary | |
void |
close()
Closes the terminal and stops polling the 1-Wire bus for Java Powered iButtons. |
byte[] |
getAdapterAddress()
Gets the ROM ID of the adapter. |
int[] |
getAdapterId()
Gets the ROM ID of the adapter. |
opencard.core.terminal.CardID |
getCardID(int slot_id)
Gets the CardID from the Java Powered iButton on the specified slot. |
opencard.core.terminal.CardID |
getCardID(int slot_id,
int ex_timeout)
Get the CardID from the Java Powered iButton on the specified slot. |
OneWireContainer16 |
getContainer(int slot_id)
Gets the com.dalsemi.onewire.container.OneWireContainer
of the currently inserted Java Powered iButton. |
byte[] |
getiButtonAddress(int slot_id)
Gets the ROM ID of the currently inserted Java Powered iButton. |
int[] |
getiButtonId(int slot_id)
Gets the ROM ID of the currently inserted Java Powered iButton. |
boolean |
isCardPresent(int slot_id)
Determines if there is a Java Powered iButton on the given slot. |
void |
open()
Open the terminal for communication. |
void |
poll()
Method called to poll the One-Wire bus for the presence of a Java Powered iButton. |
| Methods inherited from class opencard.core.terminal.CardTerminal |
closeSlotChannel, enumerateSlots, features, getAddress, getName, getSlot, getSlots, getType, isCardPresent, isSlotChannelAvailable, isSlotChannelAvailable, openSlotChannel, openSlotChannel, openSlotChannel, reset, reset, sendAPDU, sendAPDU, sendVerifiedCommandAPDU, slots, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JiBCardTerminal(String name,
String type,
String address)
name - - The user friendly name of the terminal.type - - the port type.address - - The address/name of the port (i.e. COM1 or /dev/ttya).| Method Detail |
public int[] getiButtonId(int slot_id)
int array for legacy reasons.getiButtonAddress(int)public byte[] getiButtonAddress(int slot_id)
public OneWireContainer16 getContainer(int slot_id)
com.dalsemi.onewire.container.OneWireContainer
of the currently inserted Java Powered iButton.public byte[] getAdapterAddress()
public int[] getAdapterId()
int array for legacy reasons.
public void open()
throws opencard.core.terminal.CardTerminalException
open in class opencard.core.terminal.CardTerminalpublic void close()
close in class opencard.core.terminal.CardTerminal
public boolean isCardPresent(int slot_id)
throws opencard.core.terminal.CardTerminalException
isCardPresent in class opencard.core.terminal.CardTerminalint - the id of the slot.
public opencard.core.terminal.CardID getCardID(int slot_id)
throws opencard.core.terminal.CardTerminalException
getCardID in class opencard.core.terminal.CardTerminalint - the id of the slotopencard.core.terminal.CardTerminalException -
public opencard.core.terminal.CardID getCardID(int slot_id,
int ex_timeout)
throws opencard.core.terminal.CardTerminalException
getCardID in class opencard.core.terminal.CardTerminalslot_id - - the id of the slotex_timeout - - the period of time to wait before timing out.opencard.core.terminal.CardTerminalException -
public void poll()
throws opencard.core.terminal.CardTerminalException
poll in interface opencard.core.terminal.Pollableopencard.core.terminal.CardTerminalException - on communications error with the iButton
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||