REMOVING DATA SET EXPOSERS AND COLLECTORS FROM BEHAVIORAL DESIGN CODE
A computer implemented method removes an exposer and a collector from a design. A first transport is identified in a design that connects to both exposer and collector. The method determines whether a collector output and an exposer input have matching data set type. If the data set type of the collector output matches the data set type of the exposer input, then a second and third transport are substituted in place of the first transport, collector, and exposer. The second transport is connected to a first input transport that had been connected to a collector input and to a first output transport that had been connected to an exposer output. The third transport is connected to a second input transport that had been connected to another collector input and to a second output transport that had been connected to an exposer output.
1 . A computer implemented method of removing an exposer and a collector from a design, the method comprising:
identifying in a design a first transport that connects to both an exposer and a collector;
determining whether an output of the collector and an input of the exposer have matching data set type;
if the data set type of the collector output matches the data set type of the exposer input, then substituting in place of the first transport and the collector and the exposer, a second transport and a third transport;
the second transport being connected in the design to a first input transport that had been connected in the design to an input of the collector and to a first output transport that had been connected to an output of the exposer; and
the third transport being connected in the design to a second input transport that had been connected in the design to another input of the collector and to a second output transport that had been connected to an output of the exposer.
2 . The method of claim 1 , wherein the input of the collector having been connected to a constant value, the collector being removed and the second and third transports being connected to the constant values.
3 . The method of claim 2 , wherein all the collectors and exposers are removed, leaving only constant values connected to the second and third transports.
4 . The method of claim 1 , further comprising:
identifying in the design a fourth transport that connects to both an exposer and a collector;
determining whether an output of the collector and an input of the exposer connected to the fourth transport have matching data set type;
if the data set type of the collector output matches the data set type of the exposer input, then substituting in place of the fourth transport and the collector and the exposer, a fifth transport and a sixth transport;
the fifth transport being connected in the design to a third input transport that had been connected to the fourth transport in the design to an input of the collector and to a third output transport that had been connected to an output of the exposer connected to the fourth transport; and
the sixth transport being connected in the design to a fourth input transport that had been connected to the fourth transport in the design to another input of the collector and to a fourth output transport that had been connected to an output of the exposer connected to the fourth transport.