




已阅读5页,还剩10页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第5讲用AnyLogic进行MAS仿真,5.1先看一个例子5.2对此例子进行概览5.3具体的学习5.4主要的statechartcomponents5.5动画的表示,之前的之前要看的视频,观看视频:航天神五、神六发射时,飞行控制室实况录相。注意,哪些地方应用了仿真技术为什么要用?不用行不行?,5.1例子:熟读唐诗三百首,不会作诗也会呤,销售渠道的模拟:背景:ThisisanAgentBasedmodelofasalesprocessinabusinesswhereclientsaretobereviewedbythecompany:e.g.thiscouldbeinsurance,banking,leasing,etc.TheprocesshasseveralstagesthataremodeledbydifferentstatesinthestatechartofaCustomerobject:initialcontact,quote,creditreview.Thecustomermayleaveoneachstage,andthecompany,inturn,mayrejectthecustomer.Themodelhelpsyoutoexaminehowtheskilllevelandsizeofthesalesforceandthecreditreviewteamaffecttheefficiencyofthewholeprocess.,5.2Agent的形成,A初始状态和属性Prospect的最初位置:Getx和getY,状态图,Statechart:Agent的各种状态在这里用图形方式表达,状态图中,将各种状态变化时的行为或者属性更改在此处写出,这里(可能需要用到各种Anylogic里的编程对象)例如:潜在客户prospect的变化状态。,在mainmodel中进行调用,用get返回对模型中各种对象的引用在不同的状态图中对这些对象进行编程和调用,各种变量和参数(二者有何区别?),Mainmodel中的参数与变量各个不同的状态图中的参变量统计状态与表示思考:哪些变量要放在statechart中哪些要放在Mainmodel中?,集成运行,展示:salesfunnel,5.3具体的学习,StatechartEntryPoint、FinalstateStatechartentrypointisusedtoindicatetheinitialstateofthestatechart.Thereshouldbeexactlyonestatechartentrypointdefinedforeachstatechart.Youmaydefineseveralindependentstatechartsforthesameactiveobject,eachonedescribingsomeparticularprocess.InthiscaseAnyLogicwilldistinguishhowmanydistinctstatechartstherearebyanalyzingthenumberofstatechartentrypoints.,Generalpropertiesofstatechartentrypoint,NameThenameofthestatechartentrypoint.Thenameisusedtoidentifyandaccesstheentrypointfromcode.ShownameIfselected,thenameofthestatechartentrypointisdisplayedonapresentationdiagram.IgnoreIfselected,thestatechartentrypointisexcludedfromthemodel.PublicDefines,whetherthestatechartentrypointisvisibleonapresentationdiagramoftheownerofthisactiveobjectclass.Sincestatechartelementscannotappearonownerclasspresentation,thischeckboxisalwaysdeselectedanddisabled.ShowatruntimeIfselected,thestatechartentrypointisvisibleonapresentationatruntime.ActionSequenceofJavastatementsexecutedwhenthestatechartentrypointforwardsthecontroltoaninitialstate.,state,Staterepresentsalocationofcontrolwithaparticularsetofreactionstoconditionsand/orevents.Astatecanbeeithersimpleor,ifitcontainsotherstates,composite.Controlalwaysresidesinoneofsimplestates,butthecurrentsetofreactionsisaunionofthoseofthecurrentsimplestateandofallcompositestatescontainingiti.e.,atransitionexitinganyofthesestatesmaybetaken.,Transition,denotesaswitchfromonestatetoanother.Atransitionindicatesthatifthespecifiedtriggereventoccursandthespecifiedguardconditionistrue,thestatechartswitchesfromonestatetoanotherandperformsthespecifiedaction.Whenthisoccurs,thetransitionistaken.,转移发生时,执行的事件选择,Atransitionmayfreelycrosssimplestateandcompositestateborders.Ifthesourceofatransitionlieseitheronorinsideastate,andthedestinationofthattransitionliesoutsideofthestate,thenthatstateisconsideredexitedbythetransition.Ifsuchatransitionistaken,theexitactionoftheexitedstateisexecuted.Ifthesourceofatransitionliesoutsideastate,andthedestinationofthattransitionlieseitheronorinsidethestate,thenthatstateisconsideredenteredbythetransition.Ifsuchatransitionistaken,theentryactionoftheenteredstateisexecuted.Incaseapartofatransitionliesinsideastate,butbothsourceanddestinationareoutsidethestate,thisstateisconsideredneitherenterednorexited,分支选择:branch,representsatransitionbranchingand/orconnectionpoint.Usingbranches,cancreateatransitionthathasmorethanonedestinationstate,aswellasseveraltransitionsthatmergetogethertoperformacommonaction.Whencontrolpassesabranch,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 一列老年糖尿病合并低血糖患者的护理
- 2025年冀北博望电力产业管理(北京)有限公司高校毕业生招聘(第三批)模拟试卷附答案详解(黄金题型)
- 2025湖南衡阳理工职业学院人才招聘4人考前自测高频考点模拟试题及一套答案详解
- 2025安徽庐江县乡村振兴投资有限公司招聘10人考前自测高频考点模拟试题及一套答案详解
- 2025广东广州工程技术职业学院第一批招聘一般岗位7人模拟试卷附答案详解(突破训练)
- 2025贵州织金翔盛工业发展有限公司招聘考前自测高频考点模拟试题及1套完整答案详解
- 浙江国企招聘2025浙江交投中碳环境科技有限公司招聘20人笔试历年参考题库附带答案详解
- 贵州国企招聘2025某国有企业劳务外包人员招聘笔试历年参考题库附带答案详解
- 浙江国企招聘2025台州市黄岩经开投资集团有限公司下属公司公开招聘市场化工作人员3人笔试历年参考题库附带答案详解
- 武汉市江夏国资集团招聘财务工作人员综合及考察事宜笔试历年参考题库附带答案详解
- 青梅嫁接技术课件
- 《经济数学》高职微积分理论全套教学课件
- 川贝母培训课件
- QGDW11059.2-2018气体绝缘金属封闭开关设备局部放电带电测试技术现场应用导则第2部分特高频法
- 2025-2030年汽车模具行业市场发展分析及竞争格局与投资战略研究报告
- 2025年云南省中考语文试卷真题(含答案逐题解析)
- CJ/T 514-2018燃气输送用金属阀门
- CJ/T 244-2016游泳池水质标准
- 环保型氟硅橡胶鞋垫行业跨境出海项目商业计划书
- 智能语音识别技术原理与应用课件
- 签约红娘合作协议书
评论
0/150
提交评论