10 changed files with 138 additions and 36 deletions
@ -0,0 +1,29 @@ |
|||||
|
package com.epmet.plugin.power.enums; |
||||
|
|
||||
|
|
||||
|
/*** |
||||
|
* 动力主轴相关标签类别 |
||||
|
* @author work@yujt.net.cn |
||||
|
* @date 2022/4/21/0021 17:11 |
||||
|
*/ |
||||
|
public enum PowerTagCategoryEnum { |
||||
|
|
||||
|
/** |
||||
|
* 动力主轴负责人 |
||||
|
*/ |
||||
|
LEADER("leader"), |
||||
|
/** |
||||
|
* 动力主轴节点 |
||||
|
*/ |
||||
|
STRUCT("struct"); |
||||
|
|
||||
|
private String category; |
||||
|
|
||||
|
PowerTagCategoryEnum(String category) { |
||||
|
this.category = category; |
||||
|
} |
||||
|
|
||||
|
public String category() { |
||||
|
return category; |
||||
|
} |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.plugin.power.enums; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
|
||||
|
/*** |
||||
|
* 动力主轴相关节点级别 |
||||
|
* @author work@yujt.net.cn |
||||
|
* @date 2022/4/21/0021 17:11 |
||||
|
*/ |
||||
|
public enum PowerTagLevelEnum { |
||||
|
|
||||
|
/** |
||||
|
* 顶级节点 |
||||
|
*/ |
||||
|
ROOT(NumConstant.ZERO), |
||||
|
/** |
||||
|
* 二级节点 |
||||
|
*/ |
||||
|
CHILD_FIRST(NumConstant.ONE), |
||||
|
/** |
||||
|
* 三级节点 |
||||
|
*/ |
||||
|
CHILD_SECOND(NumConstant.TWO); |
||||
|
|
||||
|
private int level; |
||||
|
|
||||
|
PowerTagLevelEnum(int level) { |
||||
|
this.level = level; |
||||
|
} |
||||
|
|
||||
|
public int level() { |
||||
|
return level; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue