コード例 #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);
 }
コード例 #2
0
ファイル: AstDurConstr.cs プロジェクト: PlanningFramework/PAD
 /// <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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: AstDurConstr.cs プロジェクト: PlanningFramework/PAD
 /// <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);
 }
コード例 #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);
 }
コード例 #6
0
ファイル: AstPEffect.cs プロジェクト: PlanningFramework/PAD
 /// <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);
 }
コード例 #7
0
ファイル: AstDaGD.cs プロジェクト: PlanningFramework/PAD
 /// <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);
 }
コード例 #8
0
ファイル: AstProblem.cs プロジェクト: PlanningFramework/PAD
 /// <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);
 }