forked from MaxRobinson/Alt-AIResearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEpisode.java
More file actions
33 lines (26 loc) · 774 Bytes
/
Episode.java
File metadata and controls
33 lines (26 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package randomPackage;
public class Episode {
public char command; // The command that it took to get there.
public int sensorValue;
public StateID stateID;
public Episode(char cmd, int sensor, int state) {
command = cmd;
sensorValue = sensor;
stateID = new StateID(state);
}
public boolean equals(Episode episode) {
if (this.command == episode.command
&& this.sensorValue == episode.sensorValue) {
return true;
}
return false;
}
/*
* copy constructure
*/
public Episode(Episode episode) {
this.command = episode.command;
this.sensorValue = episode.sensorValue;
this.stateID = new StateID(episode.stateID.get());
}
}