/// <summary>
		/// 	Create a new DirectoryAdapter instance. C'tor.
		/// </summary>
		/// <param name = "pathFinder">The MapPath implementation.</param>
		/// <param name = "constrainToSpecifiedDir">Whether to ChJail the DirectoryAdapter.</param>
		/// <param name = "specifiedDir">The directory to constrain the adapter to.</param>
		public DirectoryAdapter(IMapPath pathFinder, bool constrainToSpecifiedDir, string specifiedDir)
			: base(constrainToSpecifiedDir, specifiedDir)
		{
			Contract.Requires(pathFinder != null);

			_PathFinder = pathFinder;
		}
		///<summary>
		/// c'tor
		///</summary>
		///<param name="pathFinder"></param>
		///<param name="constrainToSpecifiedDir"></param>
		///<param name="specifiedDir"></param>
		public DirectoryAdapter(IMapPath pathFinder, bool constrainToSpecifiedDir, string specifiedDir)
			: base(constrainToSpecifiedDir, specifiedDir)
		{
			if (pathFinder == null) 
				throw new ArgumentNullException("pathFinder");

			_PathFinder = pathFinder;
		}
Example #3
0
        public PathMobBehaviour(IExtendedAgent agent, IMapPath mapPath)
        {
            _agent   = agent;
            _mapPath = mapPath;
            _state   = PathMobBehaviourStates.Init;

            Priority = ModifierPriority.Base;
        }
Example #4
0
        /// <summary>
        ///     Create a new DirectoryAdapter instance. C'tor.
        /// </summary>
        /// <param name = "pathFinder">The MapPath implementation.</param>
        /// <param name = "constrainToSpecifiedDir">Whether to ChJail the DirectoryAdapter.</param>
        /// <param name = "specifiedDir">The directory to constrain the adapter to.</param>
        public DirectoryAdapter(IMapPath pathFinder, bool constrainToSpecifiedDir, string specifiedDir)
            : base(constrainToSpecifiedDir, specifiedDir)
        {
            Contract.Requires(pathFinder != null);

            logger.Debug("DirectoryAdapter created.");

            this.pathFinder = pathFinder;
        }
Example #5
0
		/// <summary>
		/// 	Create a new DirectoryAdapter instance. C'tor.
		/// </summary>
		/// <param name = "pathFinder">The MapPath implementation.</param>
		/// <param name = "constrainToSpecifiedDir">Whether to ChJail the DirectoryAdapter.</param>
		/// <param name = "specifiedDir">The directory to constrain the adapter to.</param>
		public DirectoryAdapter(IMapPath pathFinder, bool constrainToSpecifiedDir, string specifiedDir)
			: base(constrainToSpecifiedDir, specifiedDir)
		{
			Contract.Requires(pathFinder != null);

			logger.Debug("DirectoryAdapter created.");

			this.pathFinder = pathFinder;
		}
        ///<summary>
        /// c'tor
        ///</summary>
        ///<param name="pathFinder"></param>
        ///<param name="constrainToSpecifiedDir"></param>
        ///<param name="specifiedDir"></param>
        public DirectoryAdapter(IMapPath pathFinder, bool constrainToSpecifiedDir, string specifiedDir)
            : base(constrainToSpecifiedDir, specifiedDir)
        {
            if (pathFinder == null)
            {
                throw new ArgumentNullException("pathFinder");
            }

            _PathFinder = pathFinder;
        }
Example #7
0
 public Session(IMapPath mapPath)
 {
     _mapPath = mapPath;
 }
Example #8
0
 public Session(IMapPath mapPath) => _mapPath = mapPath;