public class EnvironmentShell extends BurlapShell
BurlapShell for a shell with shell commands that manipulate or read
an Environment. The Environment
can be accessed with the getEnv() method.
Use the cmds shell command to see all commands and use the -h option on any given command to see its help message. Generally, the Java implementations of the default commands provided for this shell are are in burlap.shell.command.env package.
| Modifier and Type | Field and Description |
|---|---|
protected Environment |
env |
aliases, commands, domain, helpText, is, kill, observers, os, reserved, scanner, visualizer, welcomeMessage| Constructor and Description |
|---|
EnvironmentShell(Domain domain,
Environment env)
Creates shell for std in and std out.
|
EnvironmentShell(Domain domain,
Environment env,
java.io.InputStream is,
java.io.PrintStream os) |
EnvironmentShell(SADomain domain,
State s)
Creates a shell for a
SimulatedEnvironment rooted at the input state using std in and std out. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<ShellCommand> |
generateStandard() |
Environment |
getEnv() |
void |
setEnv(Environment env) |
addCommand, addCommandAs, addObservers, aliasPointer, executeCommand, generateReserved, getAliases, getCommands, getDomain, getHelpText, getIs, getOs, getVisualizer, getWelcomeMessage, kill, removeAlias, removeCommand, resolveCommand, setAlias, setAlias, setDomain, setHelpText, setIs, setOs, setVisualizer, setWelcomeMessage, startprotected Environment env
public EnvironmentShell(Domain domain, Environment env, java.io.InputStream is, java.io.PrintStream os)
public EnvironmentShell(Domain domain, Environment env)
domain - the BURLAP domainenv - the Environment with which to interactpublic EnvironmentShell(SADomain domain, State s)
SimulatedEnvironment rooted at the input state using std in and std out.domain - the BURLAP domains - the initial state for the simulated environment that will be created.public Environment getEnv()
public void setEnv(Environment env)
protected java.util.Collection<ShellCommand> generateStandard()
generateStandard in class BurlapShell