public static SearchRequest analyzeRequest(int id,Position prevPos,ArrayList<Move> mList,Position currPos,boolean drawOffer,String engine,int numPV){
  SearchRequest sr=new SearchRequest();
  sr.searchId=id;
  sr.startTime=System.currentTimeMillis();
  sr.prevPos=prevPos;
  sr.mList=mList;
  sr.currPos=currPos;
  sr.drawOffer=drawOffer;
  sr.isSearch=false;
  sr.isAnalyze=true;
  sr.wTime=sr.bTime=sr.wInc=sr.bInc=sr.movesToGo=0;
  sr.engine=engine;
  sr.strength=1000;
  sr.numPV=numPV;
  sr.ponderEnabled=false;
  sr.ponderMove=null;
  sr.posHashList=null;
  sr.posHashListSize=0;
  return sr;
}

public static SearchRequest analyzeRequest ( int id , Position prevPos , ArrayList < Move > mList , Position currPos , boolean drawOffer , String engine , int numPV ) { SearchRequest sr = new SearchRequest ( ) ; sr . searchId = id ; sr . startTime = System . currentTimeMillis ( ) ; sr . prevPos = prevPos ; sr . mList = mList ; sr . currPos = currPos ; sr . drawOffer = drawOffer ; sr . isSearch = false ; sr . isAnalyze = true ; sr . wTime = sr . bTime = sr . wInc = sr . bInc = sr . movesToGo = 0 ; sr . engine = engine ; sr . strength = 1000 ; sr . numPV = numPV ; sr . ponderEnabled = false ; sr . ponderMove = null ; sr . posHashList = null ; sr . posHashListSize = 0 ; return sr ; }
create an analysis request object .
