This block represents the rules that guide the division of the flow of entities in the system.
Each rule can be configured as:
- IF. Depending on the value of the condition, the entity will be forwarded through the OUT port (if true) or the NEXT port (if false).
- WITH. Will forward the entity through the OUT port with a given probability. The rest are sent through the NEXT port.
- ELSE. Sends the entity through the OUT port unless the maximum number of branches has been reached.
The EndRule parameter indicates if whether this is the last rule of the branch block or not. If yes, it must be set to true.
model BRule = DESLib.SIMANLib.SRC.Blocks.BranchRule.brule;
Generated at 2024-11-23T19:25:52Z
by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos