For each array element
{ \\ start for each element in array element
Get attribute name, Get attribute value, Get Item Class
If attribute name and value are not blank
{ \\ start if attribute name and value are not blank.
If( Location == All)
{
for each locations\\ ( nLocCnt = 1 to MaxLocation)
{
Call function UpdateRuleCounters( attrib name, attrib value,
Count (group/spacing) array point[P6], item class, rule count array point[P7], region id, nLocCnt, attb name array point, attb val array pt, Rule type array point[P8],Attrib count array point[P9],Total release count[P10],
array index)
}\\endfor all locations
}\\endif all location
else \\ for head location
{
Call function UpdateRuleCounters( attrib name, attrib value,
Count (group/spacing) array point[P6], item class, rule count array point[P7], region id, Location, attb name array point, attb val array pt, Rule type array point[P8],Attrib count array point[P9],Total release count[P10],
array index)
}
}//endiif atrribute value and name are blank
}//end for – next array element
Update array Points Counts
This is a function iterative called within Update Rule Counts function block.
Function - UpdateRuleCounters – Pseudo Code (this function is called in Update Rule Counts function block)
Get the items at the decisions location (value passed in)
If (number of items at head > 0)
{ \\ start if items > 0
For each item in head location
{ \\ start for each item in location
Get the attribute value
if(rule type is group)
{
If (the attribute was found and the attribute values match)
{
Increment group count[P6].
}
else
{
group count[P6] = 0;
}
}\\endif rule type group
else if(rule type is Spacing)
{
If (the attribute was found and the attribute values match)
{
Spacing count[P6] = 0;
}
else
{
Increment Spacing count[P6].
}
}\\endif rule type spacing
if (Attribute count point and total release count are configured)
{
If (the attribute was found and the attribute values match)
{
Increment Attribute count[P9].
}
Increment total release count[P10].
}
}\\end for each item in head location
}\\endif number of items at head > 0
Update Counts. |