Set attribute with value
CLEM.Resources.SetAttributeWithValue
Defines an attribute with label and optional value for an individual that supports attributes.

This component is used to set an attribute for an individual when supplying individuals (e.g. Ruminant initial cohorts, purchase breeders, mating sires). It allows for the value to be taken from a normally distributed distribution and limited by minimum and maximum bounds. This component also defines the style of inheritance of the attribute. The Manage ruminant tag activity is used to apply a custom attribute to individuals during the simulation.

The following parameters are used to define this resource component

The name of this attribute. This will be the name or label used to identify this attribute. Care should be taken to ensure the same label is given for this attribute when applied in multiple locations in the model.

This value is provided with the attribute for the individual allowing you to provide individual values for the same attribute across a group of individuals.
The value will depend upon the style of attribute, but this resource component assumes a float (number with decimal point).
This value can be left blank (0) if you only need to determine if the attribute exists on individuals.
Float

The minimum possible value for the attribute. This value will be enforced during the calculation of inherited values

The maximum possible value for the attribute. This value will be enforced during the calculation of inherited values

This standard deviation will be used to determine a stochastic value around the mean (value property) when applied across a population of individuals ensuring each individual in the population get a different values based on the supplied distribution.

This switch will allow the sign (+ve, -ve) provided with the Standard deviation of individuals to specify which tail of the random distribution will be used to determine a stochastic value around the mean (value property). Positive values use the right-hand tail, while negative values use the left hand tail. When this value is FALSE (off) the full (both tails) distribution will be used.

Each attribute is also assigned an inheritance style. This allows the value assigned to an offspring to be calculated from parents' values using the following rules

No value is inherited. The attribute is not passed on to offspring

From mother's value if available

From father's value if available

At least one parent has attribute or least of both parents

At least one parent has attribute or greatest of both parents

Both parents must have attribute and the least value is used

Both parents must have attribute and the greatest value is used

Mean of the attribute value of parents using zero for those without attribute

Mean of the attribute value of parents ignoring those without attribute

Rules for single genetic trait (Punnett square)

This switch determines if this attribute is required on all individuals with various checks and warnings provided.
See also