Example #1
0
 internal override void ConfigureGenerator(OperationGenerator attrb)
 {
     switch (attrb.CurrentMode)
     {
         case ContextType.STARTTIME:
             attrb.StartTimeOnly = time;
             attrb.IsSpecific.StartTime = specific;
             break;
         case ContextType.ENDTIME:
             attrb.SetConditionalEndTime(time, specific);
             Logger.Info("Successfully set conditional end time.", "ConfigureGenerator::TokenTime");
             break;
         case ContextType.DEADLINE:
             attrb.EndTimeOnly = time;
             attrb.IsSpecific.EndTime = specific;
             break;
         default:
             Logger.Error("Fell through switch statement.", "ConfigureGenerator::TokenTime");
             Debug.Assert(false, "Fell through switch statement in ConfigureGenerator, TokenTime!");
             break;
     }
 }