forked from fanruan/design
Browse Source
* commit '6a8b12b3b109de89384b1b5de118bfb7e9d1525d': 遗漏了一个地方 之前接口开得有问题,部署时算子初始化会出错【读不到函数,因为依赖中有designer的类】 更改接口,分离原来的方法,单独成接口,为了方便算子生成时获取分组接口里面的函数。没有动FinctionGroup这个接口,因为动这里牵扯太广了,单独做一个接口专职获取公式就好master
superman
8 years ago
4 changed files with 49 additions and 55 deletions
@ -1,38 +0,0 @@ |
|||||||
package com.fr.design.fun.impl; |
|
||||||
|
|
||||||
import com.fr.design.formula.FunctionDefNAD; |
|
||||||
import com.fr.design.formula.FunctionGroup; |
|
||||||
import com.fr.design.formula.NameAndDescription; |
|
||||||
import com.fr.stable.fun.mark.API; |
|
||||||
import com.fr.stable.fun.mark.Mutable; |
|
||||||
import com.fr.stable.script.FunctionDef; |
|
||||||
|
|
||||||
|
|
||||||
@API(level = FunctionGroup.CURRENT_LEVEL) |
|
||||||
public abstract class AbstractFunctionGroup implements Mutable, FunctionGroup { |
|
||||||
|
|
||||||
@Override |
|
||||||
public int currentAPILevel() { |
|
||||||
return CURRENT_LEVEL; |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public String mark4Provider() { |
|
||||||
return getClass().getName(); |
|
||||||
} |
|
||||||
|
|
||||||
@Override |
|
||||||
public NameAndDescription[] getDescriptions() { |
|
||||||
FunctionDef[] funcs = getFunctionDefs(); |
|
||||||
int count = funcs.length; |
|
||||||
FunctionDefNAD[] nads = new FunctionDefNAD[count]; |
|
||||||
for (int i = 0; i < count; i ++) { |
|
||||||
nads[i] = new FunctionDefNAD(funcs[i]); |
|
||||||
} |
|
||||||
return nads; |
|
||||||
} |
|
||||||
|
|
||||||
public FunctionDef[] getFunctionDefs(){ |
|
||||||
return new FunctionDef[0]; |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue