Esempio n. 1
0
 // Constructor
 public BranchEnumState(int stateNumber, int nextState, int nextStateNumber, bool qualifier, string enumCategory, string[] enumList) : base(stateNumber, nextState, nextStateNumber, qualifier)
 {
     this.EnumCategory = enumCategory;
     this.EnumList     = new List <Object>();
     foreach (string enumString in enumList)
     {
         this.EnumList.Add(EnumFactory.GetEnum(enumString, enumCategory));
     }
 }
 /*
  * PROCESS DESCRIPTION: Set the current value in the pipeline to the given value.
  * INPUT: { Current Value (ENUM) }
  * PARAMETERS: { Value (STRING), Category (STRING) }
  * OUTPUT: { New Value (ENUM) }
  */
 public override void Process()
 {
     this.Output = EnumFactory.GetEnum(this.Value, this.Category);
 }