Summary of the invention
The technical problem to be solved in the present invention is, domain knowledge is added in the modeling language, makes unified modeling language go for specific field; By two stage modeling methods, use the applied customization instrument, the network equipment and link are assigned to different model components, realize management to communication network.
Domain knowledge is added in the modeling language, guarantee that model that the modeling personnel set up still do not follow unified modeling language, also follow domain knowledge, will avoid the appearance of big semantic difference in analysis, the design phase of software development.Unified modeling language is to finish by the layering of model as the formalization of a modeling language.Unified modeling language is based on four layers of traditional metadata structure, and uppermost is the meta object facility layer, and it is the language of definition modeling language, and it has defined the meta-model of unified modeling language.The meta-model of unified modeling language has defined the model of unified modeling language.The model definition of unified modeling language the Information Level model.
Unified modeling language provides the extension mechanism of two kinds of standards: profile and based on the expansion of meta object facility.Expansion based on the meta object facility is applicable to heavy expansion with its great dirigibility and degree of freedom, and this expansion makes unified modeling language go for any one specific field.Our thinking is based on the meta object facility meta-model of unified modeling language is carried out the heavy type expansion, thereby domain knowledge is added.In our modeling tool, the model of describing static structure information can directly present through customization, has realized directly can carrying out of static information.
Based on the meta object facility meta-model of unified modeling language is expanded, produced a series of subclasses of the corresponding metaclass of unified modeling language, comprising: Atom, Model, Set, Reference, the model component and the Inheritance of 5 modeling entities such as FCO, Connection, the member of 3 modeling relations such as Connector, the member of Aspect modeling viewpoint, FieldAttribute, EnumAttribute, the member and the Containment of 3 modeling attributes such as BooleanAttribute, FolderContainment, SourceToConnector, ConnectorToDestination, AssociationClass, SetMembership, ReferTo, BaseInheritance, DerivedInheritance, BaseImpInheritance, DerivedImpInheritance, BaseIntInheritance, DerivedIntInheritance, HasAspect, AspectMembership, totally 17 kinds of modeling relations such as HasConstraint, HasAttribute etc.These subclasses have constituted a complete meta-model normal form jointly, can support object-oriented static information modeling based on unified modeling language class figure, have the modeling of viewpoint of the model of complex internal structure based on Aspect and Set, stride the ATM layer relationsATM modeling based on the model element of Reference, based on FieldAttribute, EnumAttribute, the attribute modeling of BooleanAttribute, based on the constraint modeling of Constraint and based on Containment, the relationship modeling of totally 17 kinds of relations such as HasAspect, HasAttribute etc.
Based on two stage modeling methods of field modeling instrument, at first set up field meta-model, generate the field language, carry out modeling based on this field language again; The said field meta-model of setting up is, unified modeling language expanded having formed the meta-model normal form based on the meta object facility, and the meta-model normal form retrains first modeling process; Saidly carry out modeling based on this field language and be, the meta-model that first modeling is set up is explained back generation model normal form, and the model normal form is a kind of field language, its constraint modeling process.This framework has been realized the modeling of two stages, as shown in Figure 1.
Two stage modeling methods are stated as more specifically:
A kind of tele communication region modeling method based on unified modeling language is characterized in that, whole modeling process has been divided into first modeling and two stages of modeling; Said first modeling is set up field meta-model according to the meta-model normal form, promptly, by the field meta-model in first modeling generation telecommunication network management field, this field meta-model comprises the domain knowledge in whole webmaster field, and field meta-model is the model normal form through the meta-model interpreter interprets; Said modeling is based on the model normal form and carries out modeling; The meta-model normal form retrains first modeling, model normal form constraint modeling; Modeling process is finished in a tele communication region modeling tool, and this tele communication region modeling tool specifically comprises: graphical user interface, model repository management tool, model normal form loading bin, meta-model interpreter, constraint verification tool, applied customization instrument be totally six kinds of complete modeling environments that instrument constitutes; Described model repository management tool is responsible for safeguarding according to the meta-model normal form and is set up field meta-model that first modelling phase of field meta-model generates and carry out the model that modelling phase of modeling generates based on the model normal form, finish the management of model management and model evolution, wherein the meta-model normal form is based on the meta object facility and the unified modeling language meta-model is expanded is formed; Meta-model normal form based on expansion unified modeling language meta-model structure, the class that comprises Atom, Model, Set, Reference and 5 modeling entities of FCO, the class of 3 modeling relations of Inheritance, Connection and Connector, the class of Aspect modeling viewpoint; FieldAttribute, the class and the Containment of EnumAttribute and 3 modeling attributes of BooleanAttribute, FolderContainment, SourceToConnector, ConnectorToDestination, AssociationClass, SetMembership, ReferTo, BaseInheritance, DerivedInheritance, BaseImpInheritance, DerivedImpInheritance, BaseIntInheritance, DerivedIntInheritance, HasAspect, AspectMembership, 17 kinds of modeling relations of HasConstraint and HasAttribute; Described model normal form loading bin is responsible for meta-model normal form or model normal form are loaded into modeling environment; Described meta-model interpreter is responsible for field meta-model is interpreted as the model normal form; Described constraint verification tool is responsible for constraint in the modeling process and consistency problem are verified; Described applied customization instrument is assigned to different model components with the network equipment and link, the characteristic information of equipment is appointed as the attribute of model component, the statistical nature information of equipment is appointed as the derivation attribute of model component, IP address, port numbers, communication protocol, the communication means of the model component by specifying representative equipment, constructed a complete data flow path, the attribute information of model component can change in real time along with the change of apparatus characteristic, to the management of equipment and link, just become management after the customization to model element.
Entity in the meta-model normal form, relation are saved in the XML file, are an XML structure fragment of preserving entity below:
<atom?name=″Atom″metaref=″1124″attributes=″IsAbstract?InRootFolder?GeneralPreferences
DisplayedName?IsTypeShown?Icon?IsHotspotEnabled?portIcon?NameWrapNum?SubTypeIcon?NamePosition
IsNameEnabled?InstanceIcon?Decorator″>
<dispname>Atom</dispname>
<attrdef?name=″InRootFolder″metaref=″1233″valuetype=″boolean″defvalue=″false″>
<dispname>In?root?folder?</dispname>
</attrdef>
<regnode?name=″namePosition″value=″8″/>
<regnode?name=″color″value=″0x0″/>
<attrdef?name=″DisplayedName″metaref=″1564″valuetype=″string″defvalue=″″>
<dispname>Displayed?name:</dispname>
</attrdef>
<attrdef?name=″PortIcon″metaref=″1359″valuetype=″string″defvalue=″″>
<dispname>Porticon?name:</dispname>
</attrdef>
<regnode?name=″icon″value=″atom.bmp″/>
<regnode?name=″decorator″value=″Mga.Decorator.MetaDecorator″/>
</atom>
Meta-model comprises four views: ClassDiagram view, Visualization view, Visualization view, Attribute view. each view description the different aspect of system.See Table 1.
View and formation thereof in the table 1 field modeling development specifications
Unit's modeling is by modeling personnel and domain expert's fellowship.Class figure comprises the notion in the field, the formalization definition of relation.Comprise the modeling for viewpoint among the observability figure, by being the notion appointment many aspects in the meta-model, this notion can present with the viewpoint of a plurality of appointments when making modeling, and the access control of certain view is provided.Can be specific operation and constraint modeling in the constraints graph, can complete definition to the query manipulation of model, can also express service logic, comprise dynamic triggering rule, can the modeling invariant, priori conditions, posteriority condition.Comprise the modeling of attribute in the attributed graph and be the process of particular model element specified attribute.Fig. 2 provides an example that is used for the meta-model of field of telecommunications network management, in the network chart a plurality of main frames can be arranged, and main frame has this attribute of IP address, and attribute can default settings.
The information of meta-model is saved in the database, and meta-model is the input of meta-model interpreter.After the explanation of meta-model through the meta-model interpreter that unit's modeling is set up, generation model normal form, model normal form are the field language that a kind of XML of use language is preserved.Be a model normal form example below, this meta-model above model normal form correspondence:
<?xml?version=″1.0″?>
<paradigm?name =″ccmodel″>
<folder?name=″RootFolder″metaref=″1000″>
<attrdef?name=″IPAddress″metaref=″1019″valuetype=″string″defvalue=″10.80.168.162″>
<dispname></dispname>
</attrdef>
<atom?name=″Host″metaref=″1002″attributes=″IPAddress″>
<dispname>Host</dispname>
<regnode?name=″namePosition″value=″4″></regnode>
</atom>
<model?name=″NetDiagram″metaref=″1006″>
<dispname>NetDiagram</dispname>
<regnode?name=″namePosition″value=″4″></regnode>
<role?name=″Host″metaref=″1017″kind=″Host″><dispname>Host</dispname></role>
<aspect?name=″Aspect″metaref=″1012″>
<part?metaref=″1018″role=″Host″primary=″yes″linked=″no″></part>
</aspect>
</model>
</folder>
</paradigm>
So just finished the process of field modeling.Watching the meta-model normal form can find, the notion NetDiagram in the field has been set up in first modeling, Host and attribute IPAddress, and Host has this attribute, and the default value of this attribute is 10.80.168.162.Notion, relation, constraint that unit's modeling is set up have constituted the field language jointly.
In the modelling phase, the field language that the modeling personnel set up when using first modeling comes modeling.Owing to comprise domain knowledge in the language of field, the field modeling instrument has guaranteed that in modelling phase enforces authentication field constraint the model of foundation is followed domain knowledge.A reusable field meta-model and constituted complete description jointly in the field to system at the model of a particular system in the field.
As a modeling tool, the field modeling instrument comprises a complete tool set, and they provide functions such as conducting a compulsory examination of drawing, navigation, storage, multi-user's support, consistency maintenance, constraint.The field modeling instrument is mainly finished three big functions: first modeling, modeling, customization.Unit's modeling is carried out abstract to domain knowledge, set up field meta-model.Domain knowledge comprises field concept, the relationship of the concepts, field constraint.The model of following domain knowledge is set up in modeling.Customization comprises data source is customized to model and model is customized to Domain Framework and assembly.These functions are finished by a loosely-coupled tool set.
(unit) model repository management tool is responsible for safeguarding the meta-model and the model of first modeling and modelling phase generation, finishes the management of model management and model evolution.The management of model comprises according to (unit) modeling semanteme puts model and extraction model from the storehouse in storage.The model evolution management comprises that model also will be done to upgrade to follow new meta-model accordingly when meta-model upgraded.
The constraint verification tool is responsible for constraint in the modeling process and consistency problem are verified.Consistency problem comprises: NameSpace, access control, structural relation etc. are checked.Constraint is included in the various constraints of setting up in first modeling constraint view.The constraint verification tool is responsible for carrying out consistency check and constraint checking.The engineering management instrument is safeguarded meta-model and model in the mode of engineering.Meta-model interpreter interprets meta-model is the model normal form, and the normal form loading bin is responsible for the model normal form is loaded in the modeling environment, and modeling will be followed this model normal form, in this way, has realized that model follows meta-model.
Model normal form loading bin is responsible for (unit) model normal form is loaded into modeling environment, and the meta-model interpreter is responsible for meta-model is interpreted as the model normal form, and the meta-model normal form is a hand-written normal form, is used for retraining first modeling behavior.So just formed the meta-model normal form and retrained first modeling, meta-model is interpreted as the model normal form, the two complete stage modeling process of model normal form constraint modeling.
The functional structure chart of system is seen Fig. 3.
The customized management instrument is responsible for data source is customized to model, and data source comprises file, database and the data of gathering in real time from port.Specifically comprise the customization of four aspects: 1, the customization of data acquisition modes.Mode to the data collection is provided with, and acquisition mode is relevant with the network condition and the concrete network equipment, and acquisition mode commonly used has: Telnet, Com, Snmp, database and Netflow etc.2, rules customization.Concrete rule to the data collection is provided with, and needs here to select editing the rule file of finishing, and rule file is used to instruct the processing of the detailed process and the image data of collection.3, transmit customization.The forwarding of data mode of gathering is customized, and the data of collection can have multiple pass-through mode, as: be saved in the database, be saved in the file or the packet that is encapsulated into set form sends.4, particular parameter customization.Special parameter to the data collection customizes, and every kind of acquisition mode all has specific parameter, thereby needs different customizations.This parameter comprises IP address, password, port numbers or the like.
A kind of tele communication region modeling tool and the application of modeling method in network management based on unified modeling language, the concrete telecommunications network management method based on model is: at first, the unified modeling language meta-model is expanded based on the meta object facility by tele communication region modeling tool, formed the meta-model normal form, the meta-model normal form retrains first modeling; By the field meta-model in first modeling generation telecommunication network management field, this field meta-model comprises the domain knowledge in whole webmaster field, constraint modeling; Then, set up model by tele communication region modeling tool at the field language that a concrete network uses first modeling to set up; At last, by using the applied customization instrument in the tele communication region modeling tool, the network equipment and link are assigned to different model components, the characteristic information of equipment is appointed as the attribute of model component, the statistical nature information of equipment is appointed as the derivation attribute of model component, IP address, port numbers, communication protocol, the communication means of the model component by specifying representative equipment, constructed a complete data flow path, the attribute information of model component can change in real time along with the change of apparatus characteristic; To the management of equipment and link, just become management after the customization to model element; Tele communication region modeling tool specifically comprises: graphical user interface, model repository management tool, model normal form loading bin, meta-model interpreter, constraint verification tool, applied customization instrument be totally six kinds of complete modeling environments that instrument constitutes; Described model repository management tool is responsible for safeguarding according to the meta-model normal form and is set up field meta-model that first modelling phase of field meta-model generates and carry out the model that modelling phase of modeling generates based on the model normal form, finish the management of model management and model evolution, wherein the meta-model normal form is based on the meta object facility and the unified modeling language meta-model is expanded is formed; Meta-model normal form based on expansion unified modeling language meta-model structure, the class that comprises Atom, Model, Set, Reference and 5 modeling entities of FCO, the class of 3 modeling relations of Inheritance, Connection and Connector, the class of Aspect modeling viewpoint; FieldAttribute, the class and the Containment of EnumAttribute and 3 modeling attributes of BooleanAttribute, FolderContainment, SourceToConnector, ConnectorToDestination, AssociationClass, SetMembership, ReferTo, BaseInheritance, DerivedInheritance, BaseImpInheritance, DerivedImpInheritance, BaseIntInheritance, DerivedIntInheritance, HasAspect, AspectMembership, 17 kinds of modeling relations of HasConstraint and HasAttribute; Described model normal form loading bin is responsible for meta-model normal form or model normal form are loaded into modeling environment; Described meta-model interpreter is responsible for field meta-model is interpreted as the model normal form; Described constraint verification tool is responsible for constraint in the modeling process and consistency problem are verified.
Management to Telecommunication network equipment comprises the management of satisfying the need by device, switch, serial equipment and specific installation, and this management is based on different management agreements, existing as: SNMP, telnet, the particular protocol of serial port protocol and some particular vendor.The management of network link is comprised flow, the flow direction and to the monitoring of performance index such as point-to-point time delay, shake, packet loss.The present invention is by the customization function of foregoing customization instrument, can specify the corresponding relation of a same particular device of model element or link, the agreement that this appointment comprises the IP address of the equipment of designated model element representative, device data is gathered and is provided with, the password of beaching accommodation etc.By this appointment, formed data by equipment and link to model flow and by model mobile to equipment.
This way to manage based on customization can the continuous situation about changing of adaption demand.When the equipment of operator changes, only need a customization procedure and a spot of coding just can satisfy new demand.
Based on customization function, model and equipment and link connect, and the state of equipment and link gets up with the attribute relationship of model, and network state and feature (some statistics) are got up with the derivation attribute relationship of model.Model can reflect the resource and the state of network in real time, simultaneously also can be by controlling models Control Network resource and state changed.Model becomes the virtual representations thing of the network equipment and link.
The way to manage of this network equipment based on model, link can be brought a lot of benefits: 1, most of function can be finished by customization rather than coding, thereby has improved efficiency of software and correctness.2, avoid the developer directly in the face of port goes programming, improved the abstraction hierarchy of software development.