Package | Description |
---|---|
bridge |
This package contains classes for implementing a program
that allows a user to solve the Bridge Crossing problem.
|
Modifier and Type | Method and Description |
---|---|
Position |
BridgeState.getFlashlightPosition()
Getter (accessor) for the position of the flashlight in this state.
|
Position |
BridgeState.getP10Position()
Getter (accessor) for the position of person P10 in this state.
|
Position |
BridgeState.getP1Position()
Getter (accessor) for the position of person P1 in this state.
|
Position |
BridgeState.getP2Position()
Getter (accessor) for the position of person P2 in this state.
|
Position |
BridgeState.getP5Position()
Getter (accessor) for the position of person P5 in this state.
|
static Position |
Position.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Position[] |
Position.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
BridgeState(Position p1Position,
Position p2Position,
Position flashlightPosition,
Position p5Position,
Position p10Position,
int timeSoFar)
Creates a new bridge state.
|