com.ibutton.tmex.container
Class iButtonContainer1D
java.lang.Object
|
+--com.ibutton.tmex.container.iButtonContainerGeneral
|
+--com.ibutton.tmex.container.iButtonContainer1D
- public class iButtonContainer1D
- extends iButtonContainerGeneral
- implements iButtonContainer
iButton container for iButton family type 1D (hex). This family type is
a 'counter' iButton (DS2423). It contains 4 counters assosiated with
pages 12 to 15.
//\\//\\//\\// Does not yet support memory operations \\//\\//\\//
|
Constructor Summary |
iButtonContainer1D()
Constructs a General purpose iButton container class. |
|
Method Summary |
java.lang.String |
getAlternateNames()
Retrieve the alternate Dallas Semiconductor part numbers or names. |
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. |
long |
readCounter(int counterPage)
Read the counter value from a page on this iButton. |
| Methods inherited from class com.ibutton.tmex.container.iButtonContainerGeneral |
dataBlock,
getBit,
getBlock,
getByte,
getID,
getIDString,
isAlarming,
isPresent,
putBit,
putByte,
reset,
select,
setupContainer |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
iButtonContainer1D
public iButtonContainer1D()
- Constructs a General purpose iButton container class. This
constructor does not contain a source adapter. The method
setSourceAdapter must be called right after before this container
can be used.
getiButtonPartName
public java.lang.String getiButtonPartName()
- Retrieve the Dallas Semiconductor part number of the iButton
as a string. For example 'DS1992'.
- Specified by:
- getiButtonPartName in interface iButtonContainer
- Returns:
- string represetation of the iButton name.
- Overrides:
- getiButtonPartName in class iButtonContainerGeneral
getAlternateNames
public java.lang.String getAlternateNames()
- Retrieve the alternate Dallas Semiconductor part numbers or names.
A 'family' of MicroLAN devices may have more than one part number
depending on packaging. There can also be nicknames such as
'Crypto iButton'.
- Specified by:
- getAlternateNames in interface iButtonContainer
- Returns:
- string represetation of the alternate names.
- Overrides:
- getAlternateNames in class iButtonContainerGeneral
getDescription
public java.lang.String getDescription()
- Retrieve a short description of the function of the iButton type.
- Specified by:
- getDescription in interface iButtonContainer
- Returns:
- string represetation of the function description.
- Overrides:
- getDescription in class iButtonContainerGeneral
readCounter
public long readCounter(int counterPage)
throws PortNotSelectedException,
PortInUseException,
AdapterNotDetectedException,
MicroLanIOException,
HardwareOptionNotAvailException
- Read the counter value from a page on this iButton.
- Returns:
- counter 4 byte value. Since this value is unsigned then
the value is returned in an 8 byte long integer.
- Throws:
- PortNotSelectedException -
- PortInUseException -
- AdapterNotDetectedException -
- MicroLanIOException -