火龙果会员
注册 找回密码

 
问题

 
解答

  求知 文章 文库 Lib 视频 iPerson 课程 认证 咨询 工具 讲座 Model Center   Code
会员   
订购 | 案例 | 建模扩展语言 | 模型框架 | 学习资源 | 培训&咨询 | 解决方案 | 用户组 | 客户专区 | 联系我们
 
怎样实现core.xml的模型与它的约束文件的集成 浏览 2425次  1232次   更多问题...
陈传芳  2016-1-8 14:41:10
我这里有一份core.xml模型文件,另外还有一份对这些模型的约束文件。请问如何将这些约束加到这个模型文件对应的类中并生成正确的代码    

Core.xml 
core的约束.txt 
俎涛, 2016-1-13  
约束文件使用EA编辑生成的还是独立的。   
 
俎涛, 2016-1-13  
Sparx  System公司  Dermot帮助解答了这个问题,俎涛翻译i如下:

显然这个core.txt的文件中的  约束  的  结构  不符合任何机器可读的结构。这样的约束将很可能需要手工录入到模型里。请看元素属性页-使用约束选项。

除此之外,约束不能用作代码生成,这样我们不知道你在期待什么结果。(俎涛注:这个需求似乎不存在)
   
 
Dermot, 2016-1-13  
There  doesn′t  appear  to  be  any  machine  readable  structure  to  the  core.txt  text  file  describing  the  constraints,  so  the  constraints  will  probably  need  to  be  manually  entered  into  the  model.  See  the  Element  Properties  page  -  use  the  Constraints  options.

Other  than  that,  constraints  are  not  used  for  code  generation  so  we  are  not  sure  what  result  you  are  expecting?   
 
 
回复
添加附件
验证码   验证码,看不清楚?请点击刷新验证码