com.dalsemi.onewire.container
Class OneWireContainer01
java.lang.Object
|
+--com.dalsemi.onewire.container.OneWireContainer
|
+--com.dalsemi.onewire.container.OneWireContainer01
- public class OneWireContainer01
- extends OneWireContainer
iButton container for iButton family type 01 (hex), DS1990A/DS2401.
- Version:
- 0.00, 28 Aug 2000
Constructor Summary |
OneWireContainer01()
Constructor OneWireContainer01 |
OneWireContainer01(DSPortAdapter sourceAdapter,
byte[] newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device. |
OneWireContainer01(DSPortAdapter sourceAdapter,
long newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device. |
OneWireContainer01(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
Create a container with a provided adapter object
and the address of the iButton or 1-Wire device. |
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 |
getName()
Retrieve the Dallas Semiconductor part number of the iButton
as a string. |
Methods inherited from class com.dalsemi.onewire.container.OneWireContainer |
doSpeed, getAdapter, getAddress, getAddressAsLong, getAddressAsString, getMaxSpeed, getMemoryBanks, isAlarming, isPresent, setSpeed, setupContainer, setupContainer, setupContainer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneWireContainer01
public OneWireContainer01()
- Constructor OneWireContainer01
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter,
byte[] newAddress)
- Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire device
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter,
long newAddress)
- Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire device
OneWireContainer01
public OneWireContainer01(DSPortAdapter sourceAdapter,
java.lang.String newAddress)
- Create a container with a provided adapter object
and the address of the iButton or 1-Wire device.
- Parameters:
sourceAdapter
- adapter object required to communicate with
this iButton.newAddress
- address of this 1-Wire device
getName
public java.lang.String getName()
- Retrieve the Dallas Semiconductor part number of the iButton
as a string. For example 'Crypto iButton' or 'DS1992'.
- Overrides:
getName
in class OneWireContainer
- Returns:
- string represetation of the iButton name.
getAlternateNames
public java.lang.String getAlternateNames()
- Retrieve the alternate Dallas Semiconductor part numbers or names.
A 'family' of 1-Wire Network devices may have more than one part number
depending on packaging. There can also be nicknames such as
'Crypto iButton'.
- Overrides:
getAlternateNames
in class OneWireContainer
- Returns:
String
representation of the alternate names.
getDescription
public java.lang.String getDescription()
- Retrieve a short description of the function of the iButton type.
- Overrides:
getDescription
in class OneWireContainer
- Returns:
String
representation of the function description.