Example #1
0
 public StateVariable(string name,
                      string dataType,
                      AllowedValueRange allowedValueRange,
                      StateVariableOptions options)
     : this(name, dataType, options)
 {
     AllowedValueRange = allowedValueRange;
 }
Example #2
0
 public StateVariable(string name, string dataType, StateVariableOptions options)
     : this(name, dataType)
 {
     if (options != null)
     {
         DefaultValue = options.DefaultValue;
         if (options.Eventer != null)
         {
             SetEventer(options.Eventer, options.IsMulticast);
         }
     }
 }
Example #3
0
 public StateVariable(string name, IEnumerable <string> allowedValues, StateVariableOptions options)
     : this(name, "string", options)
 {
     allowed_values = Helper.MakeReadOnlyCopy(allowedValues);
 }