Modifier and Type | Class and Description |
---|---|
class |
GenericPebbleController<S extends PebbleInstance> |
class |
PebblePlaceController<S extends PebbleInstance> |
class |
PlayRockItRelatedController<S extends PebbleInstance> |
Modifier and Type | Class and Description |
---|---|
class |
PebbleMoveInstance |
class |
PebblePlaceInstance |
Modifier and Type | Method and Description |
---|---|
void |
PebbleTheme.drawAnimation(java.awt.Graphics g2,
PebbleInstance game) |
void |
PebbleTheme.drawSelectedVertex(java.awt.Graphics2D g2,
PebbleInstance game,
Vertex vertex) |
void |
PebbleTheme.drawVertex(java.awt.Graphics2D g,
PebbleInstance game,
Vertex v) |
int[] |
PebbleTheme.getAnimationStage(Vertex v,
PebbleInstance game) |
java.awt.Color |
PebbleTheme.getEdgeColor(PebbleInstance game,
Vertex a,
Vertex b) |
Constructor and Description |
---|
PebbleMoveInstance(PebbleInstance p) |
PebblePlaceInstance(PebbleInstance p) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<PebbleInstance> |
PebbleAlgorithm.getProblemType() |
Modifier and Type | Method and Description |
---|---|
static int |
Utilities.calculatePebblingNumber(PebbleInstance puzzle)
Run the EfficientPebblingNumberExhaustive algorithm to find the pebbling number of the graph.
|
static int[] |
Utilities.calculateSingleVertexMinimumSolvableConfiguration(PebbleInstance puzzle)
Computes the number of pebbles on each vertex that would guarantee solvability.
|
static java.util.ArrayList<int[]> |
Utilities.findAll2PPViolators(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean fineThreaded) |
static java.util.ArrayList<int[]> |
Utilities.findAllUnsolvableConfigurations(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean isExtendedPuzzle)
Find all unsolvable configurations of numberOfPebbles pebbles placed on numberOfVerticesWithPebbles vertices.
|
static int[] |
Utilities.findFirstUnsolvableConfiguration(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean isExtendedPuzzle) |
Constructor and Description |
---|
EfficientPebbleGraph(PebbleInstance pi) |
Modifier and Type | Method and Description |
---|---|
SingleQValueGeneric |
TwoPebblingExhaustive.createSingleQValueAlgorithm(PebbleInstance p,
int pebNum,
int q)
Deprecated.
|
SingleQValueGeneric |
TwoPebblingBacktracking.createSingleQValueAlgorithm(PebbleInstance p,
int pebNum,
int q)
Deprecated.
|
void |
Check2PebblingSingleQValue.setPuzzleData(PebbleInstance pi)
Deprecated.
If the puzzle is being set by an outside source it can use this method to copy the puzzle.
|
Constructor and Description |
---|
SingleQValueBacktracking(PebbleInstance p,
boolean isExtendedAlready,
int pebNum,
int q)
Deprecated.
|
SingleQValueExhaustive(PebbleInstance p,
boolean isExtendedAlready,
int pebNum,
int q)
Deprecated.
|
SingleQValueGeneric(PebbleInstance p,
int pebNum,
int q)
Deprecated.
This constructor COPIES THE PUZZLE INSTANCE in case the implementing algorithm is threaded or something.
|
Modifier and Type | Method and Description |
---|---|
PebbleInstance |
Island.getPi() |
Modifier and Type | Method and Description |
---|---|
int |
TwoTwoIslandMove.executeMoveOnGraph(PebbleInstance c) |
int |
Move.executeMoveOnGraph(PebbleInstance c)
Attempt execute the current move using the given GraphController.
|
int |
IslandMove.executeMoveOnGraph(PebbleInstance c)
Makes the current move and returns the number of moves made or throws CouldNotCompleteMove if it could not make the move.
|
static java.util.HashSet<Island> |
IslandUtils.getIslands(PebbleInstance pi) |
static PebbleAlgorithmStates |
IslandUtils.isSolvableDiamTwoRec(PebbleInstance pi,
java.util.Set<Vertex> L)
Recursive function that determines if this graph is solvable.
|
static int |
IslandUtils.pebbleAlongPath(PebbleInstance pi,
Path path)
Added by CAC 1/09
|
static int |
IslandUtils.pebbleAlongPaths(PebbleInstance pi,
java.util.Collection<Path> paths)
Pebble along multiple paths.
|
static int |
IslandUtils.pebbleFromIsland(PebbleInstance pi,
Island island,
Vertex v)
Moves a pebble from the island to the vertex, if possible.
|
void |
Island.setPi(PebbleInstance pi) |
Constructor and Description |
---|
Island(PebbleInstance pi) |
Constructor and Description |
---|
PebblingNumberForkJoinTask(int startIndex,
int numPebbles,
int[] config,
PebbleInstance puz,
int pebNumBound) |
PebblingNumberForkJoinTask(int startIndex,
int numPebbles,
int[] config,
PebbleInstance puz,
int pebNumBound,
java.util.concurrent.atomic.AtomicBoolean quitRequested)
This version of the constructor is used so that it passes the same quitRequested boolean object to all of the
tasks that are part of this computation.
|
PebblingNumberForkJoinTask(int startIndex,
int numPebbles,
int[] config,
PebbleInstance puz,
int pebNumBound,
int root)
Use this for rooted pebbling number.
|
PebblingNumberForkJoinTask(int startIndex,
int numPebbles,
int[] config,
PebbleInstance puz,
int pebNumBound,
int root,
java.util.concurrent.atomic.AtomicBoolean quitRequested)
Use this constructor to do rooted pebbling number.
|
Constructor and Description |
---|
GeneralReachabilityAlgorithm(PebbleInstance puzzle,
int root) |
GeneralSolvabilityAlgorithm(PebbleInstance puzzle) |
Constructor and Description |
---|
Find2PPViolators(PebbleInstance puz,
int p,
int q,
boolean fineThreaded)
This constructor COPIES THE PUZZLE INSTANCE in case the implementing algorithm is threaded or something.
|
Find2PPViolatorsSingleQ(PebbleInstance p,
int pebNum,
int q,
boolean findAll,
boolean fineThreaded)
This constructor COPIES THE PUZZLE INSTANCE in case the implementing algorithm is threaded or something.
|
Find2PPViolatorsSingleQ(PebbleInstance p,
int pebNum,
int q,
int numberPebbles,
boolean findAll,
boolean fineThreaded) |
Find2PPViolatorsWithPebblesOnTheseVertices(PebbleInstance puz,
int p,
int[] subsetOfVertices)
This constructor COPIES THE PUZZLE INSTANCE in case the implementing algorithm is threaded or something.
|
Modifier and Type | Class and Description |
---|---|
class |
ConfoundItInstance
The ConfoundIt instance.
|
Modifier and Type | Method and Description |
---|---|
Event<PebbleInstance> |
UnsolvableEvent.inverseEvent() |
Event<PebbleInstance> |
UndoRecycleEvent.inverseEvent() |
Event<PebbleInstance> |
UndoMovePebbleFirstToVertexEvent.inverseEvent() |
Event<PebbleInstance> |
UndoMovePebbleEvent.inverseEvent() |
Event<PebbleInstance> |
UncertainEvent.inverseEvent() |
Event<PebbleInstance> |
SolvableEvent.inverseEvent() |
Event<PebbleInstance> |
RecycleEvent.inverseEvent() |
Event<PebbleInstance> |
PebbleRemovedEvent.inverseEvent() |
Event<PebbleInstance> |
PebblePlacedEvent.inverseEvent() |
Event<PebbleInstance> |
MovePebbleFirstToVertexEvent.inverseEvent() |
Event<PebbleInstance> |
MovePebbleEvent.inverseEvent() |
Event<PebbleInstance> |
ChangeTargetVertexEvent.inverseEvent() |
Modifier and Type | Class and Description |
---|---|
class |
OptimizeItInstance
The OptimizeIt instance.
|
Modifier and Type | Class and Description |
---|---|
class |
ReachItInstance |
Modifier and Type | Method and Description |
---|---|
void |
ReachItTheme.drawAnimation(java.awt.Graphics g2,
PebbleInstance game) |
Modifier and Type | Class and Description |
---|---|
class |
RockItInstance
The PuzzleInstance for Rock It.
|
Constructor and Description |
---|
RockItInstance(PebbleInstance p) |