public class PuzzleInstanceFactory
extends java.lang.Object
Constructor and Description |
---|
PuzzleInstanceFactory() |
Modifier and Type | Method and Description |
---|---|
static PuzzleInstance |
createBlankPuzzleInstance(Graph graph,
java.lang.String problemName) |
static PuzzleInstance |
createPuzzleInstance(Puzzle dbPuzzle)
Creates an instance based on the first character of the data encoding of the puzzle.
|
static PuzzleInstance |
createPuzzleInstance(Replay replay)
I don't really like having to pass DataSource here, but not sure of a way around it.
|
static <T extends PuzzleInstance> |
createPuzzleInstance(java.lang.String adjacencyList,
java.lang.String vertexCoordinates,
java.lang.String puzzleData) |
public static <T extends PuzzleInstance> T createPuzzleInstance(java.lang.String adjacencyList, java.lang.String vertexCoordinates, java.lang.String puzzleData)
public static PuzzleInstance createBlankPuzzleInstance(Graph graph, java.lang.String problemName)
public static PuzzleInstance createPuzzleInstance(Puzzle dbPuzzle)
dbPuzzle
- public static PuzzleInstance createPuzzleInstance(Replay replay)
ds
- replay
-