Class AbstractDevice

    • Constructor Detail

      • AbstractDevice

        public AbstractDevice()
      • AbstractDevice

        public AbstractDevice​(String label)
    • Method Detail

      • startCoapController

        public void startCoapController()
        Description copied from interface: Device
        Enables CoaP communication with Device. Method should create tree of Resource endpoints and register them to CoaP Server. Each distinct Device (e.g. Sensor, Actuator ... ) should define Resource tree.
        Specified by:
        startCoapController in interface Device
      • stopCoapController

        public void stopCoapController()
        Description copied from interface: Device
        Remove all Resource endpoints for Device from CoaP Server, in order to deny CoaP communication with instance of Device.
        Specified by:
        stopCoapController in interface Device
      • getUUID

        public UUID getUUID()
        Description copied from interface: Unit
        Returns UUID
        Specified by:
        getUUID in interface Unit
        Returns:
        instance of UUID
      • setUUID

        public void setUUID​(UUID uuid)
        Description copied from interface: Unit
        Sets UUID
        Specified by:
        setUUID in interface Unit
        Parameters:
        uuid - instance of UUID
      • getLabel

        public String getLabel()
        Description copied from interface: Unit
        Returns Label
        Specified by:
        getLabel in interface Unit
        Returns:
        label
      • setLabel

        public void setLabel​(String label)
        Description copied from interface: Unit
        Sets Label
        Specified by:
        setLabel in interface Unit
        Parameters:
        label - to be set
      • getDataObservable

        public DataObservable getDataObservable()
        Description copied from interface: Device
        Returns DataObservable for Device
        Specified by:
        getDataObservable in interface Device
        Returns:
        instance of DataObservable
      • setDataObservable

        public void setDataObservable​(DataObservable dataObservable)
        Description copied from interface: Device
        Sets DataObservable for Device.
        Specified by:
        setDataObservable in interface Device
        Parameters:
        dataObservable - instance of DataObservable
      • setNetworkAdapter

        public void setNetworkAdapter​(NetworkAdapter networkAdapter)
        Description copied from interface: Device
        Sets Network Adapter for device which enables sending data wi
        Specified by:
        setNetworkAdapter in interface Device
        Parameters:
        networkAdapter - instance of NetworkAdapter
      • getNetworkAdapter

        public NetworkAdapter getNetworkAdapter()
        Description copied from interface: Device
        Returns NetworkAdapter assigned to Device
        Specified by:
        getNetworkAdapter in interface Device
        Returns:
        instance of Network Adapter
      • getCoapController

        public CoapController getCoapController()
        Description copied from interface: Device
        Returns CoapController for Device
        Specified by:
        getCoapController in interface Device
        Returns:
        instacne of CoapController
      • setCoapController

        public void setCoapController​(CoapController coapController)
        Description copied from interface: Device
        Sets CoapController for Device
        Specified by:
        setCoapController in interface Device
        Parameters:
        coapController - instance of CoapController