EventHelix.com: CASE Tools; Real-time and Embedded System Design; Object Oriented Design EventStudio 2.0: System Engineering CASE ToolEventStudio 2.5
Sequence diagram based system design and modeling
Home   What's New   EventStudio 2.5   Real-time Mantra   Thought Projects   Contact Us
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Hierarchical_State_Machine::Suspect Class Reference

Inheritance diagram for Hierarchical_State_Machine::Suspect:

Inheritance graph
[legend]
Collaboration diagram for Hierarchical_State_Machine::Suspect:

Collaboration graph
[legend]
List of all members.

Detailed Description

The unit is suspected to have failed.

Suspect state needs to override some of the methods of the base Out_Of_Service state.

Definition at line 109 of file Hierarchical_State_Machine.h.

Public Member Functions

void On_Diagnostics_Failed (Hierarchical_State_Machine &u, const Message *p_Message)
 Suspect state handling of the diagnostics failure message.

void On_Diagnostics_Passed (Hierarchical_State_Machine &u, const Message *p_Message)
 Diagnostics pass message has been received in Suspect state.

void On_Operator_Inservice (Hierarchical_State_Machine &u, const Message *p_Message)
 Inservice request is received when still running diagnostics in Suspect state.


Member Function Documentation

void Hierarchical_State_Machine::Suspect::On_Diagnostics_Failed Hierarchical_State_Machineu,
const Message * p_Message
[virtual]
 

Suspect state handling of the diagnostics failure message.

The following actions are performed:

  • Inform the operator about diagnostics failure
  • Change to Failed state
    Parameters:
    u Reference to the state machine object
    p_Message Pointer to the message being processed

Reimplemented from Hierarchical_State_Machine::Unit_State.

Definition at line 143 of file Hierarchical_State_Machine.cpp.

00144 {
00145     u.Send_Diagnostics_Failure_Report();
00146     u.Next_State(u.Failed_State);
00147 }

void Hierarchical_State_Machine::Suspect::On_Diagnostics_Passed Hierarchical_State_Machineu,
const Message * p_Message
[virtual]
 

Diagnostics pass message has been received in Suspect state.

Perform the following actions:

  • Inform operator
  • Clear the loss of redunadacy alarm
  • Move to the standby state (somebody else must be active already)
    Parameters:
    u Reference to the state machine object
    p_Message Pointer to the message being processed

Reimplemented from Hierarchical_State_Machine::Unit_State.

Definition at line 156 of file Hierarchical_State_Machine.cpp.

00157 {
00158     u.Send_Diagnostics_Pass_Report();
00159     u.Clear_Alarm(LOSS_OF_REDUNDANCY);
00160     u.Next_State(u.Standby_State);
00161 }

void Hierarchical_State_Machine::Suspect::On_Operator_Inservice Hierarchical_State_Machineu,
const Message * p_Message
[virtual]
 

Inservice request is received when still running diagnostics in Suspect state.

Just abort the diagnostics and invole the base class handler to perform the common handling.

Parameters:
u Reference to the state machine object
p_Message Pointer to the message being processed

Reimplemented from Hierarchical_State_Machine::Out_Of_Service.

Definition at line 168 of file Hierarchical_State_Machine.cpp.

00169 {
00170     u.Abort_Diagnostics();
00171     Out_Of_Service::On_Operator_Inservice(u, p_Message); 
00172 }


The documentation for this class was generated from the following files:
Generated on Sun Feb 13 21:30:32 2005 for Object Oriented Design Examples by doxygen 1.3.4
 Home   What's New   EventStudio 2.5   Real-time Mantra   Thought Projects   Contact Us
Copyright © 2000-2005 EventHelix.com Inc. All Rights Reserved.