Object-Chain
Multiple types of objects can be managed in the same model library, such as Windows objects, Java objects, cross-platform Qt objects, Linux objects, pattern objects, virtual controls, etc. Usually all nodes in a control tree are of the same type of object, but it is possible to add an object of another type under a tree node object, which is also called adding cascading objects.
Cascading means that one of the objects in the model tree is a child node of another object. It means that when searching for a matching control, you first find the control through the parent object, and when you find the control, you use the child object to search for the matching child control under this found control.
The cascade is divided into the following categories:
objects of a single technology type, such as several objects of the same Windows object, or the same Qt object. They are generated by spying them directly on the application. This scenario is the most common.
The parent node is an object of object identification technique and the child node is a pattern object. The parent control is first positioned using object identification technology, and then the child control is positioned using the pattern object in the visible area of the parent control. The parent control can be positioned to narrow the matching area and improve the accuracy of pattern object matching.
The parent node is the object recognition technology. Child nodes are virtual controls. This can manipulate specific areas of the parent control.
The parent node is the object technology, the child node is the pattern control, and the grandchild node is the virtual control. It is to use the pattern control in the region of the parent control to position the region and then manipulate the specific part of the pattern match.
The parent node is an object technology, the child node is a virtual control, and the grandchild node is a pattern control. It is to delineate a part of the area of the parent control using the virtual control, and then use the pattern object to find the matching area in this part and operate on it.
Pattern controls cascade pattern controls. It is to find a big picture first, and then use the pattern control to find a small picture in this big picture.
In general, the more levels of cascading, the more searches are performed and the longer they may take. However, there are exceptions, such as object recognition techniques cascading pattern objects, which can narrow the pattern search area and therefore potentially reduce the total control search time.