/// <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;
		}
Ejemplo n.º 2
0
		///<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;
		}
Ejemplo n.º 3
0
        public PathMobBehaviour(IExtendedAgent agent, IMapPath mapPath)
        {
            _agent   = agent;
            _mapPath = mapPath;
            _state   = PathMobBehaviourStates.Init;

            Priority = ModifierPriority.Base;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 6
0
        ///<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;
        }
Ejemplo n.º 7
0
 public Session(IMapPath mapPath)
 {
     _mapPath = mapPath;
 }
Ejemplo n.º 8
0
 public Session(IMapPath mapPath) => _mapPath = mapPath;