java.lang.Object
org.gsusers.gsmv.model.Nest
class Nest
Encapsulates the major parameters of the assessment design, and the central variables required for analysis.
Nest
is used in most other classes as common repository to access central variables and parameters.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNest
(gsLogger _logger, GS_Application _myMain, Preferences _prefs) Constructor for classNest
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnchors
(String sValue) parser for reading score anchors from script (SynthGroups).void
addComment
(String _sCommentLine) add commentLine tosalComments
.void
parser for 'Effect' line in analyze scriptvoid
method to collect facet information from scriptsvoid
setter forsFormat
.void
setter forsProcess
void
addVariances
(String sValue) parser for reading variance components from script (SynthGroups).complete()
Test if previous nest setup was completevoid
Create basic dictionary (in original order of facets)void
Setter of Facet arrayvoid
Generates facet combinations responsible for variance components, including their appropriate syntax.void
void
formatResults
(StringBuilder sbResult) This method should probably be in org.gs_users.gs_lv.utilities..filer from a logic point of view but was placed in nests for convenience.void
sets up facet types for generalizability calculationschar
get_cRep()
Getter for cReplicateint
getter for minimal number of replications.char
getter ofiAsterisk
as hierarchical facet order.getter of score ceiling valueString[]
getter for script comments.getter ofsControlFileName
.getter ofsDataFileName
.getter ofbDawdle
.getter forsDictionary
.getter forbDoOver
, i.e.getFacet
(char _cDesignation) facet from char designationgetFacet
(int iOrder) facet from order numbergetter foriFacetCount
.Facet[]
getter for array of all facets.getFloor()
getter of score floor value.getter ofdGrandMeans
.getter forsHDictionary
.int
Getter for number of index columns in data file.getMean()
getter of intended score meanint
Returns missing data countgetter for number of primary Effects (facet nestings)getNestedName
(Integer iSAR) getter of primary Effect name.String[]
Getter of nested names arraygetNestor
(char cF) getter of a facet's 'Nestor' facet.javafx.collections.ObservableList
<String> getNests()
creates observable list of primary nesting from facet input for use in 'nesting grab and drop' (Step 7)getPhi()
getter for Index of Reliability.int
Getter of termination flag (iProblem
).char
Returns designation of replicating facet, or '-' if none.Getter for replication flag.Getter for lowest possible value for number of replications.getter for Replication range (variance)getRho()
getter for Generalizability Coefficient.javafx.scene.Scene
getScene()
getter ofScene
.getter forbSimulate
.Dummy switch constant for internal control This is a VERY IMPORTANT SWITCH! It can only be changed by directly entering the value here.getStep()
getter foriStep
, i.e.getTitle()
getter forsScriptTitle
.getTree()
getter for SampleSizeTree.getVarianceCoefficient
(int i) getter of variance coefficient from array.getter ofbVarianceDawdle
.getVcDim()
getter of variance coefficient array size.void
increments missing data countvoid
conditionaliStep
incrementer.void
saveVariable
(String _sType, String _sTarget, String _sValue) General purpose variable saving method.void
set_cRep
(char _cRep) Setter for cReplicatevoid
setAsterisk
(char _cAsterisk) setter ofiAsterisk
by facet char Designation.void
setComments
(String _comments) setter for script comments.void
setter ofbDawdle
.void
setter forbDoOver
, i.e.void
setFacetCount
(Integer _iFacetCount) setter foriFacetCount
.void
setFacetDesignation
(int iFacetID, char cDesignation) Sets designation char of current facetvoid
setFacetName
(int iFacetID, String sFacetName) Sets name of current facetvoid
setFacetNested
(int iFacetID, Boolean bFacetNested) Sets nested status of current facetvoid
setter ofsFileName
.void
setGrandMeans
(Double _means) setter ofdGrandMeans
.void
setHDictionary
(String _sHDictionary) setter forsHDictionary
.void
setHighlight
(int _iHighLight) Setter for number of index columns in data file.void
Sets facet levels of all facets (for D-Studiesvoid
translates string array from AnaGroups step 7 intoNest
, andSampleSizeTree
data structuresvoid
setOrder()
Essential routine to establish the logic of facet organization.void
setProblem
(int _iProblem) Setter of termination flag (bAbandon
).void
Setter for bReNest (whether nesting info is reused)void
setReplicate
(Boolean _bReplicate) Setter for replication flag.void
setResume
(int _iResume) Sets step, at which AnaGroups has to resume after a design problemvoid
setScene
(javafx.scene.Scene _scene) setter ofScene
.void
setSimulate
(Boolean _bSimulate) setter forbSimulate
- flag 'Simulate' vs 'Analyze'.void
setStage()
setter of primaryStage
.void
setter for step used in AnaGroups and SynthGroups respectively.void
setSubject
(Facet _fSubject) Setter for subject facetvoid
Setter for script titlevoid
setVariance
(String _line) adds newVarianceComponent
tosalVarianceComponents
by parsing ANOVA line from urGENOVA output.void
setVariancecoefficient
(int i, Double _dVC) setter of individual variance coefficient in array.void
setVarianceDawdle
(Boolean _Dawdle) setter ofbVarianceDawdle
.void
show
(javafx.scene.Group _group) passes_group
viamyMain
tocontroller
, i.e.
-
Constructor Details
-
Nest
Constructor for classNest
- Parameters:
_logger
- - pointer org.gs_users.gs_lv.GS_Application logger_myMain
- - pointer to Main class_prefs
- - pointer to Preferences API
-
-
Method Details
-
getFacet
facet from order number- Parameters:
iOrder
- - order in sDictionary- Returns:
- facets.get(iOrder)- Facet object
-
getFacet
facet from char designation- Parameters:
_cDesignation
- - char designation- Returns:
- facets.get(index);
-
getSimulate
getter forbSimulate
.- Returns:
- bSimulate
-
getDictionary
getter forsDictionary
.- Returns:
- sDictionary
-
getHDictionary
getter forsHDictionary
.- Returns:
- sHDictionary
-
setHDictionary
setter forsHDictionary
.- Parameters:
_sHDictionary
- hierarchic facet dictionary
-
setAsterisk
public void setAsterisk(char _cAsterisk) setter ofiAsterisk
by facet char Designation.- Parameters:
_cAsterisk
- char facet designation
-
getAsterisk
public char getAsterisk()getter ofiAsterisk
as hierarchical facet order.- Returns:
- iAsterisk facet index of asterisk
-
get_iMinRep
public int get_iMinRep()getter for minimal number of replications.- Returns:
- iRepMinimum
-
getRepRange
getter for Replication range (variance)- Returns:
- dRepRange
-
incrementSteps
public void incrementSteps()conditionaliStep
incrementer. Depending on theiProblem
switch: -1: exit the program 0: go to the next step greater than 0: go and explain problem -
getStep
getter foriStep
, i.e. position in data entry sequence.- Returns:
- iStep
-
setDoOver
setter forbDoOver
, i.e. 'script' vs 'manual' parameter entry.- Parameters:
_bDoOver
- flag to get input parameters from script
-
getDoOver
getter forbDoOver
, i.e. 'script' vs 'manual' parameter entry.- Returns:
- bDoOver
-
setSimulate
setter forbSimulate
- flag 'Simulate' vs 'Analyze'.- Parameters:
_bSimulate
- flag to do synthesis
-
setTitle
Setter for script title- Parameters:
_sTitle
- String title of control file
-
getFacetCount
getter foriFacetCount
.- Returns:
- iFacetCount
-
setFacetCount
setter foriFacetCount
.- Parameters:
_iFacetCount
- count of facets
-
setSubject
Setter for subject facet- Parameters:
_fSubject
- subject facet
-
setFacetDesignation
public void setFacetDesignation(int iFacetID, char cDesignation) Sets designation char of current facet- Parameters:
iFacetID
- ID of current facetcDesignation
- new facet designation char
-
setFacetName
Sets name of current facet- Parameters:
iFacetID
- iFacetID ID of current facetsFacetName
- new facet name
-
setFacetNested
Sets nested status of current facet- Parameters:
iFacetID
- iFacetID ID of current facetbFacetNested
- new facet status
-
getTitle
getter forsScriptTitle
.- Returns:
- sScriptTitle
-
getComments
getter for script comments.- Returns:
- string array of comments
-
setComments
setter for script comments.- Parameters:
_comments
- flowing text with carriage returns.
-
addComment
add commentLine tosalComments
.- Parameters:
_sCommentLine
- line of comment to be included in script
-
addFacet
method to collect facet information from scripts- Parameters:
_f
- facet to be added
-
addEffect
parser for 'Effect' line in analyze script- Parameters:
_sEffect
- EFFECT describes nested or un-nested configuration of Facets
-
addFormat
public void addFormat()setter forsFormat
. -
addProcess
public void addProcess()setter forsProcess
-
getNests
creates observable list of primary nesting from facet input for use in 'nesting grab and drop' (Step 7)- Returns:
- ObservableList
-
setNests
translates string array from AnaGroups step 7 intoNest
, andSampleSizeTree
data structures- Parameters:
_nests
- primary nested facet combinations
-
setScene
public void setScene(javafx.scene.Scene _scene) setter ofScene
.- Parameters:
_scene
-Scene
to be displayed
-
getScene
public javafx.scene.Scene getScene()getter ofScene
.- Returns:
- scene to be displayed
-
setStage
public void setStage()setter of primaryStage
. -
setFileName
public void setFileName()setter ofsFileName
. -
getDawdle
getter ofbDawdle
.- Returns:
- bDawdle flag to stepper
-
getVarianceDawdle
getter ofbVarianceDawdle
.- Returns:
- bVarianceDawdle
-
setDawdle
setter ofbDawdle
.- Parameters:
_dawdle
- flag to stepper
-
setVarianceDawdle
setter ofbVarianceDawdle
.- Parameters:
_Dawdle
- flag to stepper
-
show
public void show(javafx.scene.Group _group) passes_group
viamyMain
tocontroller
, i.e. GUI.- Parameters:
_group
- display group
-
getControlFileName
getter ofsControlFileName
.- Returns:
- sControlFileName
-
getDataFileName
getter ofsDataFileName
.- Returns:
- sDataFileName
-
setGrandMeans
setter ofdGrandMeans
.- Parameters:
_means
- value of grand mean
-
getGreatMeans
getter ofdGrandMeans
.- Returns:
- dGrandMeans
-
setVariance
adds newVarianceComponent
tosalVarianceComponents
by parsing ANOVA line from urGENOVA output.- Parameters:
_line
- string from ANOVA table
-
setOrder
public void setOrder()Essential routine to establish the logic of facet organization. Is called from AnaGroups and SynthGroups after Nesting step -
fillEffects
public void fillEffects() -
getFacets
getter for array of all facets.- Returns:
- farFacets all facets of the study
-
getNestCount
getter for number of primary Effects (facet nestings)- Returns:
- iNestCount number of primary Effects
-
G_setFacets
public void G_setFacets()sets up facet types for generalizability calculations -
createFacets
public void createFacets()Setter of Facet array -
createDictionary
public void createDictionary()Create basic dictionary (in original order of facets) -
setLevels
public void setLevels()Sets facet levels of all facets (for D-Studies -
saveVariable
General purpose variable saving method.- Parameters:
_sType
- variable type_sTarget
- variable name_sValue
- variable value
-
formatResults
This method should probably be in org.gs_users.gs_lv.utilities..filer from a logic point of view but was placed in nests for convenience. It redacts and formats the prose for G- and D-Studies into the StringBuilder 'sbResult'.- Parameters:
sbResult
- StringBuilder, to which the prose has to be added
-
getRho
getter for Generalizability Coefficient.- Returns:
- dRel Double value of Generalizability Coefficient
-
getPhi
getter for Index of Reliability.- Returns:
- dAbs Double value of Index of Reliability
-
setStep
setter for step used in AnaGroups and SynthGroups respectively.- Parameters:
_iStep
- step in data entry sequence
-
getNestedName
getter of primary Effect name.- Parameters:
iSAR
- index to string array- Returns:
- sarNestedNames[iSAR] primary effect name
-
getNestedNames
Getter of nested names array- Returns:
- nested names array
-
getNestor
getter of a facet's 'Nestor' facet.- Parameters:
cF
- char designation of facet- Returns:
- char designation of Nestor facet
-
setVariancecoefficient
setter of individual variance coefficient in array.- Parameters:
i
- position in array_dVC
- value of variance coefficient.
-
getVarianceCoefficient
getter of variance coefficient from array.- Parameters:
i
- position in array- Returns:
- Double value of variance coefficient
-
getCeiling
getter of score ceiling value- Returns:
- iCeiling
-
getFloor
getter of score floor value.- Returns:
- iFloor
-
getMean
getter of intended score mean- Returns:
- Double value
-
addAnchors
parser for reading score anchors from script (SynthGroups).- Parameters:
sValue
- text line from script
-
addVariances
parser for reading variance components from script (SynthGroups).- Parameters:
sValue
- text line from script
-
getVcDim
getter of variance coefficient array size.- Returns:
- array size
-
getTree
getter for SampleSizeTree.- Returns:
- current SampleSizeTree
-
doComponents
public void doComponents()Generates facet combinations responsible for variance components, including their appropriate syntax. The object is somewhat occult. It gets only called once in steps.SynthGroups.VarianceComponentsGroup line 887. It sets up the string array sarNestedNames in Nest and the 'aNode' array 'nodes' in 'nest'. -
setReplicate
Setter for replication flag.- Parameters:
_bReplicate
- replication flag
-
getReplicate
Getter for replication flag.- Returns:
- replication flag.
-
get_cRep
public char get_cRep()Getter for cReplicate- Returns:
- cReplicate
-
setProblem
public void setProblem(int _iProblem) Setter of termination flag (bAbandon
).- Parameters:
_iProblem
- problem identifier in replication
-
getProblem
public int getProblem()Getter of termination flag (iProblem
).- Returns:
bAbandon
-
set_cRep
public void set_cRep(char _cRep) Setter for cReplicate- Parameters:
_cRep
- cReplicate
-
getRepChar
public char getRepChar()Returns designation of replicating facet, or '-' if none.- Returns:
cReplicate
, or '-'
-
getRepMin
Getter for lowest possible value for number of replications.- Returns:
- iRepMinimum
-
setHighlight
public void setHighlight(int _iHighLight) Setter for number of index columns in data file.- Parameters:
_iHighLight
- offset after index columns
-
getHighLight
public int getHighLight()Getter for number of index columns in data file.- Returns:
- iHighLight offset after index columns;
-
setResume
public void setResume(int _iResume) Sets step, at which AnaGroups has to resume after a design problem- Parameters:
_iResume
- set number to resume at.
-
setReNest
Setter for bReNest (whether nesting info is reused)- Parameters:
_bReNest
- boolean flag
-
getStackTraceMode
Dummy switch constant for internal control This is a VERY IMPORTANT SWITCH! It can only be changed by directly entering the value here. It controls, whether exceptions get logged, or cause a stack trace printout in debugging mode.- Returns:
- Boolean switch for trace mode
-
complete
Test if previous nest setup was complete- Returns:
- true, if complete
-
incrementMissing
public void incrementMissing()increments missing data count -
getMissingDataCount
public int getMissingDataCount()Returns missing data count- Returns:
- int missing data count
-