concludeaction to change the value of that icon variable for an instance of the class whenever G2 is running. The appearance of that instance changes to reflect the new value(s). Other instances of the class are unaffected. Changes to icon variable values are permanent: resetting the KB does not reset the value.
G2 performs type checking on all changes to icon variables, and signals an error if you attempt to conclude a value that is incompatible with the icon variable's usage.
heightin an icon description are functionally icon variables already. Therefore, G2 lets you conclude values to them just as you can to icon variables that appear explicitly. This section hereafter refers to
heightas if they were ordinary icon variables.
When you change icon size by concluding values into
height, the maximum allowable value for each dimension is 1000.
z, whose values are all
tank-1exists, and none of these values has been changed by a
conclude, the value of:
tank-1's icon variables to have the values shown.
tank-1's icon variable values are:
current-icon-variables = the icon-variables of tank-1;
change-attribute (current-icon-variables, Z, 30);
conclude that the icon-variables of tank-1 = new-icon-variables; end
concludeaction, you can conclude a structure that references only the icon variables that are to have non-default values.
For example, if the
Tankclass is as described under Referencing Icon Variables, and
tank-2has default values for all icon variables (width: 50, height: 50, x: 0, y: 0, z: 0), executing:
tank-2's icon variables to:
tank-2's icon attributes to:
z, being unspecified in the concluded structure, has reverted from
75to the class default value.