/*
 * Idozito.java (fake!)
 * kamu az eNTitanok.util.Idozito helyett, a prototípushoz
 * by pts@fazekas.hu at Mon Apr 23 08:54:23 CEST 2001
 * további doksi: a README-ben és e file legkülső class-ának fejkommentjében
 *
 * Kincskereső Kisgömböc (C) Early May 2001 by eNTitánok (Rév Szilvia,
 * Szabó Péter <pts@inf.bme.hu>, Szurdi Miklós, Weizengruber Attila).
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or   
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package eNTitanok.fake;

/**
 * Kamu az eNTitanok.util.Idozito helyett, a prototípushoz. Nem várakozik, azonnal visszatér.
 */
public class Idozito {
  public Idozito(int _interval_ms) {}
  public void setDaemon(boolean dummy) {}
  public void start() {}
  
  public static class Idozitett {
    protected long megteve;
    public Idozitett(Object idozito) { ujraindit()}
    /**
     * Alszik egy ciklusnyit (vagy kicsit kevesebbet).
     * @return pontosan akkor `true', ha utoljára volt időnk aludni. A kamu
     * implementációban mindig `true'.
     */
    public boolean altass_el() { megteve++; return true}
    public void lassu_muvelet() { altass_el()}
    public void gyors_muvelet() { altass_el()}
    public boolean lehet_lassu_muvelet() { return true}
    public void ujraindit() { megteve=0; }
    public long getMegteve() { return megteve; }
    public long getEloirtPeriodus() { /*micros-ban*/ return 42; }
    public long getSikerultPeriodus() { /*micros-ban*/ return 42; }
    public long getLassuMuveletSzazalek() { return 100L}
  } /// class Idozitett
} /// class Idozito