public class EpisodeRecordingCommands extends java.lang.Object implements EnvironmentObserver
ShellCommand
s, 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 Episode |
curEpisode |
protected java.util.List<Episode> |
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,
Action 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<Episode> episodes
protected Episode 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, Action action)
EnvironmentObserver
Environment
receives an action to execute, but before the
Environment
has completed execution.observeEnvironmentActionInitiation
in interface EnvironmentObserver
o
- the current Environment
observation in which the the action begins execution.action
- the Action
which will be executed in the Environment
.public void observeEnvironmentInteraction(EnvironmentOutcome eo)
EnvironmentObserver
Environment
is interacted with.observeEnvironmentInteraction
in interface EnvironmentObserver
eo
- the resulting EnvironmentOutcome
public void observeEnvironmentReset(Environment resetEnvironment)
EnvironmentObserver
Environment
is reset (has the Environment.resetEnvironment()
method called).observeEnvironmentReset
in interface EnvironmentObserver
resetEnvironment
- the Environment
that was reset.