CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
smproxy::Configuring Class Reference

#include <States.h>

Inheritance diagram for smproxy::Configuring:
smproxy::State< Configuring, AllOk > smproxy::StateName

Public Types

typedef boost::mpl::list
< boost::statechart::transition
< ConfiguringDone, Ready > > 
reactions
 

Public Member Functions

void activity ()
 
 Configuring (my_context c)
 
virtual void entryAction ()
 
virtual void exitAction ()
 
virtual ~Configuring ()
 
- Public Member Functions inherited from smproxy::State< Configuring, AllOk >
std::string stateName () const
 

Private Attributes

boost::scoped_ptr< boost::thread > configuringThread_
 

Additional Inherited Members

- Protected Types inherited from smproxy::State< Configuring, AllOk >
typedef
boost::statechart::state
< Configuring, AllOk,
boost::mpl::list
<>, boost::statechart::has_no_history > 
boost_state
 
typedef State my_state
 
- Protected Member Functions inherited from smproxy::State< Configuring, AllOk >
void safeEntryAction ()
 
void safeExitAction ()
 
 State (const std::string stateName, typename boost_state::my_context &c)
 
virtual ~State ()
 
- Protected Attributes inherited from smproxy::State< Configuring, AllOk >
const std::string stateName_
 

Detailed Description

The Configuring state of outer-state AllOk.

Definition at line 235 of file States.h.

Member Typedef Documentation

typedef boost::mpl::list< boost::statechart::transition<ConfiguringDone,Ready> > smproxy::Configuring::reactions

Definition at line 242 of file States.h.

Constructor & Destructor Documentation

smproxy::Configuring::Configuring ( my_context  c)
inline

Definition at line 244 of file States.h.

References smproxy::State< Configuring, AllOk >::safeEntryAction().

244  : my_state("Configuring", c)
245  { safeEntryAction(); }
virtual smproxy::Configuring::~Configuring ( )
inlinevirtual

Member Function Documentation

void Configuring::activity ( )

Definition at line 216 of file StateMachine.cc.

Referenced by entryAction().

217  {
218  outermost_context_type& stateMachine = outermost_context();
219  stateMachine.updateConfiguration();
220  boost::this_thread::interruption_point();
221  stateMachine.setQueueSizes();
222  boost::this_thread::interruption_point();
223  stateMachine.setAlarms();
224  boost::this_thread::interruption_point();
225  stateMachine.processEvent( ConfiguringDone() );
226  }
void Configuring::entryAction ( )
virtual

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 208 of file StateMachine.cc.

References activity(), and configuringThread_.

209  {
210  configuringThread_.reset(
211  new boost::thread( boost::bind( &Configuring::activity, this) )
212  );
213  }
boost::scoped_ptr< boost::thread > configuringThread_
Definition: States.h:254
void Configuring::exitAction ( )
virtual

Reimplemented from smproxy::State< Configuring, AllOk >.

Definition at line 229 of file StateMachine.cc.

References configuringThread_.

230  {
231  configuringThread_->interrupt();
232  }
boost::scoped_ptr< boost::thread > configuringThread_
Definition: States.h:254

Member Data Documentation

boost::scoped_ptr<boost::thread> smproxy::Configuring::configuringThread_
private

Definition at line 254 of file States.h.

Referenced by entryAction(), and exitAction().