Difference between revisions of "Class"

From Testiwiki
Jump to: navigation, search
(small edits)
m
Line 1: Line 1:
 
<accesscontrol>members of projects</accesscontrol>
 
<accesscontrol>members of projects</accesscontrol>
 
[[Category:Universal object]]
 
[[Category:Universal object]]
[[Category:Guidebook]]
+
{{Guidebook}}
 
'''A  class''' is a set of objects that share a common property or properties. The basic structure of a class is the same as for other objects: name, scope, definition, result.
 
'''A  class''' is a set of objects that share a common property or properties. The basic structure of a class is the same as for other objects: name, scope, definition, result.
  

Revision as of 09:03, 30 January 2008

<accesscontrol>members of projects</accesscontrol> A class is a set of objects that share a common property or properties. The basic structure of a class is the same as for other objects: name, scope, definition, result.

Name
Name is the identifier of the object. It also describes the class in a general level.
Scope
A class is created for a practical purpose to act as a storage of a particular property (i.e., a piece of information) that is shared by several objects. Therefore, the scope is driven by this practical purpose. The scope describes the purpose, and consequently defines the particular property in a general level.
Definition
The definition describes the piece(s) of information in full detail and it such a way that its actual content is directly quotable from the other objects (in Mediawiki, as templates). Each piece of actual content may be accompanied by narrative descriptions and discussions. A single piece of information may also be the result of a variable. In such a case, all data and discussions about the variable goes to the variable itself, and only the result is quoted in the definition of the class, together with a discussion why the result is indeed shared by all objects in the class.
Result
The result lists all objects that belong to this class, i.e., share all the properties described in the definition. Therefore, the membership is a secondary thing and is determined by the properties (i.e. the definition) of the class. The class is NOT built around a particular set of objects, describing their common properties, but the other way round. The result contains the discussion about whether a particular object belong to the class or not. This applies also to the objects that were found out not to belong to the class. These discussions are stored and kept available so that there is not a need to have a new discussion if the question arises again.


Class is a specific set, where the set contains all things as items that fulfil a defined criterion. The purpose of a classD↷ in risk assessment is that general knowledge may be attributed to a class, and then it can be utilised in the description of any item (variable) that fulfils the inclusion criterion. This improves the inter-assessment efficiency of risk assessment work.

A class may contain information about e.g. a good function that should be used to calculate the result, or a range of plausible values for a certain type of variable. Examples of these are given below.

A general dose-response function can be a class. For example, the multi-stage model for cancer dose-responses can be defined as

  P(d) = 1-exp(-q0 -q1d -q2d2)

This function has four parameters: q0 (the "background"), q1 (the "slope" at low doses), q2 (the "curvature" parameter) and d (lifetime daily dose of the chemical of interest). The function can be applied to a particular chemical among a wide range of chemical carcinogens, if the chemical-specific parameters q0, q1, and q2 are known. The result attribute of this class is equal to the general form of the multi-stage function. The function is used in the definition/formula attribute of a dose-response variable of a particular chemical, together with the chemical-specific parameters. The result attribute of this variable is the dose-response of the particular chemical, with one parameter, d. This variable can then be applied in a case-specific risk assessment, when the parameter d is replaced by the dose in an exposure scenario in that assessment.

This is an efficient way of organising information: all discussion about the plausibility of the multi-stage model in general is located in the class. Therefore, this discussion is held only once, for all chemicals and all assessments. Also the discussion whether the multi-stage function applies to a particular chemical is located there. The resolution of that discussion applies to all risk assessments on that chemical. The chemical-specific dose-response variable contains the discussion about the best estimates of the chemical-specific parameters. And again, the variable is applicable to all risk assessments on that chemical. A particular risk assessment can focus on estimating the exposures. The whole dose-response part of the assessment is ready-made.


Prior values for variables can also be located in classes. For example, imagine a class "Plausible range of PM2.5 annual average mass concentrations in ambient air." This is a uniform probability distribution of concentrations ranging possibly from 3 µg/m3 (in Antarctic) to 300 µg/m3 (in downtown Delhi). This can be applied in PM2.5 variables for checking for implausible values. The range (i.e., the value of the result attribute of the class) can be located in the definition/data attribute of e.g. a variable "PM2.5 annual average concentration in downtown Kuopio." If we do have measurements from Kuopio, we can do Bayesian updating using the range as the prior. This way, we can operationalise the use of both the case-specific measurements and the general knowledge from the class.

In practice, when new variables are created, they can partly be described using the results of existing classes, as long as the variable belongs to these classes. Possibly there should be a possibility to overrule the class information with case-specific information, if this is explicitly mentioned. However, deviations from the general rule should be defended.

The attributes of a class closely resemble those of a variable. However, the interpretation is slightly different, as can be seen from the table. In addition, the usage of data is not clear at the moment.

Attribute Subattributes Comments
Name Identifier for the class
Scope What is the key property of the class, i.e. the property that is the inclusion criterion
Definition Common properties that are shared by all items in the class. The common properties may be any parts of variable, assessment or class descriptions.
Result List of items (i.e. variables, assessments or classes) belonging to the class


Technical issues about classes in Mediawiki

When we want to describe a general property, we must create a Class category. The class is a set of items that all share this general property. All variables that belong to this class or its subclass are allowed to inherit the property. I say 'are allowed' because this does not happen automatically in Mediawiki: the editor must create the link.

You need two things: a template and a category. The template contains the general property (i.e., the result attribute of the class), and the category defines, which variables or classes belong to this class. All templates that apply to a given class are listed in the category page. In this way, it is easy to find all templates that apply to a variable that belongs to the class. Just define the relevant category, and then go through the descriptions of the category to see whether they contain properties that should be used in the variable or class. Actually, an editor should take a position to all properties applicable to the variable under edition. Not all properties have to be used, but reasons should be given why some were selected and some not. If there is a dispute whether a variable or class belongs to a particular class, this argumentation is located on the Talk page of the particular class, not on the Talk page of the item.

Often there may be several templates describing the same property. They may just be alternative approximations of the actual thing (which is not known perfectly, or it may be impractical to calculate it perfectly), and the choice between them is a matter of practice or convention. However, if there is a true conflict between two properties so that they cannot be true at the same time (not even as approximations), a discussion must be created on the Talk page.