Esempio n. 1
0
 public CBS(ICbsSolver singleAgentSolver, ICbsSolver generalSolver)
 {
     this.closedList        = new Dictionary <CbsNode, CbsNode>();
     this.openList          = new OpenList(this);
     this.solver            = generalSolver;
     this.singleAgentSolver = singleAgentSolver;
 }
Esempio n. 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;
 }
Esempio n. 3
0
        /// <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;
        }