public class NondeterministicProblem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ActionsFunction |
actionsFunction |
protected GoalTest |
goalTest |
protected java.lang.Object |
initialState |
protected ResultFunction |
resultFunction |
protected ResultsFunction |
resultsFunction |
protected StepCostFunction |
stepCostFunction |
Constructor and Description |
---|
NondeterministicProblem(java.lang.Object initialState,
ActionsFunction actionsFunction,
ResultsFunction resultsFunction,
GoalTest goalTest)
Constructor
|
NondeterministicProblem(java.lang.Object initialState,
ActionsFunction actionsFunction,
ResultsFunction resultsFunction,
GoalTest goalTest,
StepCostFunction stepCostFunction)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ActionsFunction |
getActionsFunction()
Returns the description of the possible actions available to the agent.
|
GoalTest |
getGoalTest()
Returns the goal test.
|
java.lang.Object |
getInitialState()
Returns the initial state of the agent.
|
ResultsFunction |
getResultsFunction()
Return the description of what each action does.
|
StepCostFunction |
getStepCostFunction()
Returns the path cost function.
|
boolean |
isGoalState(java.lang.Object state)
Returns
true if the given state is a goal state. |
protected java.lang.Object initialState
protected ActionsFunction actionsFunction
protected ResultFunction resultFunction
protected GoalTest goalTest
protected StepCostFunction stepCostFunction
protected ResultsFunction resultsFunction
public NondeterministicProblem(java.lang.Object initialState, ActionsFunction actionsFunction, ResultsFunction resultsFunction, GoalTest goalTest)
initialState
- actionsFunction
- resultsFunction
- goalTest
- public NondeterministicProblem(java.lang.Object initialState, ActionsFunction actionsFunction, ResultsFunction resultsFunction, GoalTest goalTest, StepCostFunction stepCostFunction)
initialState
- actionsFunction
- resultsFunction
- goalTest
- stepCostFunction
- public java.lang.Object getInitialState()
public boolean isGoalState(java.lang.Object state)
true
if the given state is a goal state.true
if the given state is a goal state.public GoalTest getGoalTest()
public ActionsFunction getActionsFunction()
public ResultsFunction getResultsFunction()
public StepCostFunction getStepCostFunction()