B C D E F G M P S T V W

B

bridge - package bridge
This package contains classes for implementing a program that allows a user to solve the Bridge Crossing problem.
BridgeConsole - Class in bridge
This class provides a terminal console interface to the Bridge Crossing problem.
BridgeConsole() - Constructor for class bridge.BridgeConsole
 
BridgeMove - Class in bridge
This class represents moves in the Bridge Crossing problem.
BridgeMove(String) - Constructor for class bridge.BridgeMove
Constructs a new bridge move object.
BridgeProblem - Class in bridge
This class represents the Bridge Crossing problem.
BridgeProblem() - Constructor for class bridge.BridgeProblem
Constructs a new bridge problem object.
BridgeState - Class in bridge
This class represents states of the Bridge Crossing problem.
BridgeState(Position, Position, Position, Position, Position, int) - Constructor for class bridge.BridgeState
Creates a new bridge state.

C

Console - Class in framework
This class has methods for interacting with a user who is trying to solve a problem through a console interface.
Console(Problem) - Constructor for class framework.Console
Creates a new problem console user interface.

D

doMove(State) - Method in class bridge.BridgeMove
Attempts to perform this move on a given bridge state.
doMove(State) - Method in class framework.Move
Performs this move on a given state.
doMove(State) - Method in class waterjug.WaterJugMove
Attempts to perform this move on a given water jug state.

E

equals(Object) - Method in class bridge.BridgeState
Compares this bridge state with another for equality.
equals(Object) - Method in interface framework.State
Tests for equality between this state and the argument state.
equals(Object) - Method in class waterjug.WaterJugState
Tests for equality between this state and the argument state.

F

framework - package framework
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
This package contains classes for implementing a program that allows a user to solve the Water Jug problem.
WaterJugConsole - Class in waterjug
This class provides a terminal console interface to the Water Jug problem.
WaterJugConsole() - Constructor for class waterjug.WaterJugConsole
 
WaterJugMove - Class in waterjug
This class represents moves in the Water Jug problem.
WaterJugMove(String) - Constructor for class waterjug.WaterJugMove
Constructs a new water jug move object.
WaterJugProblem - Class in waterjug
This class represents the Water Jug problem.
WaterJugProblem() - Constructor for class waterjug.WaterJugProblem
Constructs a new water jug problem object.
WaterJugState - Class in waterjug
This class represents states of the Water Jug problem.
WaterJugState() - Constructor for class waterjug.WaterJugState
 

B C D E F G M P S T V W