摘要 |
Method, system and article of manufacture for creating object oriented components having one or more bidirectional ports for use with in connecting object oriented based components. The two way or bidirectional ports are first initialized to their two way state. The ports can then dynamically function as either input or output ports based solely on the manner in which they are used. The components set themselves internally to reflect the actual status of their bi-directional ports. When a connection to another component is completed, the connecting component object sends a message to the component at the other end of the connection indicating how its own port is set, input or output. The message receiving component then makes sure that its connection participating port is set oppositely. If the message receiving component's connecting port is bidirectional, that port is set opposite to the status of the first connected port. If the message receiving component's port is unidirectional and as such is in conflict with the status of the first connected port, that is, it is set to "output" when the first connected port is also set to "output", the connection is prohibited and an appropriate error message is displayed.
|