This video will introduce you to the most important partition actions in the MES Model & Refactor® (MoRe) tool for improving the structure of your model.
How to Use MoRe: Partition
You will learn how to:
- Move selected blocks into or out of subsystems while retaining all signal connections using the “Move Blocks Down / Up” action. This, for example, can be used for refactoring interfaces, moving a bus selector into a subsystem so that only the bus enters instead of individual signals, while automatically naming ports based on signal names.
- Correct model layouts after moving blocks by using the “Adjust Blocks to Destinations” action, ensuring your model remains readable and organized.
- Use the “Split Subsystem” action to divide a subsystem into two on the same level. This helps you follow the design principle of high cohesion when you realize a subsystem contains two completely independent parts.
- Merge subsystems with closely related content using the “Merge Subsystems” action. MoRe simplifies this process by moving the blocks to the target and automatically removing the empty source subsystem while preserving all signal connections.
- Use the “Create Subsystem” action to generate a subsystem from selected blocks. This tool is more intelligent than Simulink’s built-in function because it automatically names ports based on both signal names and connected ports, which saves significant time when working with larger subsystem.