/// <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; }
public PathMobBehaviour(IExtendedAgent agent, IMapPath mapPath) { _agent = agent; _mapPath = mapPath; _state = PathMobBehaviourStates.Init; Priority = ModifierPriority.Base; }
/// <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; }
public Session(IMapPath mapPath) { _mapPath = mapPath; }
public Session(IMapPath mapPath) => _mapPath = mapPath;