Ejemplo n.º 1
0
    public iThinkBrain(string method)
    {
        lastUpdate = Time.time;

        if (method == "DepthFS")
        {
            planner = new BreadthFS();
        }
        else if (method == "BreadthFS")
        {
            planner = new BreadthFS();
        }
        else if (method == "BestFS")
        {
            planner = new BestFS();
        }
        else if (method == "AstarFS")
        {
            planner = new AstarFS();
        }
        else if (method == "AstarWeakFS")
        {
            planner = new AstarWeakFS();
        }

        factList      = new List <iThinkFact>();
        sensorySystem = new iThinkSensorySystem();
    }
Ejemplo n.º 2
0
    protected List<iThinkFact> factList; /// A list of all the Facts known to the agent.

    #endregion Fields

    #region Constructors

    /// iThinkBrain constructor
    public iThinkBrain()
    {
        lastUpdate = Time.time;

        planner = new HeuristicDepthFS();			//default planner
        factList = new List<iThinkFact>();
        sensorySystem = new iThinkSensorySystem();
    }
Ejemplo n.º 3
0
    /// iThinkBrain constructor
    public iThinkBrain()
    {
        lastUpdate = Time.time;

        planner       = new HeuristicDepthFS();                 //default planner
        factList      = new List <iThinkFact>();
        sensorySystem = new iThinkSensorySystem();
    }
Ejemplo n.º 4
0
    public iThinkBrain(string method)
    {
        lastUpdate = Time.time;

        if (method == "DepthFS")
        {
            planner = new BreadthFS();
        }
        else if (method == "BreadthFS")
        {
            planner = new BreadthFS();
        }
        else if (method == "BestFS")
        {
            planner = new BestFS();
        }
        else if (method == "AstarFS")
        {
            planner = new AstarFS();
        }
        else if (method == "AstarWeakFS")
        {
            planner = new AstarWeakFS();
        }

        factList = new List<iThinkFact>();
        sensorySystem = new iThinkSensorySystem();
    }