00001 /* 00002 * Parallel state space search library 00003 * 00004 * Jonathan A. Booth 00005 * Fri Mar 28 19:01:25 CST 2003 00006 */ 00007 00008 #include "cklibs/search.h" 00009 #include "cklibs/search.decl.h" 00010 00011 /* ************************************************************************ 00012 * 00013 * ************************************************************************ */ 00014 // The unpack function gets called on the remote processor after the message 00015 // has been received. I use it to fill the solution pointer with a pointer 00016 // to a local copy of the solution. I then tell the group that it can go 00017 // jump out a window. 00018 searchResults * searchResults::unpack(void *inbuf) { 00019 searchResults *me = CMessage_searchResults::unpack(inbuf); 00020 00021 // Grab a copy of the solution. 00022 CProxy_idaStarGroup group(me->GroupID); 00023 idaStarGroup *local = group.ckLocalBranch(); 00024 me->Solution = local->Solution->clone(); 00025 00026 // Don't need the group anymore. 00027 group.Terminate(); 00028 00029 // Return the new message. 00030 return me; 00031 } 00032 00033 // search.def.h is a local file and not placed in cklibs. 00034 #include "search.def.h"