org.rlcommunity.rlglue.codec.util
Class EnvironmentLoader
java.lang.Object
org.rlcommunity.rlglue.codec.util.EnvironmentLoader
- All Implemented Interfaces:
- java.lang.Runnable
public class EnvironmentLoader
- extends java.lang.Object
- implements java.lang.Runnable
This class can be called from the command line to load an environment and create
an executable RL environment program.
We've recently refactored it to make it useful if anyone ever wants to create
local instances of network-bound environment from inside a JVM (like Matlab)
- Author:
- btanner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentLoader
public EnvironmentLoader(EnvironmentInterface theEnvironment)
EnvironmentLoader
public EnvironmentLoader(java.lang.String hostString,
java.lang.String portString,
EnvironmentInterface theEnvironment)
killProcess
public void killProcess()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
loadEnvironment
public static EnvironmentLoader loadEnvironment(java.lang.String envClassName)
- Loads the class envClassName as an rl-glue environment.
- Parameters:
envClassName
-
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception