Skip to content

State 状态模式 | BLOG #66

Description

@TonyMistark

https://tonymistark.github.io/2024/04/21/design-pattern/state/?

Intent 意图状态模式是一种行为设计模式,它允许对象在其内部状态更改时更改其行为。看起来好像对象更改了它的类。 Problem 问题状态模式与有限状态机的概念密切相关。 Finite-State Machine. 有限状态机。 主要思想是,在任何给定的时刻,程序可以处于的状态数量是有限的。在任何唯一状态下,程序的行为都不同,程序可以立即从一种状态切换到另一种状态。但是,根据当前

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions