Esempio n. 1
0
 private void HandleResponse(PlanningParser.ResponseDefineContext context, IReadOnlyDictionary <string, Event> eventDict, StringDictionary assignment)
 {
     if (context.PARAMETER() != null)
     {
         ResponseEnumerator enumerator = new ResponseEnumerator(context, eventDict, _responseDict, assignment);
         Algorithms.IterativeScanMixedRadix(enumerator);
     }
     else
     {
         Response response = new Response(context, eventDict, assignment);
         _responseDict.Add(response.FullName, response);
     }
 }
Esempio n. 2
0
 public Response(PlanningParser.ResponseDefineContext context, IReadOnlyDictionary <string, Event> eventDict,
                 StringDictionary assignment) : this(context, eventDict, assignment, Globals.EmptyConstArray)
 {
 }
Esempio n. 3
0
 public Response(PlanningParser.ResponseDefineContext context, IReadOnlyDictionary <string, Event> eventDict,
                 StringDictionary assignment, string[] constArray) : base(constArray)
 {
     Name       = context.responseSymbol().GetText();
     EventModel = context.eventModel().GetEventModel(eventDict, assignment);
 }