Model-engineering implementation and expansion (Design Mode C #) interpreter mode interpreter-reference answer

Source: Internet
Author: User
Tags stock prices

 

Transferred from: Model-engineering implementation and expansion (Design Mode C)

Http://www.cnblogs.com/callwangxiang/

 

1,Designed by youGlobal stock marketThe online financial system, which has a function of Real-Time query of stock prices. Users generally use Chinese names of stocks, Chinese pinyin of stocks, English names of stocks, abbreviations of stocksCodeYou can use the interpreter mode to query the stock price.. NET Framework 4.0To more efficiently complete the query function.

Constraints:

1)The stock information of various countries is stored on different servers. These servers are distributed across your company's data centers on several continents around the world, and the stock information of each data center is not at the intersection.

2)Assume that there is no distributed cache in the existing environment, and each server node only has local data cached in the process.

3)The communication latency to each data center is generally in1 S-0.01 s, User response needs to be in2 SCompleted

 

 

 

2,Based on the examples of addition and subtraction calculators in the classic interpreter mode section in this chapter and the examples of XSD custom business language interpreters, a custom XML language for special operation in addition and subtraction computing is designed to develop an interpreter for it, it is required to verify simple syntax errors and perform calculations correctly..

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.