设计模式:可复用面向对象软件的基础pattern)(Memento pattern) 观察者(Observer pattern) 状态机(英语:State pattern)(State pattern) 策略(Strategy pattern) 模板方法(Template method pattern) 参观者(Visitor) Gang
狀態模式1995. ISBN 0-201-63361-2. 引用错误:带有name属性“GOF”的<ref>标签用不同内容定义了多次 The State design pattern – Structure and Collaboration. w3sDesign.com. [2017-08-12]. Erich
中介者模式{ get; set; } public void ChangeState(object state) { this.Component1.SetState(state); this.Component2.SetState(state); } } 一个聊天室,或者一个需要客户彼此间每次发送消息之后
BACnetCharacterString Value Command Credential Data Input Date Pattern Value Date Value DateTime Pattern Value DateTime Value Device Elevator Group Escalator Event
模式匹配subject: case <pattern_1>: <action_1> case <pattern_2>: <action_2> case <pattern_3>: <action_3> case _: <action_wildcard> 其中 subject表示原始数据,<pattern