潘志宝
2024-11-13 a13dc8843bbf54dacca27254000865a539a87231
提交 | 用户 | 时间
a27351 1 <root version="企业版">
D 2     <menu name="数据模型">
3         <sub-menu name="数据源">
4             <item name="数据库" shortName="数据库" class="DatabaseUnit" isContant="true" icon="database.png" width="70"
5                   height="70"/>
6             <item name="数据文件" shortName="数据文件" class="OtherDetailDataUnit" isContant="true" icon="txt.png" width="70"
7                   height="70"/>
8         </sub-menu>
9 #{foreach} ($collect in $collects.entrySet())
10         <sub-menu name="${collect.getKey()}">
11 #{foreach} ($collect1 in $collect.getValue().entrySet())
12             <group name="${collect1.getKey()}">
13 #{foreach} ($model in $collect1.getValue())
14                 <group-item name="${model.pyChineseName}" shortName="${model.pyChineseName}" isContant="false"
15                     icon="$!{model.icon}" width="70" height="70" isFactor="true">
16 #{if}($model.pyType=="predict")
17 #{foreach} ($method in $model.modelMethods)
18 #{if}($method.methodName=="train")
19                     <tab-train class="${model.pkgName}.impl.${model.pyName}Impl" method="train"
20                                params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap">
21                         <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
22 #{foreach} ($setting in $method.methodSettings)
23 #{if}($setting.type=="select")
24                         <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
25 #{foreach} ($select in $setting.settingSelects)
26                             <select key="$!{select.selectKey}" name="$!{select.name}"/>
27 #{end}
28                         </property>
29 #{else}
30                         <property key="${setting.settingKey}" name="${setting.name}" value="$!{setting.value}" type="${setting.type}" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}"/>
31 #{end}
32 #{end}
33                     </tab-train>
34 #{elseif}($method.methodName=="predict")
35                     <tab-load class="${model.pkgName}.impl.${model.pyName}Impl" method="predict"
36                               params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap" resultKey="$!{method.resultKey}"
37                               modelRules="${model.pkgName}.impl.${model.pyName}Impl.predict">
38                         <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
39 #{foreach} ($setting in $method.methodSettings)
40 #{if}($setting.type=="select")
41                         <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
42 #{foreach} ($select in $setting.settingSelects)
43                             <select key="$!{select.selectKey}" name="$!{select.name}"/>
44 #{end}
45                         </property>
46 #{else}
47                         <property key="${setting.settingKey}" name="${setting.name}" value="$!{setting.value}" type="${setting.type}" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}"/>
48 #{end}
49 #{end}
50
51                     </tab-load>
52 #{else}
53                     <tab-logic class="${model.pkgName}.impl.${model.pyName}Impl" method="$!{method.methodName}"
54                                params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap"
55                                resultKey="$!{method.resultKey}">
56                         <fieldset name="基本参数">
57 #{foreach} ($setting in $method.methodSettings)
58 #{if}($setting.type=="select")
59                             <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
60 #{foreach} ($select in $setting.settingSelects)
61                                 <select key="$!{select.selectKey}" name="$!{select.name}"/>
62 #{end}
63                             </property>
64 #{else}
65                             <property key="${setting.settingKey}" name="${setting.name}" value="$!{setting.value}" type="${setting.type}" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}"/>
66 #{end}
67 #{end}
68                         </fieldset>
69                     </tab-logic>
70 #{end}
71 #{end}
72 #{elseif}($model.pyType=="schedul")
73 #{foreach} ($method in $model.modelMethods)
74                     <tab-logic class="${model.pkgName}.impl.${model.pyName}Impl" method="$!{method.methodName}"
75                                params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap"
76                                resultKey="$!{method.resultKey}">
77                         <fieldset name="基本参数">
78 #{foreach} ($setting in $method.methodSettings)
79 #{if}($setting.type=="select")
80                             <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
81 #{foreach} ($select in $setting.settingSelects)
82                                 <select key="$!{select.selectKey}" name="$!{select.name}"/>
83 #{end}
84                              </property>
85 #{else}
86                              <property key="${setting.settingKey}" name="${setting.name}" value="$!{setting.value}" type="${setting.type}" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}"/>
87 #{end}
88 #{end}
89                         </fieldset>
90                     </tab-logic>
91 #{end}
92 #{end}
93                 </group-item>
94 #{end}
95             </group>
96 #{end}
97         </sub-menu>
98 #{end}
99
100         <sub-menu name="流程控制">
101             <item name="控制" shortName="控制" class="TimeControlUnit" isContant="true" icon="control.png" width="50"
102                   height="50" isControl="true"/>
103             <item name="起始时间" shortName="时间" class="StartTimeUnit" isContant="true" icon="time.png" width="50"
104                   height="50" isStartTime="true"/>
105             <item name="延时" shortName="延时" class="DelayUnit" isContant="true" icon="delay.png" width="50" height="50"/>
106         </sub-menu>
107         <sub-menu name="运算方法">
108             <item name="加" shortName="加" class="PlusUnit" isContant="true" icon="plus.png" width="50" height="50"
109                   set="false"/>
110             <item name="减" shortName="减" class="MinusUnit" isContant="true" icon="minus.png" width="50" height="50"
111                   set="false"/>
112             <item name="乘" shortName="乘" class="MultiplyUnit" isContant="true" icon="multiply.png" width="50"
113                   height="50" set="false"/>
114             <item name="除" shortName="除" class="DivideUnit" isContant="true" icon="divide.png" width="50" height="50"
115                   set="false"/>
116             <item name="积分器" shortName="积分器" class="IntegratorUnit" isContant="true" icon="integrator.png" width="50"
117                   height="50"/>
118         </sub-menu>
119         <sub-menu name="图表显示">
120             <item name="图" shortName="图" class="ChartUnit" isContant="true" icon="tu.png" width="70" height="70"
121                   set="false"/>
122             <item name="结果图" shortName="结果图" class="ChartResultUnit" isContant="true" icon="jieguotu.png" width="70"
123                   height="70" set="false"/>
124             <item name="预测图" shortName="预测图" class="RealTimeChartUnit" isContant="true" icon="yucetu.png" width="70"
125                   height="70"/>
126             <item name="散点图" shortName="散点图" class="ScatterPlotChartUnit" isContant="true" icon="sandiantu.png"
127                   width="70" height="70" set="false"/>
128             <item name="表" shortName="表" class="TableUnit" isContant="true" icon="biaoge.png" width="70" height="70"
129                   set="false"/>
130             <item name="文本显示器" shortName="文本显示器" class="TextShowUnit" isContant="true" icon="wenbenxianshi.png"
131                   width="70" height="70"/>
132         </sub-menu>
133         <sub-menu name="其他">
134             <item name="常数" shortName="常数" class="ConstantUnit" isContant="true" icon="changshu.png" width="50"
135                   height="50" runningSet="true"/>
136             <item name="总线" shortName="总线" class="IBusUnit" isContant="true" icon="zongxian.png" width="70"
137                   height="70"/>
138             <item name="行总线" shortName="行总线" class="HIBusUnit" isContant="true" icon="zongxian.png" width="70"
139                   height="70"/>
140             <item name="选择" shortName="选择" class="IKeyUnit" isContant="true" icon="xuanze.png" width="50" height="50"/>
141         </sub-menu>
142     </menu>
143 </root>