^1445907993917
@
sname
ModelTutorial
slabel
模型的分类和适用范围
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo
sname
AutoDemo
slabel
说明
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@ShowThingDescription
sname
ShowThingDescription
slabel
演示-模型说明
Sdescription
#$@text#$@
<h3>模型进阶说明</h3>

<ul>
	<li><strong>模型的分类</strong><br />
	模型可以分为实体模型和动作模型。<br />
	&nbsp;</li>
	<li><strong>模型的适用范围</strong><br />
	模型是基于代码比代码更高级的编程方法。<br />
	&nbsp;</li>
	<li><strong>模型的前途</strong><br />
	积累和可能的自动编程等。</li>
</ul>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowThingDescription
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@SysResponse
sname
SysResponse
slabel
系统-你好
swaitTime
2000
Sdescription
#$@text#$@
<p>你好。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@SendText
sname
SendText
slabel
用户-你好
swaitTime
1000
scontent
你好。
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo/@SysResponse1
sname
SysResponse
slabel
系统-本次演示的主题
swaitTime
3000
Sdescription
#$@text#$@
<p>今天我将讲解一些关于模型的等多知识。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1
sname
AutoDemo
slabel
模型的主要分类
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@ShowThingDescription
sname
ShowThingDescription
slabel
演示-模型的主要分类
Sdescription
#$@text#$@
<h3>模型可以分为两大类</h3>

<ul>
	<li><strong>实体模型</strong><br />
	用于表示实体的模型，比如桌子、椅子、凳子、窗口、人员信息等表示实体的模型。<br />
	&nbsp;</li>
	<li><strong>动作模型</strong><br />
	相当于代码模型，是可以当作程序执行的模型，比如Java、Groovy、Python和Scala等语言类模型，还比如Begin、try/cath、While和If等流程和语句模型等。</li>
</ul>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowThingDescription
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse
sname
SysResponse
slabel
系统-模型的主要分类
swaitTime
4000
Sdescription
#$@text#$@
<p>模型可以分为两大类，实体模型和动作模型。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SendText
sname
SendText
slabel
用户-请讲两者的区别
swaitTime
1000
scontent
那讲述下实体模型和动作模型的区别吧。
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse1
sname
SysResponse
slabel
系统-实体模型和动作模型的区别
swaitTime
5000
Sdescription
#$@text#$@
<p>好的，实体顾名思义就是用于表示各种实体的，而动作模型相当于代码，动作模型是可以执行的。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SendText1
sname
SendText
slabel
用户-二者是否有明显的区别
swaitTime
1000
scontent
实体模型和动作模型有严格的区分么？
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse2
sname
SysResponse
slabel
系统-解释实体模型和动作模型的区分
swaitTime
3000
Sdescription
#$@text#$@
<p>实体模型和动作模型其实并没有严格的分界线。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse3
sname
SysResponse
slabel
系统-实体模型也可以执行
swaitTime
5000
Sdescription
#$@text#$@
<p>实体模型通常也是可以执行的，因为我们可以为实体定义各种行为，只是执行时我们会说执行的是它的行为。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse4
sname
SysResponse
slabel
系统-动作模型也有实体
swaitTime
7000
Sdescription
#$@text#$@
<p>而动作模型其本身也是一个配置，并且一个动作模型也可以有子事物和行为等，所以一个动作模型也是实体模型，只是执行时通常把整个模型直接转化为动作执行。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SendText2
sname
SendText
slabel
用户-动作是什么
swaitTime
1000
scontent
刚才提供的事物和动作又是什么呢？
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse5
sname
SysResponse
slabel
系统-讲解事物和动作
swaitTime
5000
Sdescription
#$@text#$@
<p>动作和事物是X-Meta引擎的两个基本类，一个模型装载到系统后就用事物这个类来实例化，而事物这个类的实例可以转化为动作这个类的实例。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SendText3
sname
SendText
slabel
用户-理解事物和动作
swaitTime
1000
scontent
这么说事物就是模型，事物可以转化为动作，动作是可以执行的程序。
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse6
sname
SysResponse
slabel
系统-事物和动作理解正确
swaitTime
5000
Sdescription
#$@text#$@
<p>是的，事物是模型，动作是可以执行的程序，事物可以转化为动作。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo1/@SysResponse7
sname
SysResponse
slabel
系统-继续解释事物和动作
swaitTime
5000
Sdescription
#$@text#$@
<p>因此实体模型对应的是事物，而动作模型对应的是动作，由于在X-Meta引擎中任何事物都可以转化为动作，因此二者并没有绝对的区分。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2
sname
AutoDemo
slabel
模型的适用范围
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@ShowThingDescription
sname
ShowThingDescription
slabel
演示-模型的适用范围说明
Sdescription
#$@text#$@
<h3>适合用模型表示的东西</h3>

