Ejemplo n.º 1
0
        //int sumDel = 0; int nbDel = 0;
        protected void Deliberate()
        {
            Reasoner reasoner = GetReasoner();
            int      i        = 0;

            while (running && i++ < cyclesDeliberate && !reasoner.CanSleepDeliberate())
            {
                reasoner.Deliberate();
            }
            //sumDel += i; nbDel++;
            //System.out.println("running del "+(sumDel/nbDel)+"/"+cyclesDeliberate);
        }