Stateflow.Port
Entry or exit port in state or atomic subchart
Description
Use Stateflow.Port
objects to create ports and junctions that
provide entry and exit connections across boundaries in the Stateflow® hierarchy. Entry and exit ports improve componentization by isolating the
transition logic for entering and exiting states. Unlike supertransitions, they can be used in
atomic subcharts. For more information, see Create Entry and Exit Connections Across State Boundaries.
Entry and exit ports are located on the boundary of a state or atomic subchart. Each port
has a matching junction that marks the entry or exit point inside the state or atomic
subchart. The port and junction are represented by separate Stateflow.Port
objects.
Creation
Description
creates a port
= Stateflow.Port(parent
,portType
)Stateflow.Port
object of the specified port type in the parent.
The function creates a second Stateflow.Port
object for the matching
entry or exit port on the boundary of the parent. To identify the matching
Stateflow.Port
object, use the function Stateflow.findMatchingPort
.
Input Arguments
Properties
Object Functions
getParent | Identify parent of object |
sinkedTransitions | Identify transitions with specified destination |
sourcedTransitions | Identify transitions with specified source |
dialog | Open properties dialog box |
isCommented | Determine if graphical object is commented out |
view | Display object in editing environment |
highlight | Highlight graphical object |
fitToView | Zoom in on graphical object |
Examples
Tips
If you move an entry or exit junction to a different parent, Stateflow deletes the
Stateflow.Port
object for the matching port and creates aStateflow.Port
object on the new parent. To identify the new matching port, use theStateflow.findMatchingPort
function.
Version History
Introduced in R2021b