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