public class JointActionCommand extends java.lang.Object implements ShellCommand
ShellCommand for manually setting and executing a JointAction
for the shell's World. Use the -h option for help information.| Modifier and Type | Field and Description |
|---|---|
protected JointAction |
ja |
protected joptsimple.OptionParser |
parser |
| Constructor and Description |
|---|
JointActionCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroundedActionToJoint(GroundedSGAgentAction action)
Adds a
GroundedSGAgentAction to the JointAction
being built and to be executed. |
int |
call(BurlapShell shell,
java.lang.String argString,
java.util.Scanner is,
java.io.PrintStream os)
Executes this command.
|
java.lang.String |
commandName()
Returns the default name of this command.
|
protected JointAction ja
protected joptsimple.OptionParser parser
public java.lang.String commandName()
ShellCommandcommandName in interface ShellCommandpublic int call(BurlapShell shell, java.lang.String argString, java.util.Scanner is, java.io.PrintStream os)
ShellCommandcall in interface ShellCommandshell - the calling BurlapShellargString - the argument string that was associated with this command.is - a Scanner that can be used to read input from a user.os - a OutputStream to write outputEnvironment was changed.public void addGroundedActionToJoint(GroundedSGAgentAction action)
GroundedSGAgentAction to the JointAction
being built and to be executed.action - the GroundedSGAgentAction to add to the JointAction.