|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementation.dijkstra.DijkstraProblem
public class DijkstraProblem
Constructor Summary | |
---|---|
DijkstraProblem(Graph graph,
int start)
|
Method Summary | |
---|---|
int |
depth(DijkstraState state)
Returns the depth of the given state in the search tree. |
java.util.List<DijkstraState> |
expand(DijkstraState state)
Generates all successor states of the given state. |
double |
g(DijkstraState state)
This method returns the sum of all path costs from the initial to the given state. |
java.util.Map<java.lang.Integer,DijkstraState> |
getResult()
|
double |
h(DijkstraState state)
This method computes the proximity of the given state to a goal. |
DijkstraState |
initial()
Returns the starting state of the search. |
boolean |
isGoal(DijkstraState state)
Checks whether a given state is a goal of the search or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DijkstraProblem(Graph graph, int start)
Method Detail |
---|
public java.util.Map<java.lang.Integer,DijkstraState> getResult()
public double g(DijkstraState state)
HeuristicProblem
g
in interface HeuristicProblem<DijkstraState>
state
- to be inspected
public double h(DijkstraState state)
HeuristicProblem
h
in interface HeuristicProblem<DijkstraState>
public int depth(DijkstraState state)
TreeProblem
depth
in interface TreeProblem<DijkstraState>
state
- the state to be inspected
public DijkstraState initial()
Problem
initial
in interface Problem<DijkstraState>
public boolean isGoal(DijkstraState state)
Problem
isGoal
in interface Problem<DijkstraState>
state
- to be checked
public java.util.List<DijkstraState> expand(DijkstraState state)
Problem
expand
in interface Problem<DijkstraState>
state
- to be expanded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |