Class OneWireContainer01

    • Constructor Detail

      • 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.

        This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.

        Parameters:
        sourceAdapter - adapter object required to communicate with this iButton.
        newAddress - address of this 1-Wire device
        See Also:
        OneWireContainer01(), Address
      • 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.

        This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.

        Parameters:
        sourceAdapter - adapter object required to communicate with this iButton.
        newAddress - address of this 1-Wire device
        See Also:
        OneWireContainer01(), Address
      • 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.

        This is one of the methods to construct a container. The other is through creating a OneWireContainer with NO parameters.

        Parameters:
        sourceAdapter - adapter object required to communicate with this iButton.
        newAddress - address of this 1-Wire device
        See Also:
        OneWireContainer01(), Address
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from class: OneWireContainer
        Retrieves the Maxim Integrated Products part number of the 1-Wire device as a String. For example 'Crypto iButton' or 'DS1992'.
        Overrides:
        getName in class OneWireContainer
        Returns:
        1-Wire device name
      • getAlternateNames

        public java.lang.String getAlternateNames()
        Description copied from class: OneWireContainer
        Retrieves the alternate Maxim Integrated Products 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:
        1-Wire device alternate names
      • getDescription

        public java.lang.String getDescription()
        Description copied from class: OneWireContainer
        Retrieves a short description of the function of the 1-Wire device type.
        Overrides:
        getDescription in class OneWireContainer
        Returns:
        device functional description