Serialized Form
parent
ProblemSolver parent
hintMessage
javax.swing.JLabel hintMessage
- A label containing user pertinent information.
inputString
javax.swing.JTextField inputString
- The text field to be used to enter the hint. Future
enhancements include having a ComboBox instead allowing
the edition, revision of previously given hints.
validateButton
javax.swing.JButton validateButton
- The button used to validate the hint entered and start
the processing.
appBrain
Processor appBrain
- processor
appParser
Parser appParser
- parser
status
Status status
- Class containing important application information such as window location,
window size, look and feel, current working directory. The information is
saved in a .ini file on exit and retreived from the disk when opening.
actionManager
ActionManager actionManager
- This class builds the toolbar and the menu bar using a defined set of
actions. Actions allow one to add the same action to both a toolbar
and a menu bar and allow one to disable an action in itself instead of
disabling a JMenuItem and a JButton
gridScrollPane
javax.swing.JScrollPane gridScrollPane
- The scroll pane wrapping the grid. It allows
the user to use a grid bigger than the main window's size.
answerScrollPane
javax.swing.JScrollPane answerScrollPane
- The scroll pane wrapping the grid. It allows
the user to use a grid bigger than the main window's size.
tabbedPane
javax.swing.JTabbedPane tabbedPane
myTools
javax.swing.JToolBar myTools
- The application's toolbar.
myMenuBar
javax.swing.JMenuBar myMenuBar
- The application's menu bar.
myGrid
Grid myGrid
- The grid itself, containing the relationships between
the items
statusLine
StatusPanel statusLine
- Application information displayed at the bottom of the window
inputLine
InputPanel inputLine
- Panel used for inputing/ reviewing hints
statusMessage
javax.swing.JLabel statusMessage
modeMessage
javax.swing.JLabel modeMessage
parent
ProblemSolver parent
parent
ProblemSolver parent
parent
ProblemSolver parent
parent
ProblemSolver parent
saveAnswer
int saveAnswer
parent
ProblemSolver parent
saveAnswer
int saveAnswer
parent
ProblemSolver parent
parent
ProblemSolver parent
grid
Grid grid
parent
ProblemSolver parent
choicePanel
javax.swing.JPanel choicePanel
bg
javax.swing.ButtonGroup bg
categoryRB
javax.swing.JRadioButton categoryRB
rbArray
javax.swing.JRadioButton[] rbArray
parent
ProblemSolver parent
parent
ProblemSolver parent
okButton
javax.swing.JButton okButton
- the Ok button that dismisses the dialog
rowTextField
javax.swing.JTextField[] rowTextField
grid
Grid grid
catIndex
int catIndex
LookAndFeel
java.lang.String LookAndFeel
- String holding the GUI class package for the
corresponding LAF.
toolkit
java.awt.Toolkit toolkit
window
java.awt.Window window
image
java.awt.Image image
myGrid
Grid myGrid
catNumber
int catNumber
- see Grid class for an explanation of this variable.
itemNumber
int itemNumber
- see Grid class for an explanation of this variable.
answersVector
java.util.Vector answersVector
categories
java.lang.String[] categories
- see Grid class for an explanation of this variable.
items
java.lang.String[][] items
- see Grid class for an explanation of this variable.
CELL_WIDTH
int CELL_WIDTH
CELL_HEIGHT
int CELL_HEIGHT
XCatPos
int XCatPos
- Values used for the determination of the screen coordinates.
YCatPos
int YCatPos
- Values used for the determination of the screen coordinates.
XItemPos
int XItemPos
- Values used for the determination of the screen coordinates.
YItemPos
int YItemPos
- Values used for the determination of the screen coordinates.
BORDER
int BORDER
- The size of the border that surrounds the grid.
A translation is used at the end in order to obtain this
border.
clueText
java.lang.String clueText
- Text of the clue as entered in the text box
usage
int usage
- Variable containing the number of times this clue brought
useful information to the puzzle. Typically 1 for normal clues
but possibly several for specialClues which are reassessed
several times. It also provides the user the ability to discover
a useless clue, which for problem creators, is essential information.
although it largely depends on what order the clues are entered. Indeed
one clue (B) can provide two pieces of information, one of which is already
known by and earlier clue (A). Both will then have a "usage" greater than one,
but it can be later discovered that clue A is useless, if clue B is entered
first. There are no mechanism at this time to discover such thing.
Possibly, an "optimize" function could try solving the puzzle with all possible
clue order to determine if any clue is irrelevant.
specialClue
boolean specialClue
- Set to true if the clue is of a special status and needs to be reassessed
several times. The requirements for a clue to be special are the following:
Subject and/or object vectors have mutiple items linked by OR_TOKEN; or
there is the presence of a MORE/LESS relationship.
parent
ProblemSolver parent
myGrid
Grid myGrid
catNumber
int catNumber
- see Grid class for an explanation of this variable.
itemNumber
int itemNumber
- see Grid class for an explanation of this variable.
gridSize
int gridSize
- see Grid class for an explanation of this variable.
categories
java.lang.String[] categories
- see Grid class for an explanation of this variable.
items
java.lang.String[][] items
- see Grid class for an explanation of this variable.
relationsVector
java.util.Vector relationsVector
- A vector containing all the relationships between the
items. It is then used when drawing the component.
It is more efficient than a loop at the beginning of the
problem, but probably less efficient towards the end.
CELL_WIDTH
int CELL_WIDTH
CELL_HEIGHT
int CELL_HEIGHT
X_OFFSET
int X_OFFSET
- The offset required for the side headers and items.
Y_OFFSET
int Y_OFFSET
- The offset required for the top headers and items.
XCatPos
int XCatPos
- Values used for the determination of the screen coordinates.
YCatPos
int YCatPos
- Values used for the determination of the screen coordinates.
XItemPos
int XItemPos
- Values used for the determination of the screen coordinates.
YItemPos
int YItemPos
- Values used for the determination of the screen coordinates.
BORDER
int BORDER
- The size of the border that surrounds the grid.
A translation is used at the end in order to obtain this
border.
H_FACTOR
float H_FACTOR
- Header Factor. The header factor is the factor that
multiplies the cell size in order to obtain the size of the
space left for the headers.
cat1
int cat1
- First category index of the relationship (the smaller
of the two.)
cat2
int cat2
- Second category index of the relationship (the larger
of the two, cannot be the same as cat1.)
item1
int item1
- item index associated with the first category.
item2
int item2
- item index associated with the second category.
value
int value
- value associated with the relationship, such as in the
Constants interface.