state_machine.cpp File Reference

#include "mechanisms_implementation_only.h"
#include "state_machine.h"
#include "time_stamp.h"
#include <basis/array.cpp>
#include <basis/function.h>
#include <basis/guards.h>
#include <basis/istring.h>
#include <basis/portable.h>

Include dependency graph for state_machine.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOG(to_print)   CLASS_EMERGENCY_LOG(program_wide_logger(), to_print)
#define CHECK_VALID(m)
#define CHECK_STATES
#define MOVE_STATE(m, next, type, trigger)
#define FIND_STATE(state)


Define Documentation

#define CHECK_STATES

Value:

if (!current) return false; \
  if (!next) return false; \
  int indy = state_index(current); \
  if (negative(indy)) return false; \
  if (negative(state_index(next))) return false

Definition at line 49 of file state_machine.cpp.

Referenced by transition_map::add_range_transition(), transition_map::add_simple_transition(), and transition_map::add_timed_transition().

#define CHECK_VALID (  ) 

Value:

if (!m._current) return false; \
  if (!m._last) return false

Definition at line 44 of file state_machine.cpp.

Referenced by transition_map::make_transition(), transition_map::pulse(), and transition_map::time_slice().

#define FIND_STATE ( state   ) 

Value:

int indy = state_index(state); \
  if (negative(indy)) return

Definition at line 65 of file state_machine.cpp.

Referenced by transition_map::make_transition(), transition_map::pulse(), transition_map::set_start(), transition_map::time_slice(), and transition_map::validate().

#define LOG ( to_print   )     CLASS_EMERGENCY_LOG(program_wide_logger(), to_print)

Definition at line 36 of file state_machine.cpp.

#define MOVE_STATE ( m,
next,
type,
trigger   ) 

Value:

m._last = m._current; \
  m._current = next; \
  m._type = type; \
  m._trig = trigger; \
  m._start->reset()

Definition at line 57 of file state_machine.cpp.

Referenced by transition_map::make_transition(), transition_map::pulse(), and transition_map::time_slice().


Generated on Fri Sep 5 04:29:50 2008 for HOOPLE Libraries by  doxygen 1.5.1