public class OnlineSearchProblem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ActionsFunction |
actionsFunction |
protected GoalTest |
goalTest |
protected StepCostFunction |
stepCostFunction |
| Modifier | Constructor and Description |
|---|---|
protected |
OnlineSearchProblem() |
|
OnlineSearchProblem(ActionsFunction actionsFunction,
GoalTest goalTest)
Constructs an online search problem with the specified action function,
goal test, and a default step cost function.
|
|
OnlineSearchProblem(ActionsFunction actionsFunction,
GoalTest goalTest,
StepCostFunction stepCostFunction)
Constructs an online search problem with the specified action function,
goal test, and a default step cost function.
|
| Modifier and Type | Method and Description |
|---|---|
ActionsFunction |
getActionsFunction()
Returns the action function of this online search problem.
|
StepCostFunction |
getStepCostFunction()
Returns the step cost function of this online search problem.
|
boolean |
isGoalState(java.lang.Object state)
Returns
true if the given state is a goal state. |
protected ActionsFunction actionsFunction
protected StepCostFunction stepCostFunction
protected GoalTest goalTest
public OnlineSearchProblem(ActionsFunction actionsFunction, GoalTest goalTest)
actionsFunction - ACTIONS(s), which returns a list of actions allowed in state sgoalTest - GOAL-TEST(s), which the agent can apply to a single state
description to determine if it is a goal statepublic OnlineSearchProblem(ActionsFunction actionsFunction, GoalTest goalTest, StepCostFunction stepCostFunction)
actionsFunction - ACTIONS(s), which returns a list of actions allowed in state sgoalTest - GOAL-TEST(s), which the agent can apply to a single state
description to determine if it is a goal statestepCostFunction - the step-cost function c(s, a, s') - note that this cannot be
used until the agent knows that s' is the outcomeprotected OnlineSearchProblem()
public ActionsFunction getActionsFunction()
public boolean isGoalState(java.lang.Object state)
true if the given state is a goal state.state - an object representing a statetrue if the given state is a goal state.public StepCostFunction getStepCostFunction()