Example Components : Example Component Library : STM_BRANCH_2

STM_BRANCH_2

Branches transactions to one of two outputs.

Description
Generates STMM_TRANSACTION_TYPE transactions at the OUTPUT1 or OUTPUT2 port. When an INPUT arrives, the component generates a uniform real number between 0.0 and 100.0.
If the number is:

Less than or equal to PROB1, OUTPUT1 is set to INPUT.

Greater than PROB1, OUTPUT2 is set to INPUT.

When you insert the STM_BRANCH_2 component into an activity chart, the component is represented by the following graphic image.
I/O Stubs
 
 
Analysis Statistics
 
 
If you set ANALYZE, the following statistics are gathered:
 
Number of OUTPUT1 transactions
Number of OUTPUT2 transactions
 
To access these values in the panels or in the simulation monitor, use the following naming convention: <Component_Name>^value_name
For example, you access the T_TRANSACTIONS_OUTPUT1 for component BRANCH as BRANCH^T_TRANSACTIONS_OUTPUT1.
CLEAR clears the statistics.
Termination Type
Reactive Controlled