Class NetworkEx

  • All Implemented Interfaces:
    java.lang.Iterable<buzz.getcoco.iot.Device>

    public class NetworkEx
    extends buzz.getcoco.iot.Network
    • Nested Class Summary

      • Nested classes/interfaces inherited from class buzz.getcoco.iot.Network

        buzz.getcoco.iot.Network.AccessType, buzz.getcoco.iot.Network.AddResourcesToZone, buzz.getcoco.iot.Network.AddSceneResourceAction, buzz.getcoco.iot.Network.AssignToTemplate, buzz.getcoco.iot.Network.CommandId, buzz.getcoco.iot.Network.ConnectArgs, buzz.getcoco.iot.Network.LeaveStatusListener, buzz.getcoco.iot.Network.MoveResourcesBetweenZones, buzz.getcoco.iot.Network.NetworkManagementStatusListener, buzz.getcoco.iot.Network.NetworkType, buzz.getcoco.iot.Network.RemoveResourcesFromZone, buzz.getcoco.iot.Network.RemoveRule, buzz.getcoco.iot.Network.RemoveScene, buzz.getcoco.iot.Network.RemoveSceneResourceActions, buzz.getcoco.iot.Network.RemoveZone, buzz.getcoco.iot.Network.ResourceTemplate, buzz.getcoco.iot.Network.SaveRule, buzz.getcoco.iot.Network.SaveSceneResourceActions, buzz.getcoco.iot.Network.SceneResourceActions, buzz.getcoco.iot.Network.SetRule, buzz.getcoco.iot.Network.SetScene, buzz.getcoco.iot.Network.SetSceneMetadata, buzz.getcoco.iot.Network.SetZone, buzz.getcoco.iot.Network.State, buzz.getcoco.iot.Network.UpdateSceneResourceActions, buzz.getcoco.iot.Network.UserRole
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NetworkEx​(java.lang.String id)  
    • Constructor Detail

      • NetworkEx

        protected NetworkEx​(java.lang.String id)
    • Method Detail

      • internalAddDevice

        protected void internalAddDevice​(buzz.getcoco.iot.Device device)
        Overrides:
        internalAddDevice in class buzz.getcoco.iot.Network
      • internalRemoveDevice

        protected void internalRemoveDevice​(long deviceNodeId)
        Overrides:
        internalRemoveDevice in class buzz.getcoco.iot.Network
      • internalAddZone

        protected void internalAddZone​(buzz.getcoco.iot.Zone zone)
        Overrides:
        internalAddZone in class buzz.getcoco.iot.Network
      • internalRemoveZone

        protected void internalRemoveZone​(int zoneId)
        Overrides:
        internalRemoveZone in class buzz.getcoco.iot.Network
      • internalAddRule

        protected void internalAddRule​(buzz.getcoco.iot.Rule rule)
        Overrides:
        internalAddRule in class buzz.getcoco.iot.Network
      • internalRemoveRule

        protected void internalRemoveRule​(int ruleId)
        Overrides:
        internalRemoveRule in class buzz.getcoco.iot.Network
      • internalAddScene

        protected void internalAddScene​(buzz.getcoco.iot.Scene scene)
        Overrides:
        internalAddScene in class buzz.getcoco.iot.Network
      • internalRemoveScene

        protected void internalRemoveScene​(int sceneId)
        Overrides:
        internalRemoveScene in class buzz.getcoco.iot.Network
      • internalSetName

        protected void internalSetName​(java.lang.String name)
        Overrides:
        internalSetName in class buzz.getcoco.iot.Network
      • internalSetState

        protected void internalSetState​(buzz.getcoco.iot.Network.State state)
        Overrides:
        internalSetState in class buzz.getcoco.iot.Network
      • internalRemoveNetwork

        protected void internalRemoveNetwork()
        Overrides:
        internalRemoveNetwork in class buzz.getcoco.iot.Network
      • onZoneUpdated

        protected void onZoneUpdated​(@NonNull
                                     ZoneEx zone)
      • onSceneNameUpdated

        protected void onSceneNameUpdated​(buzz.getcoco.iot.Scene scene)
      • onRuleNameUpdated

        protected void onRuleNameUpdated​(buzz.getcoco.iot.Rule rule)
      • onZoneNameUpdated

        protected void onZoneNameUpdated​(buzz.getcoco.iot.Zone zone)
      • onDeviceNameUpdated

        protected void onDeviceNameUpdated​(buzz.getcoco.iot.Device device)
      • internalSetConnectivityState

        protected void internalSetConnectivityState​(buzz.getcoco.iot.ConnectivityStateManager.State connectivityState)
        Overrides:
        internalSetConnectivityState in class buzz.getcoco.iot.Network
      • getIdentifier

        public Identifier getIdentifier()
      • getSortedDeviceList

        public java.util.List<D> getSortedDeviceList()
      • getSortedZoneList

        public java.util.List<Z> getSortedZoneList()
      • getSortedRuleList

        public java.util.List<R> getSortedRuleList()
      • getSortedSceneList

        public java.util.List<S> getSortedSceneList()
      • postSortedZones

        protected void postSortedZones()
      • postSortedScenes

        protected void postSortedScenes()
      • postSortedRules

        protected void postSortedRules()
      • postSortedDevices

        protected void postSortedDevices()
      • getDeviceListObservable

        public androidx.lifecycle.LiveData<java.util.List<D>> getDeviceListObservable()
      • getZoneListObservable

        public androidx.lifecycle.LiveData<java.util.List<Z>> getZoneListObservable()
        NOTE: This will remove the default zone, if it has no resources
      • getRuleListObservable

        public androidx.lifecycle.LiveData<java.util.List<R>> getRuleListObservable()
      • getSceneListObservable

        public androidx.lifecycle.LiveData<java.util.List<S>> getSceneListObservable()
      • getNetworkNameObservable

        public androidx.lifecycle.LiveData<java.lang.String> getNetworkNameObservable()
      • getStateObservable

        public androidx.lifecycle.LiveData<buzz.getcoco.iot.Network.State> getStateObservable()
      • getRemoveNetworkObservable

        public androidx.lifecycle.LiveData<java.lang.Boolean> getRemoveNetworkObservable()
      • getConnectivityManageStateObservable

        public androidx.lifecycle.LiveData<buzz.getcoco.iot.ConnectivityStateManager.State> getConnectivityManageStateObservable()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class buzz.getcoco.iot.Network