public class BasicHistory extends HistorySupport
| Modifier and Type | Field and Description |
|---|---|
protected ListIterator<SolutionSet> |
currentSolution
The iterator identifying the current solution set.
|
protected List<SolutionSet> |
solutionSets
The list of solution sets.
|
initSchema_, inputs_, propertyChangeSupport, stateSchema_| Constructor and Description |
|---|
BasicHistory()
Basic constructor, initialises the list of solution sets to empty.
|
BasicHistory(String stateSchema,
String initSchema) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateSchema(String schemaName)
Performs an operation from the current solution.
|
SolutionSet |
getCurrentSolutionSet()
Returns the current solution set.
|
String |
getPositionLabel()
Gives a label identifying the position in the history for use in GUI
display.
|
boolean |
hasNextSolutionSet() |
boolean |
hasPreviousSolutionSet() |
void |
nextSolutionSet()
Moves to the next solution set.
|
void |
previousSolutionSet()
Moves to the previous solution set.
|
addInput, addInput, addInput, addPropertyChangeListener, addPropertyChangeListener, getCurrentSolution, getInitSchema, getInputs, getPropertyChangeListeners, getPropertyChangeListeners, getStateSchema, hasCurrentSolution, hasListeners, hasNextSolution, hasPreviousSolution, nextSolution, previousSolution, removePropertyChangeListener, removePropertyChangeListener, setInitSchema, setStateSchemaprotected List<SolutionSet> solutionSets
protected ListIterator<SolutionSet> currentSolution
ListIterators identify a point between elements, and
not a current element:
the current solution is considered to be the one that would be returned by
currentSolution.next().
This leads to a lot of extra fluffing around, so any code subclassing
BasicHistory would do better to go through the public functions
BasicHistory provides.public BasicHistory()
History.activateSchema(String)public SolutionSet getCurrentSolutionSet()
HistorygetCurrentSolutionSet in interface HistorygetCurrentSolutionSet in class HistorySupportpublic void activateSchema(String schemaName)
HistoryactivateSchema in interface HistoryactivateSchema in class HistorySupportpublic boolean hasNextSolutionSet()
public void nextSolutionSet()
public boolean hasPreviousSolutionSet()
public void previousSolutionSet()
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.