coop.cpp

00001 // "coop.cpp"
00002 
00003 // (c) OPAC Team, LIFL, August 2005
00004 
00005 /* 
00006    Contact: paradiseo-help@lists.gforge.inria.fr
00007 */
00008 
00009 #include "../../core/cooperative.h"
00010 #include "send.h"
00011 #include "tags.h"
00012 #include "schema.h"
00013 #include "mess.h"
00014 #include "../../core/peo_debug.h"
00015 
00016 Runner * Cooperative :: getOwner () {
00017 
00018   return owner;
00019 }
00020 
00021 void Cooperative :: setOwner (Runner & __runner) {
00022 
00023   owner = & __runner;
00024 }
00025 
00026 void Cooperative :: send (Cooperative * __coop) {
00027 
00028   :: send (this, getRankOfRunner (__coop -> getOwner () -> getID ()), COOP_TAG);   
00029   //  stop ();
00030 }
00031 
00032 Cooperative * getCooperative (COOP_ID __key) {
00033 
00034   return dynamic_cast <Cooperative *> (getCommunicable (__key));
00035 }
00036 
00037 void Cooperative :: notifySending () {
00038 
00039   //getOwner -> setPassive ();
00040   //  resume ();
00041   //  printDebugMessage (b);
00042 }

Generated on Thu Jul 5 13:43:30 2007 for ParadisEO-PEO by  doxygen 1.4.7