This library was built using the encapsulation technique discussed earlier. The hydraulic motor is described by a bond graph with two bond graph connectors at the input, and one signal connector at the output:
The servo valve, on the other hand, is described by another bond graph with one signal connector at the input, and two bond graph connectors at the output:
In this way, the two components can be connected in the form of a block diagram:
where they can then be used as part of a control loop: