Package tetrisexample.util

Source Code of tetrisexample.util.EnvThread

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package tetrisexample.util;

import org.rlcommunity.rlglue.codec.util.EnvironmentLoader;
import org.rlcommunity.rlviz.environmentshell.EnvironmentShell;
import org.rlcommunity.rlviz.settings.RLVizSettings;
import rlVizLib.general.ParameterHolder;

/**
*
* @author szityu
*/
public class EnvThread extends Thread {

    @Override
    public void run()
    {
       
        String[] args = {};
        ParameterHolder parameterholder = new ParameterHolder();
        parameterholder.addStringParam("environment-jar-path",
                "../../../rl-competition/system/libraries/envJars");
       
        RLVizSettings.initializeSettings(args);
        RLVizSettings.addNewParameters(parameterholder);
        EnvironmentLoader environmentloader = new EnvironmentLoader(new EnvironmentShell());
        environmentloader.run();
//        
    }
}
TOP

Related Classes of tetrisexample.util.EnvThread

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.