📄 taskstatustranstype.java
字号:
package com.ict.netcom2.task;
public class TaskStatusTransType {
/**
* 任务由等待状态变迁为运行状态
*/
public static final int READY2RUNNING = 0x01;
/**
* 任务由等待状态变为中止状态
*/
public static final int READY2STOPPED = 0x02;
/**
* 任务由运行状态变为中止状态
*/
public static final int RUNNING2STOPPED = 0x03;
/**
* 任务由运行状态变为完成状态
*/
public static final int RUNNING2COMPLETED = 0x04;
/**
* 任务的一次测试完成
*/
public static final int RUNNING2ONCE = 0x05;
/**
* 任务由等待状态变为等待且执行状态
*/
public static final int READY2READYRUNNING = 0x06;
/**
* 任务执行过程中出现错误
*/
public static final int RUNNNINGERROR = 0x07;
public static String getType(int taskStatusTransType) {
switch (taskStatusTransType) {
case READY2RUNNING:
return "READY2RUNNING";
case READY2STOPPED:
return "READY2STOPPED";
case RUNNING2STOPPED:
return "RUNNING2STOPPED";
case RUNNING2COMPLETED:
return "RUNNING2COMPLETED";
case RUNNING2ONCE:
return "RUNNING2ONCE";
case READY2READYRUNNING:
return "READY2READYRUNNING";
case RUNNNINGERROR:
return "RUNNNINGERROR";
default:
return null;
}
}
public static void main(String[] str) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -