Further knowledge of ASML

zhaozj2021-02-17  66

ASML sounds quite magic, especially the model it established can be used as analog programs of the system described in these models, not only help us check our design, but also Help us inspect the rationality of the design and the correctness of the implementation. Is this not what we want? What are you waiting for? Try Now! (Note: If you still don't know what is ASML, it doesn't matter, you can refer to my other article "ASML: Executable Software Specifications")

From http://research.microsoft.com/foundations/ASML / You can get ASML installer and some related documents. The current version of ASML is 2.5.1.8, which is a version of For .NET, it is capable of integrating with Visual Studio.net and Word. Download installation is quite simple, don't say more. After installation, run Visual Studio.NET will find that there is more plugins in the IDE, as shown below:

At this point, the button on the plug-in is invalid, and only when the ASML model file is turned on. The file name suffix of the ASML model file is .asml, the model file is organized in XML format. The role of the three buttons on the plug-in is from left to right, synchronized with the Word document, displays the specification, reorganize the XML format in HTML format.

Now we are using ASML to create a model.

First, create a new empty C # project, you may wish to name Asmltest. Right-click on the project in Solution Explorer, add a new Item with "Add-> Add New Item", which is found in the Add New Item dialog box, add it. In this way, there is more item named MODAL1.ASML in our project, as shown below:

The button on the plug-in is already valid, click the "Synchronization" button to get synchronous Word document, as shown below:

Click the "HTML display" button to get the specifications of the HTML format, as shown below:

Click "Re-format XML", the ASML file will be reformat, as shown below:

Now try the most important characteristics of executable specifications - can be implemented. The compilation method of the ASML is not born with other .NET programs, directly F5. The results of the operation are as follows:

Have you been your heart after this small example? Think about it, when you design modeled, you just need to describe your model with ASML, you immediately got three version of design specifications: XML, Word, HTML. And these three versions can be updated synchronously, do not have to worry about the specifications and design synchronization problems. More amazing is that your design model can be implemented, you can always know if your design is reasonable, do it correctly, and don't have to wait until you write a lot of code.

It should be noted that the current ASML is a project that is still in research, and there are some problems with current versions. For example, you may have a mistake of "finding the entry point" when you first compile the ASML model, and you only need to close the vs.net closes once, this problem will only appear when compiling the ASML for the first time. . At the same time, ASML is also unable to interact with other .NET languages ​​such as VCs. In theory, ASML should be able to interact with any language, just the current version of the ASML plug-in Wizard unable to identify Project other than C # Project, perhaps the next version will improve J.

转载请注明原文地址:https://www.9cbs.com/read-31516.html

New Post(0)