The invention discloses a
system for automatically generating
interlocking software based on Boolean logic. The
system comprises a
database analysis module, a class module, a logic variable module, a logic tree module, a logic script generating module and a binary file generating module. The
database analysis module receives original trackside data and screens out information needed by
interlocking logic. The class module defines different types in the
interlocking logic. The logic variable module defines class member variables and attributes of the class member variables. An interlocking logic rule base module defines grammatical rules based on the interlocking logic. The logic tree module is used for transforming a
Boolean expression into a multi-fork
tree structure. The logic script generating module is used for generating instantiated interlocking
station interlocking scripts. The binary file generating module is used for generating instantiated interlocking
station binary files. According to the automatically-generated interlocking
software, a
relay logic expression familiar to
signal technicians serves as an expression form of codes, a rule base can be modified only in the mode similar to a
natural language in the modification process, a large amount of development time is saved, and work efficiency is improved.