=================================================================== Modification le : Thu Feb 21 14:17:57 MET 2002 Par : hcl =================================================================== Update of /users/outil/alliance/cvsroot/alliance/sources/ocr/sce/rout In directory rondo:/users/cao/hcl/alliance/sources/ocr/sce/rout Modified Files: findNPointsPath.c ocrAstar.c ocrRouter.c Log Message: Introducing a new algo (A*, dont yet work...) =================================================================== Index: findNPointsPath.c =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocr/sce/rout/findNPointsPath.c,v retrieving revision 1.12 retrieving revision 1.13 diff -r1.12 -r1.13 5a6,8 > Revision 1.13 2002/02/21 13:17:56 hcl > Introducing a new algo (A*, dont yet work...) > 665a669,711 > ocrNaturalInt biroute (ocrRoutingParameters *i_pParam, > ocrWRoutingGrid *i_pGrid, > ocrConnector *l_pCon1, > ocrConnector *l_pCon2, > ocrSignal *i_pSignal > ) > { > ocrNaturalInt l_uLength = 0; > > switch (g_pOption->ALGO) { > case 0: > l_uLength = FINDPATH(i_pParam, i_pGrid, > l_pCon1->CON->X, > l_pCon1->CON->Y, > (l_pCon1->CON->Z ? l_pCon1->CON->Z - 1 : l_pCon1->CON->Z), > l_pCon2->CON->X, > l_pCon2->CON->Y, > (l_pCon2->CON->Z ? l_pCon2->CON->Z - 1 : l_pCon2->CON->Z), > i_pSignal->INDEX, > i_pSignal > ); > break; > case 1: > display (LEVEL, DEBUG, "\no Launching A*\n"); > l_uLength = find_path_astar(i_pParam, i_pGrid, > l_pCon1->CON->X, > l_pCon1->CON->Y, > (l_pCon1->CON->Z ? l_pCon1->CON->Z - 1 : l_pCon1->CON->Z), > l_pCon2->CON->X, > l_pCon2->CON->Y, > (l_pCon2->CON->Z ? l_pCon2->CON->Z - 1 : l_pCon2->CON->Z), > i_pSignal->INDEX, > i_pSignal > ); > display (LEVEL, DEBUG, "o back from A*\n"); > break; > default: > display (LEVEL, ERROR, "unknown algorithm\n"); > exit (-1);