Font Size: a A A

Dependency Injection Mechanism In Intelligence Information System Of Power Quality

Posted on:2014-02-24Degree:MasterType:Thesis
Country:ChinaCandidate:J GongFull Text:PDF
GTID:2252330401457070Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Dependency injection mechanism is a key to the design principles of object-oriented programming, it is mainly used to reduce the coupling problem of computer program, sometimes it is also called as the dependency inversion. As an important principle of computer program design mode, it has been widely used in object-oriented programming. By using dependency injection mechanism coupling between classes can be moved out from the code, and so that the dependency among classes become lower. Interfaces and their implementation are transparent. The flexibility of the class implementation increase. In the program design, with the use of dependency injection, the rewriting of the code will be greatly reduced when the system is updated later.Based on the study of realization and implementation principle of dependency injection mechanism in some current several mature framework, this paper proposed an implementation of dependency injection mechanism based on the C++at the aim of solving the problem of multiple types of monitoring data in the power quality intelligent information system. First of all, this paper introduces the basic architecture of the power quality intelligent information system. There my be many kinds of data sources who provid monitoring data for the power quality intelligent information system, and the change of system program design will be made by the change of data source. In order to avoid this, using of dependency injection mechanism is necessary. Secondly, as the system is based on C++who has no unifying implementation for dependency injection mechanism, after the analysis of implementation feasibility of dependency injection mechanism in C++, model on the implementation of dependency injection mechanism in Spring framework a new design and implementation of the dependency injection mechanism is proposed based on C++; Finally, with of application of this scheme the problem of multiple data sources is solved and the flexibility of the system is also improved.
Keywords/Search Tags:Multiple Data Source Support, Dependency Injection, Power Quality
PDF Full Text Request
Related items