Class RuleEx


  • public class RuleEx
    extends buzz.getcoco.iot.Rule
    • Nested Class Summary

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

        buzz.getcoco.iot.Rule.Condition
    • Field Summary

      • Fields inherited from class buzz.getcoco.iot.Rule

        DEFAULT_RULE_ID
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RuleEx​(int id, buzz.getcoco.iot.Network parent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<buzz.getcoco.iot.Rule.Condition> getConditions()  
      androidx.lifecycle.LiveData<java.util.List<buzz.getcoco.iot.Rule.Condition>> getConditionsObservable()  
      Identifier getIdentifier()  
      androidx.lifecycle.LiveData<java.lang.String> getNameObservable()  
      androidx.lifecycle.LiveData<java.util.List<buzz.getcoco.iot.ScheduleCondition>> getScheduleConditionObservable()  
      protected void internalClearAddResourceActions​(java.util.Collection<buzz.getcoco.iot.ResourceAction> resourceActions)  
      protected void internalClearAddSceneActions​(java.util.Collection<buzz.getcoco.iot.Scene> scenesActions)  
      protected void internalSetName​(java.lang.String name)  
      • Methods inherited from class buzz.getcoco.iot.Rule

        getId, getName, getParent, getResourceActions, getResourceConditions, getSceneActions, getScheduleConditions, hashCode, internalClearAddResourceConditions, internalClearAddScheduleConditions, internalMarkAsReady, internalSetParent, isReady, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RuleEx

        protected RuleEx​(int id,
                         buzz.getcoco.iot.Network parent)
    • Method Detail

      • internalClearAddSceneActions

        protected void internalClearAddSceneActions​(java.util.Collection<buzz.getcoco.iot.Scene> scenesActions)
        Overrides:
        internalClearAddSceneActions in class buzz.getcoco.iot.Rule
      • internalClearAddResourceActions

        protected void internalClearAddResourceActions​(java.util.Collection<buzz.getcoco.iot.ResourceAction> resourceActions)
        Overrides:
        internalClearAddResourceActions in class buzz.getcoco.iot.Rule
      • internalSetName

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

        public Identifier getIdentifier()
      • getNameObservable

        public androidx.lifecycle.LiveData<java.lang.String> getNameObservable()
      • getConditionsObservable

        public androidx.lifecycle.LiveData<java.util.List<buzz.getcoco.iot.Rule.Condition>> getConditionsObservable()
      • getScheduleConditionObservable

        public androidx.lifecycle.LiveData<java.util.List<buzz.getcoco.iot.ScheduleCondition>> getScheduleConditionObservable()
      • getConditions

        public java.util.List<buzz.getcoco.iot.Rule.Condition> getConditions()