Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IfAction" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="propertyEquals">propertyEquals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 /// <param name="changes">changes.</param>
 /// <param name="remains">remains.</param>
 /// <param name="was">was.</param>
 /// <param name="then">then.</param>
 /// <param name="_else">_else.</param>
 /// <param name="sequence">sequence.</param>
 public IfAction(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition propertyEquals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition), ChangesCondition changes = default(ChangesCondition), RemainsCondition remains = default(RemainsCondition), WasCondition was = default(WasCondition), List <Action> then = default(List <Action>), List <Action> _else = default(List <Action>), IfActionSequence sequence = default(IfActionSequence))
 {
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.PropertyEquals      = propertyEquals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
     this.Changes             = changes;
     this.Remains             = remains;
     this.Was                 = was;
     this.Then                = then;
     this.Else                = _else;
     this.Sequence            = sequence;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Condition" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="propertyEquals">propertyEquals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 /// <param name="changes">changes.</param>
 /// <param name="remains">remains.</param>
 /// <param name="was">was.</param>
 public Condition(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition propertyEquals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition), ChangesCondition changes = default(ChangesCondition), RemainsCondition remains = default(RemainsCondition), WasCondition was = default(WasCondition))
 {
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.PropertyEquals      = propertyEquals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
     this.Changes             = changes;
     this.Remains             = remains;
     this.Was                 = was;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemainsCondition" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="propertyEquals">propertyEquals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 /// <param name="id">Unique id for the condition (required).</param>
 /// <param name="operand">operand.</param>
 /// <param name="duration">duration (required).</param>
 /// <param name="latching">Determines whether the condition should return true in subsequent executions after initially satisified. (default to false).</param>
 public RemainsCondition(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition propertyEquals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition), string id = default(string), Operand operand = default(Operand), Interval duration = default(Interval), bool latching = false)
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for RemainsCondition and cannot be null");
     }
     this.Id = id;
     // to ensure "duration" is required (not null)
     if (duration == null)
     {
         throw new ArgumentNullException("duration is a required property for RemainsCondition and cannot be null");
     }
     this.Duration            = duration;
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.PropertyEquals      = propertyEquals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
     this.Operand             = operand;
     this.Latching            = latching;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BasicCondition" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="propertyEquals">propertyEquals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 public BasicCondition(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition propertyEquals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition))
 {
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.PropertyEquals      = propertyEquals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IfAction" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="equals">equals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 /// <param name="id">Unique id for the action.</param>
 /// <param name="then">then.</param>
 /// <param name="_else">_else.</param>
 public IfAction(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition equals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition), string id = default(string), List <Action> then = default(List <Action>), List <Action> _else = default(List <Action>))
 {
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.EqualsCondition     = equals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
     this.Id                  = id;
     this.Then                = then;
     this.Else                = _else;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangesCondition" /> class.
 /// </summary>
 /// <param name="and">and.</param>
 /// <param name="or">or.</param>
 /// <param name="not">not.</param>
 /// <param name="propertyEquals">propertyEquals.</param>
 /// <param name="greaterThan">greaterThan.</param>
 /// <param name="greaterThanOrEquals">greaterThanOrEquals.</param>
 /// <param name="lessThan">lessThan.</param>
 /// <param name="lessThanOrEquals">lessThanOrEquals.</param>
 /// <param name="between">between.</param>
 /// <param name="id">Unique id for the condition (required).</param>
 /// <param name="operand">operand.</param>
 public ChangesCondition(List <Condition> and = default(List <Condition>), List <Condition> or = default(List <Condition>), Condition not = default(Condition), EqualsCondition propertyEquals = default(EqualsCondition), GreaterThanCondition greaterThan = default(GreaterThanCondition), GreaterThanOrEqualsCondition greaterThanOrEquals = default(GreaterThanOrEqualsCondition), LessThanCondition lessThan = default(LessThanCondition), LessThanOrEqualsCondition lessThanOrEquals = default(LessThanOrEqualsCondition), BetweenCondition between = default(BetweenCondition), string id = default(string), Operand operand = default(Operand))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for ChangesCondition and cannot be null");
     }
     this.Id                  = id;
     this.And                 = and;
     this.Or                  = or;
     this.Not                 = not;
     this.PropertyEquals      = propertyEquals;
     this.GreaterThan         = greaterThan;
     this.GreaterThanOrEquals = greaterThanOrEquals;
     this.LessThan            = lessThan;
     this.LessThanOrEquals    = lessThanOrEquals;
     this.Between             = between;
     this.Operand             = operand;
 }