public class EpisodeRecordingCommands extends java.lang.Object implements EnvironmentObserver
ShellCommands, rec and episode, for recording and browsing episodes of behavior that take place in the Environment.
Use the -h option for help information.| Modifier and Type | Class and Description |
|---|---|
class |
EpisodeRecordingCommands.EpisodeBrowserCommand |
class |
EpisodeRecordingCommands.RecordCommand |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoRecord |
protected EpisodeRecordingCommands.EpisodeBrowserCommand |
browser |
protected EpisodeAnalysis |
curEpisode |
protected java.util.List<EpisodeAnalysis> |
episodes |
protected boolean |
finished |
protected EpisodeRecordingCommands.RecordCommand |
recCommand |
protected boolean |
recordedLast |
protected boolean |
recording |
| Constructor and Description |
|---|
EpisodeRecordingCommands() |
| Modifier and Type | Method and Description |
|---|---|
EpisodeRecordingCommands.EpisodeBrowserCommand |
getBrowser() |
EpisodeRecordingCommands.RecordCommand |
getRecCommand() |
void |
observeEnvironmentActionInitiation(State o,
GroundedAction action)
This method is called when an
Environment receives an action to execute, but before the
Environment has completed execution. |
void |
observeEnvironmentInteraction(EnvironmentOutcome eo)
This method is called every time an
Environment is interacted with. |
void |
observeEnvironmentReset(Environment resetEnvironment)
This method is called every time an
Environment is reset (has the Environment.resetEnvironment() method called). |
protected java.util.List<EpisodeAnalysis> episodes
protected EpisodeAnalysis curEpisode
protected boolean finished
protected boolean autoRecord
protected boolean recording
protected boolean recordedLast
protected EpisodeRecordingCommands.RecordCommand recCommand
protected EpisodeRecordingCommands.EpisodeBrowserCommand browser
public EpisodeRecordingCommands.RecordCommand getRecCommand()
public EpisodeRecordingCommands.EpisodeBrowserCommand getBrowser()
public void observeEnvironmentActionInitiation(State o, GroundedAction action)
EnvironmentObserverEnvironment receives an action to execute, but before the
Environment has completed execution.observeEnvironmentActionInitiation in interface EnvironmentObservero - the current Environment observation in which the the action begins execution.action - the GroundedAction which will be executed in the Environment.public void observeEnvironmentInteraction(EnvironmentOutcome eo)
EnvironmentObserverEnvironment is interacted with.observeEnvironmentInteraction in interface EnvironmentObservereo - the resulting EnvironmentOutcomepublic void observeEnvironmentReset(Environment resetEnvironment)
EnvironmentObserverEnvironment is reset (has the Environment.resetEnvironment() method called).observeEnvironmentReset in interface EnvironmentObserverresetEnvironment - the Environment that was reset.