java.lang.Object
org.gsusers.gsmv.steps.AnaGroups
Manages G-Analysis by taking the user step-by-step
through the whole procedure from entering the project title to
performing an arbitrary number of D-Studies. Altogether there are 10 steps,
and proceeding to the next step is only possible after 'grammatically'
correct input. Obviously, users can still enter parameters that do not correspond to
their actual study. At each step a context specific help screen is available.
As result of the user responses at a given step, the entered data are stored, and the GUI
scene for the next step is generated, and handed via 'main' back to the GUI.
Users can step through the analysis either manually, by entering the design information
via keyboard and mouse, or they can pick the 'do-over' mode, where the program
reads a control file (script), prepared in a previous analysis run, and the user just has
to enter changes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAnaGroups(GS_Application _main, Nest _nest, gsLogger _logger, GS_Controller _controller, Preferences _prefs, Filer _flr) constructor ofAnaGroups -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.GroupAnalysis()'Analysis' extracts the means and estimated variance coefficients from the urGenova output file, and uses them to calculate G-Study and D-Study results see 'VarianceComponents' in the 'Algorithm' section of the explanations.javafx.scene.GroupgetGroup()This method uses the java 'switch/case' construct to make sure that it constructs the correct scene for a given step, based on the data entered previously.javafx.scene.Groupthis is the crucial step 9 where urGENOVA is tasked with calculating the estimates of variance coefficients for all facets and their appropriate combinations.voidsaveAll()In response to GUI saves all the analysis results in a text file according to user's instructions.voidsetReplicate(Boolean _bRep) Setter for replication flagjavafx.scene.GroupG_String cycles through 'setSampleSize' until all the sample sizes for all facets (in hierarchical order) have been collected, when the variable 'bDawdle' turns to 'false'.
-
Constructor Details
-
AnaGroups
public AnaGroups(GS_Application _main, Nest _nest, gsLogger _logger, GS_Controller _controller, Preferences _prefs, Filer _flr) constructor ofAnaGroups- Parameters:
_main- pointer tomainmethod of classMain_nest-Nest_logger- pointer to org.gs_users.gs_lv.GS_Application logger_controller-rootLayoutController_prefs-Preferences_flr-Filer
-
-
Method Details
-
getGroup
public javafx.scene.Group getGroup()This method uses the java 'switch/case' construct to make sure that it constructs the correct scene for a given step, based on the data entered previously. This scene is then handed back to 'main' that passes it to the GUI. The 'popup' call at each step collects ongoing status information, that can be optionally fed to a log file for diagnostic use. At each step 'getGroup' returns a JavaFX Group object, constructed as result of the cumulative information entered. The 'Group' goes to 'Main', where it is packaged into a JavaFX 'Scene', which is then handed to the 'rootLayoutController'. Some steps can generate their 'Group' directly, others need the assistance of further methods contained in this package- Returns:
Groupessentially the 'Scene' to be sent to the GUI
-
setSampleSize
public javafx.scene.Group setSampleSize()G_String cycles through 'setSampleSize' until all the sample sizes for all facets (in hierarchical order) have been collected, when the variable 'bDawdle' turns to 'false'. The actual form is constructed as 'getPage' within 'SampleSizeTree', where the sample sizes are being stored as well.- Returns:
Groupessentially the 'Scene' for setting sample sizes entry to be sent to the GUI
-
runBrennan
public javafx.scene.Group runBrennan()this is the crucial step 9 where urGENOVA is tasked with calculating the estimates of variance coefficients for all facets and their appropriate combinations.- Returns:
Groupessentially the 'Scene' for returning urGENOVA results to be sent to the GUI
-
Analysis
public javafx.scene.Group Analysis()'Analysis' extracts the means and estimated variance coefficients from the urGenova output file, and uses them to calculate G-Study and D-Study results see 'VarianceComponents' in the 'Algorithm' section of the explanations.- Returns:
Groupessentially the 'Scene' for returning G-Study abd D-Study results to be sent to the GUI
-
saveAll
In response to GUI saves all the analysis results in a text file according to user's instructions.- Throws:
IOException- problem in file i/o
-
setReplicate
Setter for replication flag- Parameters:
_bRep- replication flag
-