1 Star 0 Fork 0

qw_1215 / fc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
axle.go 503 Bytes
一键复制 编辑 原始数据 按行查看 历史
qw_1215 提交于 2020-03-16 19:43 . 初始化项目
package mainAxle
import "time"
// 接口
type IFSMState interface {
Enter(endTime time.Time)
Exit()
CheckTransition() bool
V() int
}
// State父struct
type FSMState struct{
isOk bool //是否正常状态
startTime time.Time //错误状态开始时间
endTime time.Time //错误状态结束时间
}
// 进入状态
func (f *FSMState) Enter(endTime time.Time) {
//
}
// 退出状态
func (f *FSMState) Exit() {
//
}
// 状态转移检测
func (f *FSMState) CheckTransition() {
//
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/qw_1215/fc.git
git@gitee.com:qw_1215/fc.git
qw_1215
fc
fc
478090fb42aa

搜索帮助

344bd9b3 5694891 D2dac590 5694891