Class AnaGroups

java.lang.Object
org.gsusers.gsmv.steps.AnaGroups

public class AnaGroups extends Object
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

    Constructors
    Constructor
    Description
    AnaGroups(GS_Application _main, Nest _nest, gsLogger _logger, GS_Controller _controller, Preferences _prefs, Filer _flr)
    constructor of AnaGroups
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.Group
    '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.Group
    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.Group
    this is the crucial step 9 where urGENOVA is tasked with calculating the estimates of variance coefficients for all facets and their appropriate combinations.
    void
    In response to GUI saves all the analysis results in a text file according to user's instructions.
    void
    Setter for replication flag
    javafx.scene.Group
    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'.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnaGroups

      public AnaGroups(GS_Application _main, Nest _nest, gsLogger _logger, GS_Controller _controller, Preferences _prefs, Filer _flr)
      constructor of AnaGroups
      Parameters:
      _main - pointer to main method of class Main
      _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:
      Group essentially 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:
      Group essentially 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:
      Group essentially 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:
      Group essentially the 'Scene' for returning G-Study abd D-Study results to be sent to the GUI
    • saveAll

      public void saveAll() throws IOException
      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

      public void setReplicate(Boolean _bRep)
      Setter for replication flag
      Parameters:
      _bRep - replication flag