gp_state.java

来自「Genetic Programming。GP算法在方程逼近求解上的应用。」· Java 代码 · 共 42 行

JAVA
42
字号


public class GP_State
{
	

        public static final int IDLE = 0;
        public static final int STARTED = 1;
        public static final int STOPPED = 2;

        private int state = IDLE;

        //返回运行状态
        public int getState() 
        {
                return state;
        }
        
        public void setState(int state)
        {
        	this.state=state;
        	
        	
        	}
	public GP_State()
	{
		this(IDLE);
		}
	
	public GP_State(int state)
	{
		this.state=state;
		
		}
	
	
	
	
	
	
	
	}

⌨️ 快捷键说明

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