CN100499503C - Equipment pattern exhibiting method and apparatus - Google Patents

Equipment pattern exhibiting method and apparatus Download PDF

Info

Publication number
CN100499503C
CN100499503C CNB2006101039413A CN200610103941A CN100499503C CN 100499503 C CN100499503 C CN 100499503C CN B2006101039413 A CNB2006101039413 A CN B2006101039413A CN 200610103941 A CN200610103941 A CN 200610103941A CN 100499503 C CN100499503 C CN 100499503C
Authority
CN
China
Prior art keywords
slot
scale
frame
model
chassis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006101039413A
Other languages
Chinese (zh)
Other versions
CN101114934A (en
Inventor
王润松
林泽锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006101039413A priority Critical patent/CN100499503C/en
Priority to PCT/CN2007/001168 priority patent/WO2008014651A1/en
Publication of CN101114934A publication Critical patent/CN101114934A/en
Application granted granted Critical
Publication of CN100499503C publication Critical patent/CN100499503C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00—Two-dimensional [2D] image generation
    • G06T11/20—Drawing from basic elements
    • G06T11/26—Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Numerical Control (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明公开了一种设备图形展现方法,包括步骤:根据机框内槽的位置结构建立与设备实际机框对应的机框模型,并计算机框内各槽的位置在机框模型中所占的比例尺;将计算得到的槽位比例尺信息存储到数据库中;当需要查看设备结构时,获取该设备对应的所有机框模型及其槽位比例尺信息;根据所述槽位比例尺信息生成该设备的展现图形。本发明还公开了一种设备图形展现装置,包括:机框模型建立模块、存储模块、查询模块、图形生成模块。利用本发明,可以简单、有效地展现各种设备的结构。

Figure 200610103941

The invention discloses a method for displaying equipment graphics, comprising the steps of: establishing a machine frame model corresponding to the actual machine frame of the equipment according to the position structure of slots in the machine frame, and calculating the position of each slot in the machine frame in the machine frame model Scale; store the calculated slot scale information in the database; when it is necessary to view the device structure, obtain all the chassis models corresponding to the device and their slot scale information; generate the display of the device according to the slot scale information graphics. The invention also discloses a device graphic display device, which includes: a machine frame model building module, a storage module, a query module, and a graphic generation module. Utilizing the invention, the structures of various devices can be displayed simply and effectively.

Figure 200610103941

Description

设备图形展现方法及装置 Graphic display method and device for equipment

技术领域 technical field

本发明涉及网络管理技术领域,具体涉及一种设备图形展现方法及装置。The invention relates to the technical field of network management, in particular to a method and device for displaying device graphics.

背景技术 Background technique

随着通讯业务高速发展,网络建设的规模越来越大,结构也越来越复杂。因此,有效地对网络及资源进行管理是保证网络正常运行的关键之一。设备管理作为资源管理中最核心的部分,需要对每个板、每个端口都能进行有效地管理。With the rapid development of communication services, the scale of network construction is getting larger and larger, and the structure is becoming more and more complex. Therefore, effectively managing the network and resources is one of the keys to ensure the normal operation of the network. As the core part of resource management, device management needs to be able to effectively manage each board and each port.

一个设备中往往有多个机框,每个机框上有多个槽,用于插入板,每个板上还有多个端口,如图1所示:There are often multiple chassis in a device, and each chassis has multiple slots for inserting boards, and each board has multiple ports, as shown in Figure 1:

设备S1上有5个机框,第三个机框S13中有5个槽,第二个槽S132中的板上设有多个端口。The device S1 has 5 subracks, the third subrack S13 has 5 slots, and the board in the second slot S132 is provided with multiple ports.

在大型的数据管理系统中,特别是在电信运营管理系统中,对于真实设备,如果单单从表格形式的数据来看,很难和设备的实际结构及资源使用情况对应起来。因此,大多采用图形方式来展现设备的结构及资源使用情况。In a large-scale data management system, especially in a telecom operation management system, it is difficult to correspond to the actual structure and resource usage of real equipment if we only look at the data in tabular form. Therefore, most of them use graphics to show the structure of the device and the usage of resources.

如图2所示,在现有技术中,通常利用从设备→机框,机框→槽,槽→板的关系来体现它们之间的关联情况,并通过图形展现出来。As shown in FIG. 2 , in the prior art, the relationship between them is usually represented by using the relationship from device→frame, frame→slot, and slot→board, and displays them graphically.

目前,随着业务功能的增加,新型的设备不断推出,设备的形状和种类也不断在增多。这种单一的展现方式,对特殊设备无法准确展现。比如,一个由两个机框组成的设备,其中两个机框中的板的位置并不是全部水平放置,而且板的大小和形状不一致的情况下,现有的图形展现技术就无法按照真实的设备结构来显示,给设备的施工及生产带来不便。At present, with the increase of business functions, new types of equipment are constantly introduced, and the shapes and types of equipment are also increasing. This single display method cannot accurately display special equipment. For example, in a device consisting of two machine frames, if the positions of the boards in the two machine frames are not all placed horizontally, and the size and shape of the boards are inconsistent, the existing graphic display technology cannot follow the real The display of the equipment structure brings inconvenience to the construction and production of the equipment.

发明内容 Contents of the invention

本发明的主要目的是提供一种设备图形展现方法,以解决现有技术中展现方式单一、不能展现复杂设备真实结构状况的问题,真实展现各种设备的结构。The main purpose of the present invention is to provide a device graphics display method to solve the problems in the prior art that the display method is single and the real structure of complex devices cannot be displayed, and to truly display the structures of various devices.

本发明的另一个目的是提供一种设备图形展现装置,以简单、有效地展现各种设备的结构。Another object of the present invention is to provide a device graphic display device to simply and effectively display the structures of various devices.

为此,本发明提供如下的技术方案:For this reason, the present invention provides following technical scheme:

一种设备图形展现方法,所述方法包括步骤:A device graphic presentation method, the method comprising the steps of:

根据机框内槽的位置结构建立与设备实际机框对应的机框模型,并计算机框内各槽的位置在机框模型中所占的比例尺;Establish a frame model corresponding to the actual frame of the equipment according to the position structure of the slots in the frame, and calculate the scale of the position of each slot in the frame in the frame model;

将计算得到的槽位比例尺信息存储到数据库中;当需要查看设备结构时,获取该设备对应的机框模型及其槽位比例尺信息;Store the calculated slot scale information in the database; when it is necessary to view the equipment structure, obtain the corresponding chassis model and slot scale information of the equipment;

根据获取的槽位比例尺信息生成该设备的展现图形。Generate the display graphics of the device according to the obtained slot scale information.

所述计算各槽在机框模型中所占的比例尺的步骤包括:The step of calculating the scale occupied by each slot in the chassis model includes:

确定各槽的顶点坐标;Determine the vertex coordinates of each slot;

根据所述顶点坐标分别计算该槽的宽度与机框宽度的比例、以及该槽的高度与机框高度的比例。The ratio of the width of the slot to the width of the machine frame and the ratio of the height of the slot to the height of the machine frame are respectively calculated according to the coordinates of the vertices.

优选地,所述方法进一步包括:Preferably, the method further comprises:

预先配置网络内各设备对应的机框模型编号及其排列顺序。Pre-configure the chassis model number and arrangement sequence corresponding to each device in the network.

所述获取需查看设备对应的机框模型及其槽位比例尺信息的步骤具体包括:The steps of obtaining the frame model corresponding to the device to be viewed and the slot scale information specifically include:

根据网络中的配置信息获取所述设备对应的机框模型的编号及其排列顺序;Acquiring the serial number and arrangement sequence of the chassis model corresponding to the device according to the configuration information in the network;

依序从存储的槽位比例尺信息中获取与机框模型编号对应的机框模型及其槽位比例尺信息。The chassis model and slot scale information corresponding to the chassis model number are sequentially acquired from the stored slot scale information.

所述根据获取的槽位比例尺信息生成该设备的展现图形的步骤进一步包括:The step of generating the display graphics of the device according to the obtained slot scale information further includes:

确定各机框的顶点坐标;Determine the vertex coordinates of each machine frame;

根据所述槽位比例尺信息依次确定机框中各槽的顶点坐标、宽度、高度;Determine the vertex coordinates, width and height of each slot in the machine frame in turn according to the slot scale information;

根据所述确定的机框中各槽的顶点坐标、宽度、高度画出各机框。Draw each machine frame according to the determined vertex coordinates, width, and height of each slot in the machine frame.

所述根据确定的机框中各槽的顶点坐标、宽度、高度画出各机框的步骤包括:The step of drawing each machine frame according to the apex coordinates, width and height of each groove in the determined machine frame includes:

根据实际配置的各槽位是否插板标识各机框中槽的插板状态。Indicates the board status of the slots in each shelf according to whether each slot is actually configured with a board.

所述槽位比例尺信息包括:The slot scale information includes:

槽的横坐标比例尺,槽的纵坐标比例尺,槽的宽度比例尺,槽的高度比例尺。The abscissa scale of the slot, the ordinate scale of the slot, the width scale of the slot, and the height scale of the slot.

一种设备图形展现装置,所述装置包括:A device graphic display device, the device comprising:

机框模型建立模块,用于建立各种机框模型;The frame model building module is used to build various frame models;

存储模块,存储各机框模型中的槽位比例尺信息;A storage module for storing slot scale information in each chassis model;

查询模块,用于从所述存储模块中获取设备对应的所有机框模型及其槽位比例尺信息;A query module, configured to obtain all chassis models and slot scale information corresponding to the device from the storage module;

图形生成模块,与所述查询模块相连,用于根据所述槽位比例尺信息生成该设备的展现图形;A graphic generation module, connected to the query module, for generating a display graphic of the device according to the slot scale information;

所述机框模型建立模块包括:The frame model building module includes:

比例尺计算模块,用于计算各槽在机框模型中所占的比例尺;A scale calculation module, configured to calculate the scale occupied by each slot in the frame model;

写入模块,用于将所述比例尺信息写入所述存储模块。a writing module, configured to write the scale information into the storage module.

所述图形生成模块包括:The graphic generation module includes:

槽位置计算模块,用于根据所述槽位比例尺信息计算槽的顶点坐标、宽度、高度;Groove position calculation module, used to calculate the vertex coordinates, width and height of the groove according to the groove position scale information;

绘图模块,用于根据所述槽位置计算模块计算出的槽的顶点坐标、宽度、高度信息画出机框及其中的各槽的图形。The drawing module is used to draw the graphics of the machine frame and the slots therein according to the vertex coordinates, width and height information of the slots calculated by the slot position calculation module.

由以上本发明提供的技术方案可以看出,本发明通过模型化设计,对各种设备内不同结构的机框对应到相应的机框模型,并存储各机框模型中的槽位比例尺信息。这样,当需要查看网络中的设备结构时,只需从存储的信息中获得该设备对应的所有机框模型及其槽位比例尺信息。然后,根据这些信息,即可自动生成该设备的展现图形。通过这种方式大大减少了设备管理中所需的数据信息,而且只需一次设计,即可方便地展现各种不规则形状的复杂设备图形,提高了设备管理效率。尤其是对于电信企业的资源管理及网络管理,需要管理的设备有上万个,利用本发明,将特定机框模型与其槽位信息绑定,只需管理上百上甚至可以减少到几十个机框模型的数据信息即可。而且,当有新结构机框的设备加入到网络中时,只需增加数据库中的机框模型,大大减少了管理人员的工作量。It can be seen from the above technical solutions provided by the present invention that, through modeling design, the present invention corresponds to the corresponding frame models for different structures in various equipment, and stores the slot scale information in each frame model. In this way, when it is necessary to view the device structure in the network, it is only necessary to obtain all the chassis models and slot scale information corresponding to the device from the stored information. Then, based on this information, the presentation graphics of the device can be automatically generated. In this way, the data information required in equipment management is greatly reduced, and complex equipment graphics of various irregular shapes can be conveniently displayed with only one design, which improves the efficiency of equipment management. Especially for the resource management and network management of telecommunication enterprises, there are tens of thousands of devices to be managed. By using the present invention, the specific chassis model is bound to its slot information, and only need to manage hundreds or even can be reduced to dozens The data information of the chassis model is enough. Moreover, when a device with a new frame structure is added to the network, only the model of the frame in the database needs to be added, which greatly reduces the workload of management personnel.

附图说明 Description of drawings

图1是现有技术中设备内机框、插槽、单板、端口对应关系示意图;FIG. 1 is a schematic diagram of the corresponding relationship between a chassis, a slot, a single board, and a port in a device in the prior art;

图2是现有技术中用图形展示的设备结构示意图;Fig. 2 is a schematic diagram of the device structure shown graphically in the prior art;

图3是本发明方法的一个实施例的实现流程图;Fig. 3 is the implementation flowchart of an embodiment of the inventive method;

图4是本发明方法中建立机框模型的流程图;Fig. 4 is the flowchart of setting up machine frame model in the inventive method;

图5是本发明方法中初始化的图形展现示意图;Fig. 5 is a schematic diagram showing a graph of initialization in the method of the present invention;

图6是基于图5所示初始化的图形设计后的图形展现示意图;FIG. 6 is a schematic diagram of graphic presentation based on the graphic design of initialization shown in FIG. 5;

图7是本发明一个实施例的模拟设计原型示意图;Fig. 7 is a schematic diagram of an analog design prototype of an embodiment of the present invention;

图8是图7所示原型中对应的第一机框的机框模型面板示意图;Fig. 8 is a schematic diagram of a frame model panel of the corresponding first frame in the prototype shown in Fig. 7;

图9是图7所示原型中对应的第二机框的机框模型面板示意图;Fig. 9 is a schematic diagram of the frame model panel of the corresponding second frame in the prototype shown in Fig. 7;

图10是本发明装置的一个实施例的原理框图。Fig. 10 is a functional block diagram of an embodiment of the apparatus of the present invention.

具体实施方式 Detailed ways

本发明的核心在于通过模型化设计,对各种设备内不同结构的机框对应到相应的机框模型,并存储各机框模型中的槽位比例尺信息。这样,当需要查看网络中的设备结构时,从存储的信息中获得该设备对应的所有机框模型及其槽位比例尺信息,然后,根据这些信息自动生成该设备的展现图形。The core of the present invention is to correspond to the corresponding frame models for the different structures of the frame in various devices through modeling design, and store the slot scale information in each frame model. In this way, when it is necessary to view the device structure in the network, all the frame models and slot scale information corresponding to the device are obtained from the stored information, and then the display graphics of the device are automatically generated according to the information.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

参照图3,图3是本发明方法的一个实施例的实现流程图,包括以下步骤:With reference to Fig. 3, Fig. 3 is the realization flowchart of an embodiment of the inventive method, comprises the following steps:

步骤301:建立各种机框模型,并存储各机框模型中的槽位比例尺信息。Step 301: Establish various chassis models, and store slot scale information in each chassis model.

由于在一个设备中,所有的机框都是从上而下摆放的,因此,可以不考虑设备内各机框的摆放关系,只需记录机框顺序。在一个机框内可以有多个槽,而板的位置完全取决于槽的位置,因此对于一个机框,如果想要了解该机框内的结构,也只需确定各槽的位置关系。也就是说,可以认为一个设备的图形就是由一个或多个机框图形组成的,而每个机框图形是由其内部槽的数量及位置关系来决定的。Since all the chassis are arranged from top to bottom in a device, it is not necessary to consider the placement relationship of the chassis in the device, and only need to record the sequence of the chassis. There can be multiple slots in a chassis, and the position of the board depends entirely on the position of the slots. Therefore, for a chassis, if you want to know the structure in the chassis, you only need to determine the positional relationship of the slots. That is to say, it can be considered that the graphics of a device are composed of one or more chassis graphics, and each chassis graphics is determined by the number and positional relationship of its internal slots.

基于这种关系,本发明利用实例模型设计原理,建立各种机框模型。即同一个模型可以对应多个实例,这些实例的大小,形状都是一致的,比如不同设备中的机框、机框中的槽。这些实例之间不同的是实例中的业务不同,如实例机框1和实例机框2,他们的形状大小是一致的,不同是实例机框1的第一个槽中插了板,而实例机框2的第一个槽上没有插板。Based on this relationship, the present invention utilizes the principle of example model design to establish various frame models. That is to say, the same model can correspond to multiple instances, and the sizes and shapes of these instances are consistent, such as chassis and slots in different equipment. The difference between these instances is that the services in the instances are different. For example, instance frame 1 and instance frame 2 have the same shape and size. The difference is that a board is inserted in the first slot of instance frame 1, while the instance There is no board in the first slot of chassis 2.

由于设备中的机框有大量的实例,而按结构分,机框模型则是数量很有限的。这样,可以通过定义面板的方式将机框模型中每个槽对应的位置信息建立起来同时保存到数据库,然后再利用视图映射出来,使实体数据共享这些位置信息。Because there are a large number of instances of the chassis in the equipment, but according to the structure, the number of chassis models is very limited. In this way, the position information corresponding to each slot in the chassis model can be established by defining the panel and saved to the database at the same time, and then mapped out through the view, so that the entity data can share the position information.

机框模型中的槽位比例尺信息的建立过程可以通过图形设计的方式来实现,具体过程将在后面详细描述。The establishment process of the slot scale information in the chassis model can be realized by means of graphic design, and the specific process will be described in detail later.

步骤302:当需要查看网络中的设备结构时,获取该设备对应的所有机框模型及其槽位比例尺信息。Step 302: When it is necessary to view the device structure in the network, obtain all the chassis models and slot scale information corresponding to the device.

为了方便设备管理人员对机框模型的查询,可以预先在网管设备上配置网络内各设备对应的机框模型编号及其排列顺序。这样,对应于每一个设备,就可以根据网络中的配置信息获取该设备对应的机框模型编号及其排列顺序,然后依序从所述存储信息中获取与机框模型编号对应的机框模型及其槽位比例尺信息。To make it easier for equipment managers to inquire about the chassis model, you can pre-configure the chassis model number and arrangement sequence corresponding to each device in the network on the network management device. In this way, corresponding to each device, the chassis model number corresponding to the equipment and its arrangement sequence can be obtained according to the configuration information in the network, and then the chassis model corresponding to the chassis model number can be sequentially obtained from the stored information and its slot scale information.

如果网络中的设备型号或结构发生改变,则可以修改这些配置信息,使管理人员可以准确查找到与该设备对应的所有机框模型的信息。If the model or structure of the equipment in the network changes, the configuration information can be modified, so that the administrator can accurately find the information of all the chassis models corresponding to the equipment.

前面已经描述,一个设备由几个机框组成,因此,一个设备图形就是由这些机框的图形组合而成,而一个机框图形又是由几个槽图形组合而成。每个机框都关联到数据库中的一个机框模型。这样,所有属于这种机框模型的机框可以共享这部分信息。It has been described above that a device is composed of several chassis, therefore, a device graphic is composed of the graphics of these chassis, and a chassis graphic is composed of several slot graphics. Each shelf is associated to a shelf model in the database. In this way, all the shelves belonging to this shelf model can share this part of information.

步骤303:根据槽位比例尺信息生成该设备的展现图形。Step 303: Generate a presentation graphic of the device according to the slot scale information.

得到每个机框模型及其槽位比例尺信息后,按照以下过程生成每个机框的图形:After obtaining the model of each chassis and its slot scale information, generate the graphics of each chassis according to the following process:

假设槽slot(k)的实际宽度为Swidth、高度为Sheight,Suppose the actual width of the slot(k) is Swidth and the height is Sheight,

首先,计算出槽slot(k)在图形中应该放置的位置和高度、宽度。First, calculate the position, height, and width of the slot(k) that should be placed in the graph.

slot(k)在图形中的实际横坐标=slot(k)的X坐标比例尺×Swidth+Sxi;The actual abscissa of slot(k) in the graph=the X coordinate scale of slot(k)×Swidth+Sxi;

slot(k)在图形中的实际纵坐标=slot(k)的Y坐标比例尺×Sheight+Syi;The actual ordinate of slot(k) in the graph=the Y coordinate scale of slot(k)×Sheight+Syi;

slot(k)在图形中的实际宽度=slot(k)的X坐标比例尺×Swidth;The actual width of the slot(k) in the graph = the X coordinate scale of the slot(k)×Swidth;

slot(k)在图形中的实际高度=slot(k)的Y坐标比例尺×Sheight。The actual height of the slot(k) in the graph=the Y coordinate scale of the slot(k)×Sheight.

其中,Sxi、Syi为机框的顶点坐标值。Among them, Sxi and Syi are the vertex coordinates of the chassis.

其次,按照计算出来的slot(k)实际位置画出slot(k)的图形。Secondly, draw the graph of slot(k) according to the calculated actual position of slot(k).

最后,如果slot(k)上插有板,则按照槽slot(k)的尺寸比例将板画出来。Finally, if there is a board inserted in slot(k), draw the board according to the size ratio of slot(k).

所有机框图形根据上述过程画出后,就生成了该设备的展现图形。After all chassis graphics are drawn according to the above process, the display graphics of the device are generated.

首先根据计算出来的具体数值,利用开发工具(比如C++、Java等)来实现或引用某些图片成为具体图形表示,如设备框图,机框框图,槽框图,单板图等等,然后根据计算出来的具体尺寸将上述图形组合在一起,就实现了完整设备图形。First, according to the calculated specific values, use development tools (such as C++, Java, etc.) The specific dimensions that come out combine the above graphics to realize the complete equipment graphics.

参照图4,图4是本发明方法中建立机框模型的流程图,包括以下步骤:With reference to Fig. 4, Fig. 4 is the flowchart of setting up machine frame model in the method of the present invention, comprises the following steps:

步骤401:获取机框模型的基本信息,这些信息包括机框的高度、宽度比例、槽的数量、位置、大小等信息。Step 401: Obtain the basic information of the frame model, which includes information such as height, width ratio, number, position, and size of the frame.

步骤402:检查数据库中是否存在类似的面板设计信息。如果存在,则进到步骤403;否则,进到步骤404。Step 402: Check whether similar panel design information exists in the database. If yes, go to step 403; otherwise, go to step 404.

步骤403:根据以前设计机框模型的面板保存的数据来显示图形。然后,进到步骤406。Step 403: Display graphics according to the data saved in the panel of the previously designed frame model. Then, go to step 406 .

步骤404:按照机框模型中的每个槽模型的位置号,来初始化显示图形。Step 404: Initialize the display graphics according to the position number of each slot model in the frame model.

如果是初次设计机框模型的面板图形,可以提供一个初始化的图形展现,比如,图5所示的图形。该机框模型中有五个基本槽位,分别为S1、S2、S3、S4、S5。If it is the first time to design the panel graphics of the chassis model, an initial graphics display can be provided, for example, the graphics shown in Figure 5. There are five basic slots in the chassis model, namely S1, S2, S3, S4, and S5.

步骤405:根据需要设计机框模型图形。Step 405: Design the chassis model graphics as required.

根据需要放大或缩小每个槽的图形及位置关系。比如,设计完成后的机框模型的图形为图6所示。Enlarge or reduce the graphics and positional relationship of each slot as needed. For example, the graphic of the chassis model after the design is completed is shown in FIG. 6 .

步骤406:获取每个槽在机框模型中所占的比例尺。Step 406: Obtain the scale occupied by each slot in the frame model.

每个槽在机框模型中所占的比例尺是指每个槽在机框中的位置、每个槽的高度和宽度占机框模型的高度和宽度的比例信息。The scale occupied by each slot in the chassis model refers to the position of each slot in the chassis, and the ratio information of the height and width of each slot to the height and width of the chassis model.

假设i为槽Si在机框模型中的序列号,机框模型的顶点坐标为[X,Y],Si的顶点坐标为[SiX,SiY],机框模型的高度为SFH,宽度为SFW,则对于槽Si:Suppose i is the serial number of slot Si in the frame model, the vertex coordinates of the frame model are [X, Y], the vertex coordinates of Si are [SiX, SiY], the height of the frame model is SFH, and the width is SFW, Then for slot Si:

Si的横坐标比例尺=|siX-X|/SFW;The abscissa scale of Si = |siX-X|/SFW;

Si的纵坐标比例尺=|siY-Y|/SFH;The ordinate scale of Si = |siY-Y|/SFH;

Si的宽度比例尺=siW/SFW;Si width scale = siW/SFW;

Si的高度比例尺=siH/SFH。Si height scale = siH/SFH.

这样,就可以计算出每个槽的位置比例尺信息。In this way, the position scale information of each slot can be calculated.

步骤407:将各槽与机框模型中的比例尺信息保存到数据库中。Step 407: Save the scale information in each slot and machine frame model to the database.

这样,一个机框模型就建立完成了。当需要查看的设备中有与该模型对应的机框时,从数据库中提取出这些信息,即可完整地展现该机框。同样,从数据库中将对应设备的其他机框的机框模型信息提取出来,由这些所有信息即可展现一个完整的设备面板结构图。In this way, a frame model is established. When there is a frame corresponding to the model in the equipment to be viewed, the information is extracted from the database to fully display the frame. Similarly, the frame model information of other frames corresponding to the device is extracted from the database, and a complete device panel structure diagram can be displayed based on all the information.

下面举例进一步详细本发明设备图形展现过程。The following example further details the graphic presentation process of the device of the present invention.

参照图7所示,设备有两个机框S71、S72。其中,机框S71中有五个槽S711、S712、S713、S714、S715,只有槽S711、S712、S714插有板;机框S72有四个槽S721、S722、S723、S724,只有槽S721、S722、S724插有板。Referring to Fig. 7, the device has two chassis S71 and S72. Among them, there are five slots S711, S712, S713, S714, and S715 in the frame S71, and only the slots S711, S712, and S714 are inserted with boards; the frame S72 has four slots S721, S722, S723, The S722 and S724 are inserted with boards.

如果数据库中没有这两种类型的机框模型,则首先对这两个机框的机框模型进行面板设计。If there are no shelf models of these two types in the database, the panel design is first performed on the shelf models of the two shelf models.

设计后,机框S71对应的机框模型面板设计结果如图8所示,机框S72对应的机框模型面板设计结果如图9所示。After the design, the panel design result of the chassis model corresponding to chassis S71 is shown in Figure 8, and the panel design result of the chassis model corresponding to chassis S72 is shown in Figure 9.

设计完成后,将图8和图9所示的机框模型及其槽位比例尺信息存入数据库中。After the design is completed, the frame model and slot scale information shown in Figure 8 and Figure 9 are stored in the database.

当需要图7所示设备的图形时,从数据库中获取以上这些信息,生成该设备的图形。When the graphics of the equipment shown in Figure 7 are needed, the above information is obtained from the database to generate the graphics of the equipment.

需要说明的是,还可以预先在管理设备上配置各槽是否插板的信息,在展现设备图形时,根据配置的各槽是否插板的信息可以只将各机框中插板的槽的图形画出。It should be noted that it is also possible to pre-configure the information of whether each slot is a board on the management device. When displaying the device graphics, only the graphics of the slots of the boards in each chassis can be displayed according to the configured information of whether each slot is a board. draw.

参照图10,图10示出了本发明装置的原理框图:With reference to Fig. 10, Fig. 10 has shown the functional block diagram of device of the present invention:

该装置包括:机框模型建立模块S1、存储模块S2、查询模块S3、图形生成模块S4。其中,机框模型建立模块S1用于建立各种机框模型;存储模块S2用于存储各机框模型中的槽位比例尺信息;查询模块S3用于需要查看设备结构时从存储模块S2中获取设备对应的所有机框模型及其槽位比例尺信息;图形生成模块S4用于根据所述槽位比例尺信息生成该设备的展现图形。The device includes: a frame model building module S1, a storage module S2, a query module S3, and a graphic generation module S4. Among them, the frame model building module S1 is used to build various frame models; the storage module S2 is used to store the slot scale information in each frame model; the query module S3 is used to obtain from the storage module S2 when the equipment structure needs to be checked. All the machine frame models corresponding to the equipment and their slot scale information; the graphics generation module S4 is used to generate the display graphics of the equipment according to the slot scale information.

机框模型建立模块S1包括比例尺计算模块S11和写入模块S12。其中,比例尺计算模块S11用于计算各槽在机框模型中所占的比例尺;写入模块S12用于将所述比例尺信息写入所述存储模块。The frame model building module S1 includes a scale calculation module S11 and a writing module S12. Wherein, the scale calculation module S11 is used to calculate the scale occupied by each slot in the frame model; the writing module S12 is used to write the scale information into the storage module.

图形生成模块S4包括:槽位置计算模块S41和绘图模块S42。其中,槽位置计算模块S41用于根据所述槽位比例尺信息计算槽的顶点坐标、宽度、高度;绘图模块S42用于根据所述槽位置计算模块计算出的槽的顶点坐标、宽度、高度信息画出机框及其中的各槽的图形。The graph generation module S4 includes: a groove position calculation module S41 and a drawing module S42. Wherein, the groove position calculation module S41 is used to calculate the vertex coordinates, width and height of the groove according to the groove position scale information; the drawing module S42 is used to calculate the vertex coordinates, width and height information of the groove according to the groove position calculation module Draw the graphics of the chassis and the slots in it.

为了使图形生成模块S4能够根据所述槽位比例尺信息生成该设备的展现图形,比例尺计算模块S11需要根据机框模型的基本信息(包括机框的高度、高度比例、槽的数量、位置、大小等信息),计算每个槽在机框中所占的比例尺,包括每个槽在机框中的位置、每个槽的高度和宽度占机框模型的高度和宽度的比例信息。In order to enable the graphics generation module S4 to generate the display graphics of the device according to the slot scale information, the scale calculation module S11 needs to base the basic information of the chassis model (including the height of the chassis, the height ratio, the number of slots, positions, sizes, etc.) and other information), calculate the scale of each slot in the frame, including the position of each slot in the frame, the ratio of the height and width of each slot to the height and width of the frame model.

具体计算过程可参照前面对本发明方法的描述,在此不再赘述。For the specific calculation process, reference may be made to the foregoing description of the method of the present invention, which will not be repeated here.

这样,将每个机框模型设计完成并计算机框模型中各槽之间的位置比例尺后,将其持久化,由写入模块S12将这些信息写入存储模块S2中。In this way, after the design of each frame model is completed and the position scales between the slots in the frame model are calculated, it is persisted, and the writing module S12 writes the information into the storage module S2.

当需要查询查看网络中的设备结构时,由查询模块S3根据网络中的配置信息查询存储模块中的存储信息,依次得到与该设备对应的各机框模型及其槽位比例尺信息。然后,由图形生成模块S4根据这些槽位比例尺信息生成该设备的展现图形。When it is necessary to query and view the device structure in the network, the query module S3 queries the storage information in the storage module according to the configuration information in the network, and sequentially obtains the frame models and slot scale information corresponding to the device. Then, the display graphics of the device are generated by the graphics generating module S4 according to the slot scale information.

得到每个机框模型及其槽位比例尺信息后,首先由槽位置计算模块S41按照以下过程生成每个机框的图形:After obtaining the information of each machine frame model and its slot scale, firstly, the slot position calculation module S41 generates the graphics of each machine frame according to the following process:

假设槽slot(k)的实际宽度为Swidth、高度为Sheight,Suppose the actual width of the slot(k) is Swidth and the height is Sheight,

首先,计算出槽slot(k)在图形中应该放置的位置和高度、宽度。First, calculate the position, height, and width of the slot(k) that should be placed in the graph.

slot(k)在图形中的实际横坐标=slot(k)的X坐标比例尺×Swidth+Sxi;The actual abscissa of slot(k) in the graph=the X coordinate scale of slot(k)×Swidth+Sxi;

slot(k)在图形中的实际纵坐标=slot(k)的Y坐标比例尺×Sheight+Syi;The actual ordinate of slot(k) in the graph=the Y coordinate scale of slot(k)×Sheight+Syi;

slot(k)在图形中的实际宽度=slot(k)的X坐标比例尺×Swidth;The actual width of the slot(k) in the graph = the X coordinate scale of the slot(k)×Swidth;

slot(k)在图形中的实际高度=slot(k)的Y坐标比例尺×Sheight。The actual height of the slot(k) in the graph=the Y coordinate scale of the slot(k)×Sheight.

其中,Sxi、Syi为机框的顶点坐标值。Among them, Sxi and Syi are the vertex coordinates of the chassis.

然后,由绘图模块S42按照计算出来的slot(k)实际位置画出slot(k)的图形。一个机框中的所有槽的图形绘制完毕后,一个完整的机框图形即可展现出来。所有机框图形绘制完成后,即生成了完整的设备图形。Then, the graph of slot (k) is drawn by the drawing module S42 according to the calculated actual position of slot (k). After the graphics of all the slots in a chassis are drawn, a complete chassis graphics can be displayed. After all the chassis graphics are drawn, the complete equipment graphics are generated.

当然,在上述绘制槽的图形过程中,也可以根据设备的配置信息,如果slot(k)上插有板,则按照槽slot(k)的尺寸比例将板画出来,否则,可以只画出一个空槽,并标识该槽没有插板。可以根据需要来确定最后展现的图形格式,比如,根据设置实际配置的各槽是否插板的信息标识各机框中槽的插板状态,插有板的槽的图形中加入条纹或底色,以示与没有插板的槽的区别。Of course, in the process of drawing the slot graphics above, according to the configuration information of the device, if there is a board inserted in the slot (k), then draw the board according to the size ratio of the slot slot (k), otherwise, you can only draw An empty slot, and indicates that the slot has no board. The final graphics format can be determined according to the needs. For example, according to the information about whether each slot in the actual configuration is equipped with a board, the status of the slot in each chassis is identified, and stripes or background colors are added to the graphics of the slots with boards. To show the difference from the slot without the plugboard.

虽然通过实施例描绘了本发明,本领域普通技术人员知道,本发明有许多变形和变化而不脱离本发明的精神,希望所附的权利要求包括这些变形和变化而不脱离本发明的精神。While the invention has been described by way of example, those skilled in the art will appreciate that there are many variations and changes to the invention without departing from the spirit of the invention, and it is intended that the appended claims cover such variations and changes without departing from the spirit of the invention.

Claims (9)

1、一种设备图形展现方法,其特征在于,所述方法包括步骤:1. A device graphic presentation method, characterized in that the method comprises the steps of: 根据机框内槽的位置结构建立与设备实际机框对应的机框模型,并计算机框内各槽的位置在机框模型中所占的比例尺;Establish a frame model corresponding to the actual frame of the equipment according to the position structure of the slots in the frame, and calculate the scale of the position of each slot in the frame in the frame model; 将计算得到的槽位比例尺信息存储到数据库中;Store the calculated slot scale information in the database; 当需要查看设备结构时,获取该设备对应的机框模型及其槽位比例尺信息;When it is necessary to view the device structure, obtain the frame model and slot scale information corresponding to the device; 根据获取的槽位比例尺信息生成该设备的展现图形。Generate the display graphics of the device according to the obtained slot scale information. 2、根据权利要求1所述的方法,其特征在于,所述计算各槽位在机框模型中所占的比例尺的步骤包括:2. The method according to claim 1, wherein the step of calculating the scale occupied by each slot in the chassis model comprises: 确定各槽的顶点坐标;Determine the vertex coordinates of each slot; 根据所述顶点坐标分别计算该槽的宽度与机框宽度的比例、以及该槽的高度与机框高度的比例。The ratio of the width of the slot to the width of the machine frame and the ratio of the height of the slot to the height of the machine frame are respectively calculated according to the coordinates of the vertices. 3、根据权利要求1所述的方法,其特征在于,所述方法进一步包括:3. The method according to claim 1, further comprising: 预先配置网络内各设备对应的机框模型编号及其排列顺序。Pre-configure the chassis model number and arrangement sequence corresponding to each device in the network. 4、根据权利要求3所述的方法,其特征在于,所述获取需查看设备对应的机框模型及其槽位比例尺信息的步骤具体包括:4. The method according to claim 3, wherein the step of acquiring the frame model corresponding to the device to be viewed and its slot scale information specifically includes: 根据网络中的配置信息获取所述设备对应的机框模型的编号及其排列顺序;Acquiring the serial number and arrangement sequence of the chassis model corresponding to the device according to the configuration information in the network; 依序从存储的槽位比例尺信息中获取与机框模型编号对应的机框模型及其槽位比例尺信息。The chassis model and slot scale information corresponding to the chassis model number are sequentially acquired from the stored slot scale information. 5、根据权利要求1所述的方法,其特征在于,所述根据获取的槽位比例尺信息生成该设备的展现图形的步骤进一步包括:5. The method according to claim 1, wherein the step of generating the display graphics of the device according to the acquired slot scale information further comprises: 确定各机框的顶点坐标;Determine the vertex coordinates of each machine frame; 根据所述槽位比例尺信息依次确定机框中各槽的顶点坐标、宽度、高度;Determine the vertex coordinates, width and height of each slot in the machine frame in turn according to the slot scale information; 根据所述确定的机框中各槽的顶点坐标、宽度、高度画出各机框。Draw each machine frame according to the determined vertex coordinates, width, and height of each slot in the machine frame. 6、根据权利要求5所述的方法,其特征在于,所述根据确定的机框中各槽的顶点坐标、宽度、高度画出各机框的步骤包括:6. The method according to claim 5, wherein the step of drawing each machine frame according to the determined apex coordinates, width and height of each slot in the machine frame includes: 根据实际配置的各槽位是否插板标识各机框中槽的插板状态。Indicates the board status of the slots in each shelf according to whether each slot is actually configured with a board. 7、根据权利要求1所述的方法,其特征在于,所述槽位比例尺信息包括:7. The method according to claim 1, wherein the slot scale information includes: 槽的横坐标比例尺,槽的纵坐标比例尺,槽的宽度比例尺,槽的高度比例尺。The abscissa scale of the slot, the ordinate scale of the slot, the width scale of the slot, and the height scale of the slot. 8、一种设备图形展现装置,其特征在于,所述装置包括:8. A device graphic display device, characterized in that the device includes: 机框模型建立模块,用于建立各种机框模型;The frame model building module is used to build various frame models; 存储模块,存储各机框模型中的槽位比例尺信息;A storage module for storing slot scale information in each chassis model; 查询模块,用于从所述存储模块中获取设备对应的所有机框模型及其槽位比例尺信息;A query module, configured to obtain all chassis models and slot scale information corresponding to the device from the storage module; 图形生成模块,与所述查询模块相连,用于根据所述槽位比例尺信息生成该设备的展现图形;A graphic generation module, connected to the query module, for generating a display graphic of the device according to the slot scale information; 所述机框模型建立模块包括:The frame model building module includes: 比例尺计算模块,用于计算各槽在机框模型中位置所占的比例尺;A scale calculation module, configured to calculate the scale occupied by the position of each slot in the frame model; 写入模块,用于将所述比例尺信息写入所述存储模块。a writing module, configured to write the scale information into the storage module. 9、根据权利要求8所述的装置,其特征在于,所述图形生成模块包括:9. The device according to claim 8, wherein the graphic generation module comprises: 槽位置计算模块,用于根据所述槽位比例尺信息计算槽的顶点坐标、宽度、高度;Groove position calculation module, used to calculate the vertex coordinates, width and height of the groove according to the groove position scale information; 绘图模块,用于根据所述槽位置计算模块计算出的槽的顶点坐标、宽度、高度信息画出机框及其中的各槽的图形。The drawing module is used to draw the graphics of the machine frame and the slots therein according to the vertex coordinates, width and height information of the slots calculated by the slot position calculation module.
CNB2006101039413A 2006-07-28 2006-07-28 Equipment pattern exhibiting method and apparatus Expired - Fee Related CN100499503C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006101039413A CN100499503C (en) 2006-07-28 2006-07-28 Equipment pattern exhibiting method and apparatus
PCT/CN2007/001168 WO2008014651A1 (en) 2006-07-28 2007-04-11 Method and device for exhibiting graph of apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101039413A CN100499503C (en) 2006-07-28 2006-07-28 Equipment pattern exhibiting method and apparatus

Publications (2)

Publication Number Publication Date
CN101114934A CN101114934A (en) 2008-01-30
CN100499503C true CN100499503C (en) 2009-06-10

Family

ID=38996857

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101039413A Expired - Fee Related CN100499503C (en) 2006-07-28 2006-07-28 Equipment pattern exhibiting method and apparatus

Country Status (2)

Country Link
CN (1) CN100499503C (en)
WO (1) WO2008014651A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567570B (en) * 2011-12-02 2013-08-28 曙光信息产业(北京)有限公司 Method for plane display of configurable machine room layouts
CN107968723A (en) * 2017-11-17 2018-04-27 中国联合网络通信集团有限公司 A kind of modeling method and Design of digital system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11195136A (en) * 1998-01-06 1999-07-21 Fujitsu Ltd 3D model animation method and animation creation device
KR100506822B1 (en) * 2003-11-08 2005-08-10 엘지전자 주식회사 Method for displaying three dimensional polygon on screen
CN100463535C (en) * 2003-11-28 2009-02-18 中兴通讯股份有限公司 A Data Binding Method for the Board Map of a Telecom Network Management Rack

Also Published As

Publication number Publication date
CN101114934A (en) 2008-01-30
WO2008014651A1 (en) 2008-02-07

Similar Documents

Publication Publication Date Title
US8704821B2 (en) System and method for managing virtual world environments based upon existing physical environments
CN112633822B (en) Asset management method based on digital twin technology, storage medium and mobile terminal
TW200947346A (en) System and method for automatically generating virtual world environments based upon existing physical environments
CN103236024A (en) Power system collaborative simulation system based on WEBGIS (web geography information system)
CN110941614A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN109684741B (en) Multi-granularity virtual experiment circuit construction method
CN112489213A (en) Three-dimensional terrain model generation method and device, electronic equipment and storage medium
CN105976322A (en) Power grid comprehensive information monitoring graph generation system and method
CN105512099A (en) Gantt chart generation method and device
CN107402766A (en) Page layout management method and device
CN113592417A (en) Asset management method and system based on Internet of things
CN118761180A (en) Integrated wiring design method, device and computer equipment based on three-dimensional model
CN109165270A (en) A kind of three-dimensional GIS platform architecture system
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN101114934A (en) Graphic display method and device for equipment
CN118939894B (en) WEB display method, device and system for three-dimensional simulation model
CN109241510A (en) A kind of autochart generation system and its implementation based on wechat small routine
CN100449484C (en) A method and system for generating a simulated device panel
CN119477109A (en) A production line digital twin simulation model construction method, device and electronic equipment
CN106850322B (en) Resource equipment management system based on six-layer model
CN118607074A (en) A method, device, equipment, medium and program product for processing computer room data
JP2007114822A (en) Automatic layout method and apparatus
CN1964270A (en) A GIS-based network equipment management system and method for organization and positioning
CN106875480B (en) Method for organizing urban three-dimensional data
CN100463535C (en) A Data Binding Method for the Board Map of a Telecom Network Management Rack

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610