Examples of GDLAction


Examples of fr.irit.halterego.rrl_ggp.impl.GDLAction

        // Translate them in does facts
        List<RAction> actions = new ArrayList<RAction>();
        for(int i = 0; i < moves.size(); ++i)
        {
            GroundFact fact = new GroundFact(GameManager.getParser().TOK_DOES,roles.get(i),moves.get(i));
            actions.add(new GDLAction(fact));
        }
       
        // Compute the next state
        state = (GDLState)state.next(actions);
    }
View Full Code Here

Examples of fr.irit.halterego.rrl_ggp.impl.GDLAction

        do
        {
            algo.getMaxActionFirst(vanstate, vanaction);
            fr.irit.halterego.rrl_ggp.serialization.SerializableAction fact = moves.get(vanaction.discreteAction);
            //System.out.println("parsing " + fact);
            action = new GDLAction(GroundFact.fromExpression(GameManager.getParser().parse(fact.toString()).getElement(0)));
            //System.out.println("trying " + action);
           
            legal = legalActions.contains(action);
            if(!legal)
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.