[Pipet Devel] Baby-BL implementation

Jean-Marc Valin jean-marc.valin at hermes.usherb.ca
Sat Sep 9 15:47:53 EDT 2000

This is mostly for Jarl and Brad, but I'd like to keep the others informed:

I've attached how I see the Baby-BL (which links to the PL) being implemented.
This is short and I also expect the full implementation to be fairly small too.
...at least before we start putting all kinds of features. (When some comments
are replaced by actual code, it could be the first working version of the

Comments are welcome.


Jean-Marc Valin
Universite de Sherbrooke - Genie Electrique
valj01 at gel.usherb.ca
-------------- next part --------------
#include <BLstuff.h>
#include <PLStuff.h>

int main()
   //BL and PL initialization
   //get the network to run and the parameters from the mother-BL
   ParameterSet params = ...;
   UINetwork netToRun = ...;
   Network *net = netToRun->build("MAIN", p);

   //Wait for corba events and call the corresponding methods

//This method is called remotly using CORBA
ObjectRef getOutput(int output_id, int count)
   return net->last_node->getOutput(output_name, count);

//This method will be called by the 'Special PL node' that will be automatically connected 
// to dangling inputs after the scheduling (network splitting) is done.
ObjectRef fetchInput (URI node_location, int output_id, int count)
   //Ask the BL to ask getOutput to the BL that owns the node specified by 'node_location'
   return result.

More information about the Pipet-Devel mailing list