The invention provides an
optical fiber communication
system modeling and simulation method based on graph native modeling
programming. According to the method, a DSL standard and specification
system with a graph structure as a core is constructed, and devices,
signal paths and transmission relations in the
system are abstracted into the graph structure in a unified mode. The DSL comprises a
data structure type, an entity and function classification mechanism, a parameter configuration mode and a modular expansion interface. The system operation architecture comprises a front-end analysis module and a rear-end execution module. The front-end analysis module analyzes a
user modeling script into a graph intermediate representation. And the rear-end module performs optimization,
byte code compilation and
virtual machine execution on the graph intermediate representation to obtain a
simulation result. In the implementation level, a
function mapping modeling method is adopted, input, output and configuration parameters of equipment are in mapping association with an
optical fiber communication
assembly, and a hierarchical
simulation model from a device to a system is constructed through function combination and nesting. The method has the intuition of graph structure modeling and the flexibility of a
programming interface, and can efficiently support the
simulation requirements of multi-level users.