| EventStudio 2.5 Sequence diagram based system design and modeling | |


The Active state inherits from Inservice state and further refines the Switchover and Fault Trigger handling.
Definition at line 76 of file Hierarchical_State_Machine.h.
Public Member Functions | |
| void | On_Switchover (Hierarchical_State_Machine &u, const Message *p_Message) |
| Handling of switchover in the Active state. | |
| void | On_Fault_Trigger (Hierarchical_State_Machine &u, const Message *p_Message) |
| The Active state overrides this handler, as it has to initiate a switchover to the standby. | |
| ||||||||||||
Handling of switchover in the Active state. Here the base class handler is invoked to perform most of the action. In addition to that, this method just initiates a state transition to the standby state.
Reimplemented from Hierarchical_State_Machine::Inservice. Definition at line 101 of file Hierarchical_State_Machine.cpp. 00102 {
00103 Inservice::On_Switchover(u, p_Message);
00104 u.Next_State(u.Standby_State);
00105 }
|
| ||||||||||||
The Active state overrides this handler, as it has to initiate a switchover to the standby. The following actions are performed:
This illustrates the power of hierarchical state machines. The inheriting states just need to write code to refine the base class actions. The entire base class code does not need to be repeated.
Reimplemented from Hierarchical_State_Machine::Inservice. Definition at line 89 of file Hierarchical_State_Machine.cpp. 00090 {
00091 u.Perform_Switchover();
00092 Inservice::On_Fault_Trigger(u, p_Message);
00093 }
|
1.3.4 | |
| Copyright © 2000-2005 EventHelix.com Inc. All Rights Reserved. |