org.encog.ml.world.grid
public class GridWorld extends BasicWorld
Modifier and Type | Field and Description |
---|---|
static Action |
ACTION_EAST |
static Action |
ACTION_NORTH |
static Action |
ACTION_SOUTH |
static Action |
ACTION_WEST |
Constructor and Description |
---|
GridWorld(int rows,
int columns) |
Modifier and Type | Method and Description |
---|---|
Action |
determineActionToState(GridState currentState,
GridState targetState) |
static double |
euclideanDistance(GridState s1,
GridState s2) |
GridState |
findClosestStateTo(List<GridState> states,
GridState goalState) |
GridState |
findClosestStateToGoal(List<GridState> states) |
List<GridState> |
getAdjacentStates(GridState s) |
int |
getColumns() |
int |
getRows() |
GridState |
getState(int row,
int column) |
static boolean |
isStateBlocked(GridState state) |
static Action |
leftOfAction(Action action) |
static Action |
reverseOfAction(Action action) |
static Action |
rightOfAction(Action action) |
void |
setBlocked(int row,
int column) |
addAction, addAgent, addGoal, addState, createAbsorbingState, getActions, getAgents, getGoals, getPolicyValue, getProbability, getStates, isGoalState, removeAgent, removeGoal, removeRewardBelow, runToGoal, setAllRewards, setPolicyValue, setProbability, tick
public static final Action ACTION_NORTH
public static final Action ACTION_SOUTH
public static final Action ACTION_EAST
public static final Action ACTION_WEST
public static boolean isStateBlocked(GridState state)
public int getRows()
public int getColumns()
public GridState getState(int row, int column)
public Action determineActionToState(GridState currentState, GridState targetState)
public void setBlocked(int row, int column)
Copyright © 2014. All Rights Reserved.