版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
之前的之前要看的视频观看视频:航天神五、神六发射时,飞行控制室实况录相。注意,哪些地方应用了仿真技术为什么要用?不用行不行?第1页/共15页第一页,共16页。5.1例子:熟读唐诗三百首,不会作诗也会呤销售渠道的模拟:背景:ThisisanAgentBasedmodelofasalesprocessinabusinesswhereclientsaretobereviewedbythecompany:e.g.thiscouldbeinsurance,banking,leasing,etc.TheprocesshasseveralstagesthataremodeledbydifferentstatesinthestatechartofaCustomerobject:initialcontact,quote,creditreview.Thecustomermayleaveoneachstage,andthecompany,inturn,mayrejectthecustomer.Themodelhelpsyoutoexaminehowtheskilllevelandsizeofthesalesforceandthecreditreviewteamaffecttheefficiencyofthewholeprocess.第2页/共15页第二页,共16页。5.2Agent的形成A初始状态和属性Prospect的最初位置:Getx和getY第3页/共15页第三页,共16页。状态图Statechart:Agent的各种状态在这里用图形方式表达,状态图中,将各种状态变化时的行为或者属性更改在此处写出,这里(可能需要用到各种Anylogic里的编程对象)例如:潜在客户prospect的变化状态。第4页/共15页第四页,共16页。在mainmodel中进行调用用get返回对模型中各种对象的引用在不同的状态图中对这些对象进行编程和调用第5页/共15页第五页,共16页。各种变量和参数(二者有何区别?)Mainmodel中的参数与变量各个不同的状态图中的参变量统计状态与表示思考:哪些变量要放在statechart中哪些要放在Mainmodel中?第6页/共15页第六页,共16页。集成运行展示:salesfunnel第7页/共15页第七页,共16页。5.3具体的学习StatechartEntryPoint、FinalstateStatechartentrypointisusedtoindicatetheinitialstateofthestatechart.
Thereshouldbeexactlyonestatechartentrypointdefinedforeachstatechart.Youmaydefineseveralindependentstatechartsforthesameactiveobject,eachonedescribingsomeparticularprocess.InthiscaseAnyLogicwilldistinguishhowmany
distinctstatechartstherearebyanalyzingthenumberofstatechartentrypoints.
第8页/共15页第八页,共16页。GeneralpropertiesofstatechartentrypointName–Thenameofthestatechartentrypoint.
Thenameisusedtoidentify
andaccesstheentrypointfromcode.Showname–Ifselected,the
nameofthestatechartentrypointisdisplayedonapresentationdiagram.Ignore–Ifselected,the
statechartentrypointisexcludedfromthemodel.Public–
Defines,whetherthe
statechartentrypointisvisibleonapresentationdiagramoftheownerofthisactiveobjectclass.
Sincestatechartelementscannotappearonownerclass'presentation,thischeckboxisalwaysdeselectedanddisabled.Show
atruntime–Ifselected,the
statechartentrypointisvisibleonapresentationatruntime.
Action–
SequenceofJavastatementsexecutedwhenthe
statechartentrypointforwardsthecontroltoaninitialstate.第9页/共15页第九页,共16页。stateStaterepresentsalocationofcontrolwithaparticularsetofreactionstoconditionsand/orevents.Astatecanbeeithersimpleor,ifitcontainsotherstates,composite.Controlalwaysresidesinoneofsimplestates,butthecurrentsetofreactionsisaunionofthoseofthecurrentsimplestateandofallcompositestatescontainingit–i.e.,atransitionexitinganyofthesestatesmaybetaken.第10页/共15页第十页,共16页。Transitiondenotesaswitchfromonestatetoanother.Atransitionindicatesthatifthespecifiedtriggereventoccursandthespecifiedguardconditionistrue,thestatechartswitchesfromonestatetoanotherandperformsthespecifiedaction.Whenthisoccurs,thetransitionistaken.第11页/共15页第十一页,共16页。转移发生时,执行的事件选择Atransitionmayfreelycrosssimplestateandcompositestateborders.Ifthesourceofatransitionlieseitheronorinsideastate,andthedestinationofthattransitionliesoutsideofthestate,thenthatstateisconsideredexitedbythetransition.Ifsuchatransitionistaken,theexitactionoftheexitedstateisexecuted.Ifthesourceofatransitionliesoutsideastate,andthedestinationofthattransitionlieseitheronorinsidethestate,thenthatstateisconsideredenteredbythetransition.Ifsuchatransitionistaken,theentryactionoftheenteredstateisexecuted.Incaseapartofatransitionliesinsideastate,butbothsourceanddestinationareoutsidethestate,thisstateisconsideredneitherenterednorexited第12页/共15页第十二页,共16页。分支选择:branchrepresentsatransitionbranchingand/orconnectionpoint.Usingbranches,cancreateatransitionthathasmorethanonedestinationstate,aswellasseveraltransitionsthatmergetogethertoperformacommonaction.Whencontrolpassesabranch,itsactionisexecuted,andthentheguardsoftransitionsexitingthebranchareevaluated.Thefirstenabledtransition–i.e.,thetrans
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 44414-2024海上自主无线电设备技术要求
- 人教版高中音乐大典
- 二年级数学计算题专项练习集锦
- 汉源高科8路双向非压缩HDMI视频+8路双向音频+4~16E1+8路RS232数据+1~32路电话+4路千兆网络HDMI综合业务高清视频光端机
- DB2113-T 0014-2024 地理标志产品 朝阳绿豆
- 2.4 自由落体运动(解析版)
- 部编道德与法治七年级上册第四课《 4.2让家更美好》 教学设计
- 伟大的改革开放课件-2024-2025学年高中政治统编版必修一中国特色社会主义
- 2024年天津道路旅客运输驾驶员从业资格考试
- 2024年福建道路客运从业资格证模拟考试题及答案
- 全民健康大讲堂课件
- GB/T 28827.3-2012信息技术服务运行维护第3部分:应急响应规范
- GB/T 26944.3-2011隧道环境检测设备第3部分:能见度检测器
- 《公民的基本义务》教学设计
- 新修订《江苏省安全生产条例》讲座课件
- 2023年中国北方工业有限公司招聘笔试模拟试题及答案解析
- 急性等容血液稀释课件
- 西湖七月半(2017)课件
- 新产品设计与开发程序-中英文版
- 烟草行业安全知识考试题库(含答案)
- (新高考)高考英语一轮复习课件必修一 Unit 3 Sports and fitness Language points (含详解)
评论
0/150
提交评论