Application of design patterns in power system transient simulator

The application of object-oriented design patterns in transient simulation program for distributed generation systems and micro-grid is introduced in this paper, such as factory method pattern, adapter pattern, strategy pattern and singleton pattern. Taking the advantages of the object-oriented design, the low coupling between modules as well as high cohesion within the module are achieved and have applied in the transient simulation program. The theory of design pattern makes the software more flexible and extensible to the program functions. The universality of design patterns integration methods described in the paper proposes a reference for other simulation programs in power system.