|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibutton.tmex.container.iButtonContainerGeneral
General iButton container class that implements an iButtonContainer and adds basic communication functions. This class should only be used if a device specific class is not available or known. Most iButtonConainter classes will extend this basic class.
| Field Summary | |
protected DSPortAdapter |
adapter
Reference to the adapter that is needed to communicate with this iButton. |
protected iButtonID |
ID
ID number of the current iButton found |
| Constructor Summary | |
iButtonContainerGeneral()
Constructs a General purpose iButton container class. |
|
| Method Summary | |
char[] |
dataBlock(char[] dataBlock,
int off,
int len)
Sends a block of data and returns the data received in the same array. |
java.lang.String |
getAlternateNames()
Retrieve the alternate Dallas Semiconductor part numbers or names. |
boolean |
getBit()
Gets a bit from the MicroLan. |
char[] |
getBlock(int len)
Get a block of data and return it in an array. |
char |
getByte()
Gets a byte from the MicroLan. |
java.lang.String |
getDescription()
Retrieve a short description of the function of the iButton type. |
java.lang.String |
getiButtonPartName()
Retrieve the Dallas Semiconductor part number of the iButton as a string. |
int[] |
getID()
Get the ID as an array of ints. |
java.lang.String |
getIDString()
Get the ID as a String. |
boolean |
isAlarming()
Checks to see that if the iButton is currently connected to the MicroLan whether it is in an 'alarm' condition. |
boolean |
isPresent()
Verifies that this iButton is currently connected to the MicroLan. |
void |
putBit(boolean bitValue)
Sends a bit to the MicroLan. |
void |
putByte(char byteValue)
Sends a byte to the MicroLan. |
int |
reset()
Sends a Reset to the MicroLan. |
boolean |
select()
Selects this iButton by broadcasting the serial number ID. |
void |
setupContainer(DSPortAdapter sourceAdapter,
iButtonID newID)
Provided the adapter object used to access this iButton and provide the ID of this iButton. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected DSPortAdapter adapter
protected iButtonID ID
| Constructor Detail |
public iButtonContainerGeneral()
| Method Detail |
public void setupContainer(DSPortAdapter sourceAdapter,
iButtonID newID)
public java.lang.String getiButtonPartName()
public java.lang.String getAlternateNames()
public java.lang.String getDescription()
public boolean isPresent()
throws PortNotSelectedException,
PortInUseException,
AdapterNotDetectedException,
MicroLanIOException
public boolean isAlarming()
throws PortNotSelectedException,
PortInUseException,
AdapterNotDetectedException,
MicroLanIOException
public boolean select()
throws PortNotSelectedException,
PortInUseException,
AdapterNotDetectedException,
MicroLanIOException
public void putBit(boolean bitValue)
throws MicroLanIOException
bitValue - the bit value to send to the MicroLan.
public boolean getBit()
throws MicroLanIOException
public void putByte(char byteValue)
throws MicroLanIOException
byteValue - the byte value to send to the MicroLan.
public char getByte()
throws MicroLanIOException
public char[] getBlock(int len)
throws MicroLanIOException
len - length of data bytes receive
public char[] dataBlock(char[] dataBlock,
int off,
int len)
throws MicroLanIOException
dataBlock - array of data (ints) to transfer to and from the
MicroLan. Only the least significant 8 bits of
each array element is used.off - offset into the array of data to startlen - length of data to send / receive starting at 'off'
public int reset()
throws MicroLanIOException
public int[] getID()
public java.lang.String getIDString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||