Exemplo n.º 1
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     AssignOperator = EnumMapper.ToTimedEffectAssignOperator(treeNode.GetChildString(0));
     Function       = treeNode.GetChildAst <FunctionTermAstNode>(1);
     Expression     = treeNode.GetChildAst <TimedNumericExpressionAstNode>(2);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     TimeSpecifier      = EnumMapper.ToTimeSpecifier(treeNode.GetChildString(1));
     DurationConstraint = treeNode.GetChildAst <SimpleDurationConstraintAstNode>(2);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     TimeSpecifier = EnumMapper.ToTimeSpecifier(treeNode.GetChildString(1));
     Effect        = treeNode.GetChildAst <CondEffectAstNode>(2);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     DurationComparer = EnumMapper.ToDurationComparer(treeNode.GetChildString(0));
     DurationArgument = treeNode.GetChildAst <TermOrNumericAstNode>(2);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     Operator  = EnumMapper.ToNumericComparer(treeNode.GetChildString(0));
     Argument1 = treeNode.GetChildAst <TermOrNumericAstNode>(1);
     Argument2 = treeNode.GetChildAst <TermOrNumericAstNode>(2);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     AssignOperator = EnumMapper.ToAssignOperator(treeNode.GetChildString(0));
     Argument1      = treeNode.GetChildAst <FunctionTermAstNode>(1);
     Argument2      = treeNode.GetChildAst <TermOrNumericAstNode>(2);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     IntervalSpecifier = EnumMapper.ToIntervalSpecifier(treeNode.GetChildString(1));
     Argument          = treeNode.GetChildAst <GdAstNode>(2);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initialization of the AST node. Specifies conversion from parse-tree node to AST node.
 /// </summary>
 /// <param name="treeNode">Parse-tree node.</param>
 public override void Init(ParseTreeNode treeNode)
 {
     OptimizationSpecifier = EnumMapper.ToOptimizationSpecifier(treeNode.GetChildString(1));
     MetricExpression      = treeNode.GetChildAst <TermOrNumericAstNode>(2);
 }