




已阅读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年八年级上学期第一次月考物理试题附答案
- 数字化棉花机械市场趋势分析报告
- 特种禽类饲养员内部技能考核试卷及答案
- 木刻水印雕刻版员抗压考核试卷及答案
- 锻造工5S管理考核试卷及答案
- 农化技术员三级安全教育(公司级)考核试卷及答案
- 临床试剂工质量管控考核试卷及答案
- 高校教师课堂教学规范与提升方案
- 电商促销活动策划执行方案范例
- 地铁站务人员岗位考试试题
- 2025年新城区行政中心建设项目社会稳定风险评估与治理策略报告
- 广东省公安厅机场公安局招聘警务辅助人员考试真题2024
- 2025年村级后备干部选拔考试题库及答案
- 《大数的认识》 单元测试(含答案)2025-2026学年四年级上册数学人教版
- 2025-2026学年北京版(2024)小学体育与健康三年级全一册《知情绪 善表达》教学设计
- 产前筛查考试题及答案
- 2025年事业编时政题目及答案
- 2025年发展对象培训班题库(附含答案)
- 第一讲-决胜十四五奋发向前行-2025秋形势与政策版本-第二讲-携手周边国家共创美好未来-2025秋形势与政策版本
- 2025年浙江省高考地理真题卷含答案解析
- 2025年上海市普通高中学业水平等级性考试物理试卷(原卷版)
评论
0/150
提交评论