StateMachine:squirrel-foundation实现的状态机demo

上传者: 42099070 | 上传时间: 2022-06-30 19:49:17 | 文件大小: 53KB | 文件类型: ZIP
状态机 概述 状态机三要素 状态(state):根据业务抽象出的阶段状态 事件(event):触发状态过渡或满足指定要求的条件 动作(action):符合条件进行状态过渡执行相应的处理 框架 squirrel-foundation 项目结构 Main:启动类,实现状态机的流程控制及状态事件动作的定义 MyCondtion:自定义条件过滤器 MyEvent:自定义事件枚举列表 MyState:自定义状态枚举列表 MyStateMachine:状态机,根据需求实现AbstractStateMachine|StateMachine|AbstractUntypedStateMachine StateListener:自定义监听器,可实现相应方法或使用注解定义监听事件 StateMaker:自定义决策类,用于实现多状态选择 declarative:该包下为声明式注解定义状态机及其实现状态流程控制

文件下载

资源详情

[{"title":"( 40 个子文件 53KB ) StateMachine:squirrel-foundation实现的状态机demo","children":[{"title":"StateMachine-master","children":[{"title":"SnakeStateMachine.dot <span style='color:#111;'> 666B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"StateMachine.png <span style='color:#111;'> 13.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"duan2ping","children":[{"title":"squirrelfoundation","children":[{"title":"MyEvent.java <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"StateMaker.java <span style='color:#111;'> 677B </span>","children":null,"spread":false},{"title":"declarative","children":[{"title":"MyEventConverter.java <span style='color:#111;'> 645B </span>","children":null,"spread":false},{"title":"DeclarativeStateMachine.java <span style='color:#111;'> 5.92KB </span>","children":null,"spread":false},{"title":"MyStateConverter.java <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"MyCondition.java <span style='color:#111;'> 354B </span>","children":null,"spread":false},{"title":"StateListener.java <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"MyStateMachine.java <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"MyState.java <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"Main.java <span style='color:#111;'> 7.20KB </span>","children":null,"spread":false},{"title":"MyContext.java <span style='color:#111;'> 269B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"duan2ping","children":[{"title":"squirrelfoundation","children":[{"title":"MyEvent.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"StateListener.class <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"declarative","children":[{"title":"Main.class <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"MyEventConverter.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"DeclarativeStateMachine.class <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"MyStateConverter.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"Main.class <span style='color:#111;'> 6.15KB </span>","children":null,"spread":false},{"title":"MyCondition.class <span style='color:#111;'> 825B </span>","children":null,"spread":false},{"title":"MyContext.class <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"StateMaker.class <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"MyState.class <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"MyStateMachine.class <span style='color:#111;'> 5.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"statemachine.iml <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"libraries","children":[{"title":"Maven__org_squirrelframework_squirrel_foundation_0_3_8.xml <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":"Maven__org_apache_commons_commons_lang3_3_1.xml <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_slf4j_api_1_6_1.xml <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"Maven__org_slf4j_slf4j_log4j12_1_6_1.xml <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"Maven__org_mvel_mvel2_2_1_8_Final.xml <span style='color:#111;'> 504B </span>","children":null,"spread":false},{"title":"Maven__com_google_guava_guava_16_0_1.xml <span style='color:#111;'> 501B </span>","children":null,"spread":false},{"title":"Maven__log4j_log4j_1_2_12.xml <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":true},{"title":"misc.xml <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 48.43KB </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 264B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明