它们能比你的图中更复杂吗?
如果没有,如下所示,它只是将图表的结构转换为
<Strategy>
<Name>Test-1</name>
<Quality-problem>Too much splurge in the windler<Quality-problem>
<Gate type="AND">
<Left>
<Metric>foo</Metric>
<Comparison>less-than</Comparison>
<Threshold>100</Threshhold>
</Left>
<Right>
<Metric>bar</Metric>
<Comparison>greater-than</Comparison>
<Threshold>200</Threshhold>
</Right>
</Gate>
</Strategy>
Run Code Online (Sandbox Code Playgroud)
如果它们确实变得更复杂,您仍然可以使用类似上面的东西,只是更复杂一点。您可以/应该编写一个 XML 模式来描述您所想到的内容,以便您可以使用标准验证工具、验证解析器等。
| 归档时间: |
|
| 查看次数: |
408 次 |
| 最近记录: |