摘要:
为了解决分布复杂机电系统网络模型图的自动生成问题,提出了一种新的基于结构空间的网络图形生成算法:通过定义一个特殊的数据结构用来保存网络模型的基础信息,再按照不同的标准对这些信息进行反复搜索与提取操作,获得的结果分别保存在定义的多个集合中,形成不同的集合分类;根据集合元素的数量以及集合间的关系对集合元素进行迭代计算,不断地辨识每个集合元素的属性和参数,并逐步完成其整个图形绘制.使用网络模型绘制例子对所提出的算法进行了验证,结果表明:此算法具有可行性,能够很好地满足实际需求;同时具有通用性,能够作为共性技术进行推广与应用.
Abstract:
A novel algorithm based on a structure space was presented to realize any automatic network model graph generation for complex systems,in order to solve the problem that the distribution network model of complex electromechanical system automatically generates graphs.A structure space is designed as a special data structure,which is used to save the basic information of the network model graph.Then different sets are defined to manage the classified information in the structure space according to certain operating sequence.The drawn model graph is based on classification sets,which contains the computing and the drawing of graphic objects.In the drawing process,the iterative calculation is used,and the whole graph is displayed with the nodes,relationships,and parameters eventually.Finally,a network model is used to draw an example illustrate the proposed algorithm.It shows that the proposed algorithm is feasible and may satisfy the realistic requirements.Simultaneously,it is discovered that the auto-generation arithmetic for the network model graph has a good universality,and can be widely extended in the application.