Bottom-up Development | CPN Tools help |
How-to |
When creating a hierarchical net "bottom-up", you start by creating separate pages. In contrast to top-down development, this approach involves creating the most detailed parts of the net first. Later, existing pages are set as subpages for substitution transitions. Read more about how to edit the net and how to create a new page.
The example below is based on the example net for the Hierarchical Protocol. In this example, the page Sender
will be set as the subpage for the transition Sender
on page Top
.
The process of linking pages together is divided into three phases. First, assign port-types to places on the the subpage, using the Set port type tool.
Next, assign subpages to the substitution transitions on a superpage, using the Set subpage tool. First, apply the Set subpage tool to a transition, which will become a substitution transition. The tool must then be applied to the page which will become the subpage for the substitution transition. If the tool has been picked up from a palette, then the cursor icon will change after the tool has been applied to a transition, and the icon indicates that the tool should be applied to a page.
The final step to linking a subpage to a superpage, is to assign each port to a socket, using the Assign port-socket tool or the index on the substitution transition. Start by applying the tool to a port. If the tool has been picked up from the palette, then the cursor icon will change to indicate that the tool should now be applied to a socket. Focus will automatically change to the superpage. Finally, apply the tool to a socket on the superpage. Focus will now automatically change back to the subpage.
Syntax checking of the sub- and superpages will be started each time the Assign port-socket tool is applied.
If a page name is followed by numbers, e.g. (1)
, (2)
, etc., then there are multiple instances of that particular page. The markings of one instance of a subpage can be completely independent from the marking of other instance of the same subpage.