This package contains three classes and an interface
that make up a framework for building applications that allow their users to
solve problems requiring
search.
G
- getCurrentState() -
Method in class framework.Problem
- Gets the current state of the problem.
- getFlashlightPosition() -
Method in class bridge.BridgeState
- Getter (accessor) for the position of the flashlight in this state.
- getIntroduction() -
Method in class framework.Problem
- Gets an explanatory introduction string for the problem.
- getMoveName() -
Method in class framework.Move
- Accessor for this move's name.
- getMoves() -
Method in class framework.Problem
- Gets the list of moves for this problem.
- getP10Position() -
Method in class bridge.BridgeState
- Getter (accessor) for the position of person P10 in this state.
- getP1Position() -
Method in class bridge.BridgeState
- Getter (accessor) for the position of person P1 in this state.
- getP2Position() -
Method in class bridge.BridgeState
- Getter (accessor) for the position of person P2 in this state.
- getP5Position() -
Method in class bridge.BridgeState
- Getter (accessor) for the position of person P5 in this state.
- getTimeSoFar() -
Method in class bridge.BridgeState
- Getter (accessor) for the time taken to get to this state.
M
- main(String[]) -
Static method in class bridge.BridgeConsole
- This method launches the console.
- main(String[]) -
Static method in class waterjug.WaterJugConsole
- This method launches the console.
- Move - Class in framework
- This abstract class represents a move in a problem solving domain.
- Move(String) -
Constructor for class framework.Move
- Creates a problem move, storing the move name.
P
- Position - Enum in bridge
- An enumerated type whose values indicate sides of the bridge in the bridge problem.
- Problem - Class in framework
- This abstract class represents a problem in a problem solving domain.
- Problem() -
Constructor for class framework.Problem
-
S
- setCurrentState(State) -
Method in class framework.Problem
- Sets the current state of the problem.
- setIntroduction(String) -
Method in class framework.Problem
- Sets the introduction string for this problem.
- setMoves(List<Move>) -
Method in class framework.Problem
- Sets the list of moves for this problem.
- start() -
Method in class framework.Console
- Displays the introduction and begins to process user moves.
- State - Interface in framework
- This interface represents the state of affairs of a problem-solving
domain.
- success() -
Method in class bridge.BridgeProblem
- Returns whether the current state of this problem is a success.
- success() -
Method in class framework.Problem
- Determines whether the current state of this problem is a success.
- success() -
Method in class waterjug.WaterJugProblem
- Returns whether the current state of this problem is a success.
T
- toString() -
Method in class bridge.BridgeState
- Creates a string representation of this state for display to the user
trying to solve the problem.
- toString() -
Method in interface framework.State
- Creates a primitive, non-GUI representation of this State object.
- toString() -
Method in class waterjug.WaterJugState
- Creates a primitive, non-GUI representation of this WaterJugState object.
V
- valueOf(String) -
Static method in enum bridge.Position
- Returns the enum constant of this type with the specified name.
- values() -
Static method in enum bridge.Position
- Returns an array containing the constants of this enum type, in
the order they are declared.
W
- waterjug - package waterjug