⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maxcyclescondition.java

📁 jooneDTE的源码
💻 JAVA
字号:
/* * NumCyclesCondition.java * * Created on 25 agosto 2004, 18.16 */package org.joone.dte.control;import org.joone.dte.*;import org.joone.dte.TaskListFactory;/** * This StopCondition class stops after maxCycles cycles * @author  paolo */public class MaxCyclesCondition implements StopCondition {    private int maxCycles;    /** Creates a new instance of NumCyclesCondition */    public MaxCyclesCondition() {    }        public boolean done(TaskListFactory tasks, int currentCycle) {        if (currentCycle >= maxCycles)            return true;        else            return false;    }        /**     * Getter for property maxCycles.     * @return Value of property maxCycles.     */    public int getMaxCycles() {        return maxCycles;    }        /**     * Setter for property maxCycles.     * @param maxCycles New value of property maxCycles.     */    public void setMaxCycles(int maxCycles) {        this.maxCycles = maxCycles;    }        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -