add default structure for AntAgent

This commit is contained in:
2019-12-08 13:15:20 +01:00
parent 581cf6b28b
commit ec67ce60c9
10 changed files with 161 additions and 27 deletions
+4
View File
@@ -7,6 +7,10 @@ public class DiscreteAction<A extends Enum> implements Action{
this.action = action;
}
public A getValue(){
return action;
}
@Override
public int getIndex(){
return action.ordinal();
+1 -1
View File
@@ -8,7 +8,7 @@ import lombok.Setter;
@Setter
@AllArgsConstructor
public class StepResult {
private Observation observation;
private State observation;
private double reward;
private boolean done;
private String info;