#include <iostream>
#include <boost/thread.hpp>
#include <deque>
#include <vector>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <boost/shared_ptr.hpp>
#include <SynchCout.h>
#include <EventSystem.h>
#include "BT.h"
#include "FSM.h"
#include "DecisionMaking.h"
Go to the source code of this file.
Defines | |
#define | CALL_REMOTE(NAME, CALLS, EVENTS) boost::bind(&callTask, #NAME, CALLS, EVENTS) |
#define | PAUSE boost::this_thread::sleep(boost::posix_time::seconds(1.3)); |
#define | TIMES(N) for(size_t times=0;times<N;times++) |
#define | X(x) x |
Functions | |
BT_BGN (BT1) | |
BT_END (BT1) | |
TaskResult | BT_run_ () |
TaskResult | callTask (std::string task_address, const CallContext &call_ctx, EventQueue &queue) |
void | EVENTS_GENERATOR () |
FSM (TEST1) | |
FSM (TEST) | |
void | FSM_TEST () |
int | main () |
Variables | |
EventQueue | mainEventQueue |
#define CALL_REMOTE | ( | NAME, | |
CALLS, | |||
EVENTS | |||
) | boost::bind(&callTask, #NAME, CALLS, EVENTS) |
Definition at line 74 of file HybridExample.cpp.
#define PAUSE boost::this_thread::sleep(boost::posix_time::seconds(1.3)); |
Definition at line 43 of file HybridExample.cpp.
#define TIMES | ( | N | ) | for(size_t times=0;times<N;times++) |
Definition at line 44 of file HybridExample.cpp.
#define X | ( | x | ) | x |
Definition at line 42 of file HybridExample.cpp.
BT_BGN | ( | BT1 | ) |
Definition at line 113 of file HybridExample.cpp.
BT_END | ( | BT1 | ) |
TaskResult BT_run_ | ( | ) |
Definition at line 201 of file HybridExample.cpp.
TaskResult callTask | ( | std::string | task_address, |
const CallContext & | call_ctx, | ||
EventQueue & | queue | ||
) |
Definition at line 53 of file HybridExample.cpp.
void EVENTS_GENERATOR | ( | ) |
Definition at line 24 of file HybridExample.cpp.
FSM | ( | TEST1 | ) |
Definition at line 82 of file HybridExample.cpp.
Definition at line 158 of file HybridExample.cpp.
void FSM_TEST | ( | ) |
Definition at line 197 of file HybridExample.cpp.
int main | ( | ) |
Definition at line 228 of file HybridExample.cpp.
Definition at line 21 of file HybridExample.cpp.