Method and system for using editor objects to connect components
First Claim
1. A method in a computer system for composing a visual program, the method comprising:
- when selecting each of a plurality of components to be included in the visual program, instantiating a run-time object to implement the behavior of each selected component and instantiating an editor object for each selected component; and
under control of the instantiated editor object for a component, displaying a list of available ports for the instantiated run-time object that implements the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
directing the instantiated run-time object that implements the behavior of the component to establish a connection between the selected port and a target object, whereby during execution of the visual program the instantiated run-time object that implements the behavior of the component sends an indication of the event to each target object connected to the port upon occurrence of the event.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for interconnecting software components. In a preferred embodiment, the present invention instantiates an event object. The event object includes message information describing the message and a dispatching member function for invoking a member function of a target object passing the message information. A message is passed by invoking the dispatching member function of the event object passing an identifier to a target object and an identifier of a member function of the target object. The dispatching member function invokes the identified member function of the identified target object passing the event information as an actual parameter. The event object is preferably of a derived class that inherits a base class. The base class provides common event behavior, while the derived class provides behavior specific to a type of message.
-
Citations
18 Claims
-
1. A method in a computer system for composing a visual program, the method comprising:
-
when selecting each of a plurality of components to be included in the visual program, instantiating a run-time object to implement the behavior of each selected component and instantiating an editor object for each selected component; and
under control of the instantiated editor object for a component, displaying a list of available ports for the instantiated run-time object that implements the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
directing the instantiated run-time object that implements the behavior of the component to establish a connection between the selected port and a target object, whereby during execution of the visual program the instantiated run-time object that implements the behavior of the component sends an indication of the event to each target object connected to the port upon occurrence of the event. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-readable medium containing instructions for composing a visual program by:
-
when selecting each of a plurality of components to be included in the visual program, instantiating a run-time object to implement the behavior of each selected component and instantiating an editor object for each selected component;
under control of the instantiated editor object for a component, displaying a list of available ports for the instantiated run-time object that implements the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
directing the instantiated run-time object that implements the behavior of the component to establish a connection between the selected port and a target object, whereby during execution of the visual program the instantiated run-time object that implements the behavior of the component sends an indication of the event to each target object connected to the port upon occurrence of the event. - View Dependent Claims (10, 11)
-
-
12. A computer-readable medium containing instructions for execution by a computer system for composing a visual program by performing a method comprising:
-
when selecting each of a plurality of components to be included in the visual program, instantiating a run-time object to implement the behavior of each selected component and instantiating an editor object for each selected component;
under control of the instantiated editor object for a component, displaying a list of available ports for the instantiated run-time object that implements the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
directing the instantiated run-time object that implements the behavior of the component to establish a connection between the selected port and a target object, whereby during execution of the visual program the instantiated run-time object that implements the behavior of the component notifies each target object connected to the port of the occurrence of the event.
-
-
13. A computer-readable medium containing instructions for enabling a computer to compose a visual program comprised of multiple selected components by:
-
instantiating a run-time object to implement the behavior of each selected component;
instantiating an editor object for each selected component;
displaying a list of available ports for the instantiated run-time object that implement the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
the editor object directing the instantiated run-time object to establish a connection between the selected port and a target object, whereby during execution of the visual program the instantiated run-time object sends an indication of the event to each target object connected to the port upon occurrence of the event.
-
-
14. A computer-readable medium containing instructions for enabling a computer to compose a visual program comprised of multiple selected components by:
-
instantiating a run-time object to implement the behavior of each selected component;
instantiating an editor object for each selected component;
displaying a list of available ports for the instantiated ran-time object that implement the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
the editor object directing the instantiated run-time object to establish a connection between the selected port and a target object. - View Dependent Claims (15)
displaying a visual representation of the components during composition of the visual program.
-
-
16. A method in a computer system for composing a visual program comprised of multiple selected components, the method comprising:
-
instantiating a run-time object to implement the behavior of each selected component;
instantiating an editor object for each selected component;
displaying a list of available ports for the instantiated run-time object that implements the behavior of the component, each available port corresponding to an event associated with the component;
selecting a displayed port; and
directing the instantiated run-time object that implements the behavior of the component to establish a connection between the selected port and a target object. - View Dependent Claims (17)
-
-
18. A computer-readable medium containing instructions for enabling a computer to compose a visual program comprised of multiple selected components by:
-
instantiating an editor object for each selected component;
causing display of a list of available ports, each port corresponding to an event associated with the component;
enabling selection of a displayed port; and
causing a connection to be established between the selected port and a target object, such that during execution of the visual program, an indication of the event is sent to each target object connected to the port upon occurrence of the event.
-
Specification