public abstract class PowerGraphInstance extends PuzzleInstance
| Constructor and Description |
|---|
PowerGraphInstance() |
PowerGraphInstance(PowerGraphInstance c) |
| Modifier and Type | Method and Description |
|---|---|
void |
coverMultipleVertices(java.util.ArrayList<Vertex> vertices) |
void |
coverVertex(Vertex v) |
int |
getNumberOfVerticesChosen() |
java.lang.String |
getProcessedSolution()
Probably not used.
|
int |
getScore()
Return the current score of the active game.
|
PuzzleInstance |
getTryItInstanceForUseOnPlayScreen()
What kind of puzzle should the TryIt button produce? Return null if Try it is not applicable
|
int |
getVerticesCoveredAndChosen() |
boolean |
isEventForThisPuzzleType(Event<?> e)
Return true iff this event is of type T.
|
boolean |
isSolutionRefinable()
For optimization problems, for instance, this will return true.
|
boolean |
tryItResultsAreBinding()
Return true only if Try It mode, using the type from getTryItInstance, will produce a result that is AWLAYS valid
for the puzzle type.
|
void |
uncoverMultipleVertices(java.util.ArrayList<Vertex> vertices) |
void |
uncoverVertex(Vertex v) |
java.lang.String |
uniqueIdentifier(Vertex v)
Return a string that represents the data related to the given Vertex in a way that is different if the data is
different.
|
void |
updateStateBasedOnAlgorithmResult(java.lang.String algorithmResult)
Updates the algorithm's state based on the algorithm result.
|
boolean |
usesAlgorithms()
If the game related to this problem requires running algorithms, this should return true.
|
addDoppelganger, addGraph, addGraphWithData, addToSelected, addToSelected, addVertex, canRedo, canUndo, checkAndHandlePuzzleCompletion, clearAllSelections, clearHistory, clearTutorial, computeGlobalPoints, connectAllSelectedVertices, connectToSelected, convertMovesToTutorial, copyPuzzle, copyPuzzleSoItHasInitialStateTheSameAsMyCurrentState, copyRequested, copySelected, createNewVertexForPuzzle, currentPuzzleDataToString, deleteSelected, disableHistory, disconnectFromSelected, disconnectSelected, doNotRecordGraphEvents, enableHistory, endGame, forceRedo, getAttemptName, getBasePoints, getCurrentAnnotation, getCurrentMoveOverview, getCurrentUndoableEvent, getData, getDefaultVertexDataObject, getDescription, getDiameter, getDifficultyLevel, getEdgeDataClassName, getEditHelpClassName, getEditorClassName, getFamilyName, getFirstSelected, getFirstTimeBonus, getGameName, getGlobalBest, getGraph, getHelpClassName, getHighScoreBonus, getImprovementBonus, getInstanceClassName, getInterestingTutorialVertices, getMaximumXCoordinate, getMaximumYCoordinate, getMessage, getMinimumSelectedXCoordinate, getMinimumSelectedYCoordinate, getMinimumXCoordinate, getMinimumYCoordinate, getMode, getNumberOfEdges, getNumberOfMoves, getNumberOfVertices, getNumberSelected, getOldHighScore, getPersonalBest, getPlayClassName, getPuzzleID, getPuzzleInstanceName, getPuzzleName, getSelectedVertices, getSolution, getSolutionAsString, getSolutionID, getThemeClassName, getTimeTaken, getTopOfUndoStack, getTutorialData, getUserID, getVertexIndex, getVertices, getVisibility, getVisibleSources, goToNextEvent, grossHistoryDeleteLastEvent, grossHistoryGetLastAddedEvent, grossHistoryGetNextEvent, grossHistoryGetNextEventIndex, grossHistoryIsSaved, grossHistoryIteratorAtBeginning, grossHistoryIteratorAtEnd, grossHistoryNext, grossHistoryPrevious, grossHistorySetSaved, grossHistorySize, grossHistoryToBeginning, grossHistoryToEnd, initialPuzzleDataToString, isCurrentStateValidSolution, isFinishable, isInReplayOrEditTutorialMode, isLocked, isLowerScoreBetter, isPlayable, isSaved, isShowIndices, isSpecialCopyOK, isTutorial, isValidToTranslationSelection, isVisibleSource, makeCurrentStateInitialState, moveGraphEnded, moveSelectedVerticesEnded, moveStarted, pasteAndConnectCopyOfSelected, pasteCopyOfSelected, performEvents, performEvents, performTutorialEvents, reallySetLocked, recordGraphEvents, redo, removeFromSelected, removeFromSelected, resetVerticesToInitialLocations, restart, runAlgorithms, runuTryIt, selectAll, sendAlgorithmResult, sendMeaninglessEvent, setAttemptName, setData, setDefaultData, setDescription, setFinishable, setGlobalBest, setGraph, setInReplayOrEditTutorialMode, setLocked, setMessage, setMode, setPersonalBest, setPlayable, setPuzzle, setPuzzleID, setPuzzleName, setSaved, setShowIndices, setSolutionData, setSolutionID, setSolutionInformation, setUserID, setVisibleSources, startTimer, stopTimer, stringToPuzzleData, submit, toggleSelected, tutorialModeEnabled, undo, update, updateTimeTakenpublic PowerGraphInstance()
public PowerGraphInstance(PowerGraphInstance c)
public void coverVertex(Vertex v)
public void coverMultipleVertices(java.util.ArrayList<Vertex> vertices)
public void uncoverVertex(Vertex v)
public void uncoverMultipleVertices(java.util.ArrayList<Vertex> vertices)
public int getVerticesCoveredAndChosen()
public int getNumberOfVerticesChosen()
public boolean isEventForThisPuzzleType(Event<?> e)
PuzzleInstanceisEventForThisPuzzleType in class PuzzleInstancepublic boolean isSolutionRefinable()
PuzzleInstanceisSolutionRefinable in class PuzzleInstancepublic PuzzleInstance getTryItInstanceForUseOnPlayScreen()
PuzzleInstancegetTryItInstanceForUseOnPlayScreen in class PuzzleInstancepublic boolean tryItResultsAreBinding()
PuzzleInstancetryItResultsAreBinding in class PuzzleInstancepublic int getScore()
PuzzleInstancegetScore in class PuzzleInstancepublic boolean usesAlgorithms()
PuzzleInstanceusesAlgorithms in class PuzzleInstancepublic void updateStateBasedOnAlgorithmResult(java.lang.String algorithmResult)
PuzzleInstanceupdateStateBasedOnAlgorithmResult in class PuzzleInstancealgorithmResult - a boolean that describes the result of the algorithm.public java.lang.String getProcessedSolution()
getProcessedSolution in class PuzzleInstancepublic java.lang.String uniqueIdentifier(Vertex v)
PuzzleInstanceuniqueIdentifier in class PuzzleInstance