Examples of RRLAlgorithm


Examples of fr.irit.halterego.rrl_ggp.base.RRLAlgorithm

           
            Properties p = new Properties(System.getProperties());
            p.load(new FileInputStream(new File(config_path)));
            System.setProperties(p);
           
            RRLAlgorithm algorithm = (RRLAlgorithm)AgentProperties.getAlgorithmClass().newInstance();
            AgentLoader loader = new AgentLoader(new GGPAgent(algorithm,explore));
            loader.run();
        }
        catch(Exception e)
        {
View Full Code Here

Examples of fr.irit.halterego.rrl_ggp.base.RRLAlgorithm

           
            Properties p = new Properties(System.getProperties());
            p.load(new FileInputStream(new File(config_path)));
            System.setProperties(p);
           
            RRLAlgorithm algorithm = (RRLAlgorithm)AgentProperties.getAlgorithmClass().newInstance();
            algorithm.load();
           
            GameInformation game_infos = GameReasoner.createGameInfo(path_to_gdl);
           
            List<Agent> agents = new ArrayList<Agent>();
            for(TermObject t : game_infos.getRoles())
            {
                agents.add(new GDLAlgorithmAgent(t.toString()));
            }
           
            GameReasoner reasoner = new GameReasoner(game_infos);
           
            for(int i = 0; i < iterations; ++i)
            {
                System.out.println("iteration " + i);
                RState state = new GDLState(reasoner);
                algorithm.exploreNewEpisode(state, agents);
            }
               
            algorithm.save();
        }
        catch(Exception e)
        {
            throw new RuntimeException(e);
        }
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.