alliance-programmers '01
ALC : CVS loginfo, ocp/src


Christophe Alexandre (Christophe.Alexandre@asim.lip6.fr)
Tue, 4 Sep 2001 14:24:28 +0200

=================================================================== Modification le : Tue Sep 4 14:24:12 CEST 2001 Par : xtof =================================================================== Update of /users/outil/alliance/cvsroot/alliance/sources/ocp/src In directory coltrane.lip6.fr:/users/cao/xtof/alliance/sources/ocp/src Modified Files: PBin.cpp PMove.cpp PRow.cpp PRow.h PSubRow.h Log Message: version qui marche, la methode GetRow(random) dans PPlacement ne marche pas encore.... Encore pas mal de changement dans PMove. =================================================================== Index: PBin.cpp =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocp/src/PBin.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 50c50 < return os << GetMinX() << ',' << GetMinY() << " : " << GetMaxX() << ',' << GetMaxY(); --- > return os << "PBin: " << GetMinX() << ',' << GetMinY() << " : " << GetMaxX() << ',' << GetMaxY(); Index: PMove.cpp =================================================================== RCS file: /users/outil/alliance/cvsroot/alliance/sources/ocp/src/PMove.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -r1.2 -r1.3 10a11,24 > static double > PositionRand(const double Position, const double Distance, const double Max, const double Min) > { > double BorneInf, BorneSup; > > if ((BorneSup = Position + (double)(int)(Distance * Max + 0.5) ) > Max ) > BorneSup = Max; > > if ((BorneInf = Position - (double)(int)(Distance * Max + 0.5) ) < Min ) > BorneInf = Min; > > return BorneInf + (double)(int)((BorneSup - BorneInf) * rand() / (RAND_MAX+1.0)); > } > 152a167 > //double DstX; 166c181,187 < _dstRow = &Placement.GetRow(_srcRow, Dist); --- > // verion initiale > DstPos.SetY(PositionRand(SrcPos.GetY(), Dist, Placement.GetMaxY(), Placement.GetMinY())); > _dstRow = &Placement.GetRow(DstPos.GetY()); > DstPos.SetX(PositionRand(SrcPos.GetX(), Dist, _dstRow->GetMaxX(), _dstRow->GetMinX())); > > //nouvelle version > //_dstRow = &Placement.GetRow(_srcRow, Dist); 167a189 > 168a191,194 > > // prochaine methode a ecrire, renvoyer le > // subrow qui contient cet emplacement, > // sinon le subRow le plus proche. =================================================================== Ce message est envoyé au personnes abonnées à alliance-programmers Pour plus d'information sur cette mailling-list, visitez : http://asim.lip6.fr/alliance/mailing-lists/

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 08 September 2001.