<ul>
	<li><strong>各种实体</strong><br />
	模型本身是数据，模型还可以有行为，因此模型适用于表示各种实体和对象。<br />
	&nbsp;</li>
	<li><strong>各种框架</strong><br />
	模型本身就相当于框架的配置，在XWorker可以更方便的使用框架。<br />
	&nbsp;</li>
	<li><strong>函数和组件的使用模型</strong><br />
	为了方便的调用常用的函数或组件等，可以使用动作模型来表示它们。</li>
</ul>

<h3>不适合用模型表示的东西</h3>

<ul>
	<li><strong>应该使用代码编写的程序</strong><br />
	模型编程是定位在代码编程之上的一种编程方法，模型编程并不是代码的替代者，而是以代码而基础的更高级的编程方式，因此像算法这样的有复杂逻辑和高执行效率的程序就不适合用模型化。</li>
</ul>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowThingDescription
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SendText
sname
SendText
slabel
用户-模型的适用范围
swaitTime
1000
scontent
我已基本理解模型的分类了，接下来可以讲解一下什么情况下适合使用模型么？
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse
sname
SysResponse
slabel
系统-讲解模型的适用范围
swaitTime
5000
Sdescription
#$@text#$@
<p>可以啊，在右面的现在显示的就是模型的适用范围的一个说明。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse1
sname
SysResponse
slabel
系统-请看下模型的适用范围
swaitTime
25000
Sdescription
#$@text#$@
<p>请先了解下，我会等待你读完。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SendText1
sname
SendText
slabel
用户-已经看完
swaitTime
1000
scontent
我已经看完了。
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo2/@SysResponse2
sname
SysResponse
slabel
系统-解释模型的适用范围
swaitTime
5000
Sdescription
#$@text#$@
<p>嗯，适不适合用模型主要是从方便的角度考虑的，有个基本了解即可。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3
sname
AutoDemo
slabel
模型的使用前途
sisChapter
true
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@AutoDemo
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@ShowThingDescription
sname
ShowThingDescription
slabel
演示-模型的使用前途
Sdescription
#$@text#$@
<h3>模型编程的未来</h3>

<ul>
	<li><strong>积累和重复利用</strong><br />
	把现有的组件和程序模型化，可以做有效的积累，也可以更方便的使用它们。<br />
	&nbsp;</li>
	<li><strong>自动化编程的可能实现</strong><br />
	模型本身是数据，可以分析以及用工具来生成，这为自动化编程提供了可能实现的基础。<br />
	&nbsp;</li>
	<li><strong>新一代的编程方法</strong><br />
	模型编程可能是新一代的编程方法，因此模型编程是基于数据和知识的编程，对于这个编程方法还会有更多的新发现。</li>
</ul>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@ShowThingDescription
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SendText
sname
SendText
slabel
用户-模型编程的好吃
swaitTime
1000
scontent
那么，模型编程对我有什么好处呢？
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SysResponse
sname
SysResponse
slabel
系统-参看右面的介绍
swaitTime
25000
Sdescription
#$@text#$@
<p>可以参看右面的介绍。</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SendText1
sname
SendText
slabel
用户-希望如此
swaitTime
1000
scontent
嗯，希望模型编程有这些好处。
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SysResponse1
sname
SysResponse
slabel
系统-再见
swaitTime
5000
Sdescription
#$@text#$@
<p>一定会的，本次演示就讲到这里吧，再见！</p>
#$@text#$@
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SysResponse
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
@/@AutoDemo3/@SendText2
sname
SendText
slabel
用户-再见
swaitTime
1000
scontent
再见！
sisChapter
false
sdescriptors
xworker.ide.tools.autodemo.AutoDemo/@SendText
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
