コード例 #1
0
 public MapAgent(Map map, ISearchForActions <string, MoveToAction> search,
                 ICollection <string> goals,
                 IEnvironmentViewNotifier notifier)
     : this(map, search, goals)
 {
     this.notifier = notifier;
 }
コード例 #2
0
 public SimpleMapAgent(Map map, IEnvironmentViewNotifier notifier,
                       ISearchForActions <string, MoveToAction> search,
                       string[] goals)
     : this(map, search, goals)
 {
     this.notifier = notifier;
 }
コード例 #3
0
 public SimpleMapAgent(Map map, IEnvironmentViewNotifier notifier,
                       ISearchForActions <string, MoveToAction> search)
 {
     this.map      = map;
     this.notifier = notifier;
     this._search  = search;
 }
コード例 #4
0
 /**
  * Constructor.
  * @param map Information about the environment
  * @param search Search strategy to be used
  * @param goals List of locations to be visited
  * @param notifier Gets informed about decisions of the agent
  * @param hFnFactory Factory, mapping goals to heuristic functions. When using
  *                   informed search, the agent must be able to estimate remaining costs for
  *                   the goals he has selected.
  */
 public MapAgent(Map map,
                 ISearchForActions <string, MoveToAction> search, ICollection <string> goals,
                 IEnvironmentViewNotifier notifier,
                 Function <string, IToDoubleFunction <Node <string, MoveToAction> > > hFnFactory)
     : this(map, search, goals, notifier)
 {
     this.hFnFactory = hFnFactory;
 }
コード例 #5
0
 public SimpleMapAgent(Map map, IEnvironmentViewNotifier notifier,
                       ISearchForActions <string, MoveToAction> search,
                       int maxGoalsToFormulate)
     : base(maxGoalsToFormulate)
 {
     this.map      = map;
     this.notifier = notifier;
     this._search  = search;
 }