Patent ID: 7873500

Claim:
A method performed by a computer for building a model in a graphical modeling environment, the method comprising: building a sub-model in the graphical modeling environment at a first hierarchical level, the sub-model including a two-way connection block and a two-way connection port block, the two-way connection block having a unidirectional input port, a unidirectional output port, and a two-way connection port, the unidirectional input port and the unidirectional output port being configured for connection to one or more one or more functional blocks of the sub-model, and the two-way connection port of the two-way connection block being coupled to the two-way connection port block; is establishing a first subsystem in the graphical modeling environment at a second hierarchical level, the first subsystem representing the sub-model; representing at least the two-way connection port block of the sub-model at the first hierarchical level as a two-way connection port of the first subsystem in the graphical modeling environment at the second hierarchical level; and connecting, in the graphical modeling environment at the second hierarchical level, the two-way connection port of the first subsystem to a two-way connection port of a second subsystem through a two-way connection line, the two-way connection port of the first subsystem writing a first information to the second subsystem and reading a second information from the second subsystem via the two-way connection line.