コード例 #1
0
ファイル: CBS.cs プロジェクト: doratzmon/WeightedCBS
 public CBS(ICbsSolver singleAgentSolver, ICbsSolver generalSolver)
 {
     this.closedList        = new Dictionary <CbsNode, CbsNode>();
     this.openList          = new OpenList(this);
     this.solver            = generalSolver;
     this.singleAgentSolver = singleAgentSolver;
 }
コード例 #2
0
 public CBS_LocalConflicts(ICbsSolver singleAgentSolver, ICbsSolver generalSolver, int mergeThreshold = -1)
 {
     this.closedList        = new Dictionary <CbsNode, CbsNode>();
     this.openList          = new OpenList(this);
     this.mergeThreshold    = mergeThreshold;
     this.solver            = generalSolver;
     this.singleAgentSolver = singleAgentSolver;
 }
コード例 #3
0
ファイル: ClassicAStar.cs プロジェクト: kylevedder/mapf
        /// <summary>
        /// Default constructor.
        /// </summary>
        public ClassicAStar(HeuristicCalculator heuristic = null)
        {
            this.closedList = new Dictionary <WorldState, WorldState>();
            this.openList   = new OpenList(this);
            this.heuristic  = heuristic;

            this.queryConstraint = new CbsConstraint();
            this.queryConstraint.queryInstance = true;
        }