Autogenerator-Based Modelling Framework for Development of Strategic Games Simulations: Rational Pigs Game Extended
Table 1
Updating functions.
Function
Arguments
Description
try_attrib
attrib1 = parent attribute value1 = value of parent attribute attrib2 = target attribute
Checks the existence of a specified attribute in Specification
read_value
attrib1 = parent attribute value1 = value of parent attribute attrib2 = target attribute value2 = default function value*
Reads the value of a specified attribute
update_value
attrib1 = parent attribute value1 = value of parent attribute attrib2 = target attribute value2 = new attribute value
Updates the value of a specified attribute
update_attrib
attrib1 = parent attribute value1 = value of parent attribute attrib2 = old attribute name attrib3 = new attribute name
Updates the name of a specified attribute
update_add_value
attrib1 = parent attribute value1 = value of parent attribute attrib2 = name of the new attribute value2 = value of the new attribute
Adds the new attribute and value to Specification
update_delete_value
attrib1 = parent attribute value1 = value of parent attribute attrib2 = name of attribute to be deleted value2 = value of attribute to be deleted (condition to be fulfilled for deletion)**
Deletes the attribute and value
If the target value cannot be found.
**Can be replaced by an empty string (= no condition).