Exemplo n.º 1
0
 public StateVariable(string name,
                      string dataType,
                      AllowedValueRange allowedValueRange,
                      StateVariableOptions options)
     : this(name, dataType, options)
 {
     AllowedValueRange = allowedValueRange;
 }
Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 3
0
 public StateVariable(string name, IEnumerable <string> allowedValues, StateVariableOptions options)
     : this(name, "string", options)
 {
     allowed_values = Helper.MakeReadOnlyCopy(allowedValues);
 }