[Pipet Devel] oops... this one instead

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

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

//This Baby-BL program will be called by the mother-BL that runs on each machine.
//This executable will be linked against the PL libraries.
int main()
   //BL and PL initialization
   //get the network to run and the parameters from the mother-BL
   ParameterSet params = ...;
   UINetwork netToRun = ...;
   //Create a runnable network from the UINetwork.
   Network *net = netToRun->build("MAIN", p);
   //perform initialization

   //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