java.lang.Object
org.gsusers.gsmv.model.Facet
the class 'Facet' encapsulates the various parameters for each facet;
as well as the various methods required
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNestee
(char cNestee) adds 'Nestee', facets nested in the current facet.Getter of FacetLevel (Double).void
Sets up nesting configuration based on the nesting input, this method determines the nestor/nestees relationshipschar
Returns facet designation.Getter of cDesignation as String.Getter for facet designation, whether it is fixed or random, and Level (average sample size).Getter for FacetLevel, the appropriate sample size average for a given facet, used in D-Studies.char
Getter for facet type.getFixed()
Getter of 'Fixed' status.getName()
Getter for facet name.Getter of 'nested status'.Getter of 'Nestor'.getOrder()
Getter for facet order within sHDirectory.void
setAsterisk
(Boolean _bAsterisk) Setter of bAsterisk.void
setDesignation
(char _cDesignation) Setter for symbolic character designating the facet, usually the lower case initial of the name.void
setdFacetLevel
(Double _dLevel) Setter of FacetLevel (Double).void
Calculates levels for G studies for facets of generalization: simple mean of sample sizes for 1 level of nesting, harmonic mean for higher levels of nesting.void
setFacetType
(char _cFacetType) Setter of 'facetType', defined above in the variable list.void
Setter for bFixed.void
Setter for the hierarchical order in which the facets increment in the data file, and it is in 'sHDictionary'.void
Setter for facet name, descriptive single word with upper case initial.void
Setter for 'isNested', 'true' if facet nested in another.void
setNestor
(char cFacet) Setter of 'Nestor', i.e.starred()
Getter for presence of facet asterisk.
-
Constructor Details
-
Facet
Constructor for empty facet- Parameters:
_nest
- ;
-
Facet
Constructor for defined facet.- Parameters:
_nest
- ;_sName
- ;_cDesignation
- ;_bIsNested
- ;
-
-
Method Details
-
setName
Setter for facet name, descriptive single word with upper case initial.- Parameters:
_sName
- ;
-
setDesignation
public void setDesignation(char _cDesignation) Setter for symbolic character designating the facet, usually the lower case initial of the name.- Parameters:
_cDesignation
- ;
-
setNested
Setter for 'isNested', 'true' if facet nested in another.- Parameters:
_bIsNested
- ;
-
setID
Setter for the hierarchical order in which the facets increment in the data file, and it is in 'sHDictionary'.- Parameters:
_id
- ;
-
setNestor
public void setNestor(char cFacet) Setter of 'Nestor', i.e. the facet in which the current facet is nested.- Parameters:
cFacet
- ;
-
setFacetType
public void setFacetType(char _cFacetType) Setter of 'facetType', defined above in the variable list. The facet type is essential for the calculation of variance components and G-coefficients.- Parameters:
_cFacetType
- ;
-
setAsterisk
Setter of bAsterisk.- Parameters:
_bAsterisk
- ;
-
setFixed
Setter for bFixed.- Parameters:
_bFixed
- ;
-
getName
Getter for facet name.- Returns:
- sName;
-
getDesignation
public char getDesignation()Returns facet designation.- Returns:
- cDesignation;
-
getDiagDesignation
Getter for facet designation, whether it is fixed or random, and Level (average sample size).- Returns:
- sb.toString;
-
getDesignationString
Getter of cDesignation as String.- Returns:
- String.valueOf(cDesignation);
-
getNested
Getter of 'nested status'.- Returns:
- bIsNested;
-
getNestor
Getter of 'Nestor'.- Returns:
- cNestor;
-
getFixed
Getter of 'Fixed' status.- Returns:
- bFixed;
-
getOrder
Getter for facet order within sHDirectory.- Returns:
- iOrder;
-
getFacetType
public char getFacetType()Getter for facet type.- Returns:
- cFacetType;
-
getFacetLevel
Getter for FacetLevel, the appropriate sample size average for a given facet, used in D-Studies.- Returns:
- Double value of level
-
starred
Getter for presence of facet asterisk.- Returns:
- bAsterisk;
-
setFacetLevel
public void setFacetLevel()Calculates levels for G studies for facets of generalization: simple mean of sample sizes for 1 level of nesting, harmonic mean for higher levels of nesting. -
setdFacetLevel
Setter of FacetLevel (Double).- Parameters:
_dLevel
- ;
-
dGetLevel
Getter of FacetLevel (Double).- Returns:
- dFacetLevel;
-
doNesting
Sets up nesting configuration based on the nesting input, this method determines the nestor/nestees relationships- Parameters:
sComponent
- ;
-
addNestee
public void addNestee(char cNestee) adds 'Nestee', facets nested in the current facet.- Parameters:
cNestee
- ;
-