Public Member Functions | Static Public Member Functions

EclipseAgentThread Class Reference

This thread creates an ECLiPSe context in which the Readylog interpreter and the program are loaded. More...

#include "eclipse_thread.h"

Inheritance diagram for EclipseAgentThread:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EclipseAgentThread ()
 Constructor.
virtual ~EclipseAgentThread ()
 Destructor.
virtual void init ()
virtual void finalize ()
virtual void once ()
void post_event (const char *)
 Post an event to the ECLiPSe context.
void read_interfaces ()
 Read all registered interfaces.
void write_interfaces ()
 Write the registered interface that have been opened for writing.
fawkes::Interface * get_registered_interface (const char *id)
 Get the registered interface with the given id.
fawkes::Logger * get_logger ()
 Get the logger.

Static Public Member Functions

static EclipseAgentThread * instance ()
 Get the EclipseAgentThread instance.

Detailed Description

This thread creates an ECLiPSe context in which the Readylog interpreter and the program are loaded.

Author:
Daniel Beck

Definition at line 39 of file eclipse_thread.h.


Constructor & Destructor Documentation

EclipseAgentThread::EclipseAgentThread (  ) 

Constructor.

Definition at line 51 of file eclipse_thread.cpp.

EclipseAgentThread::~EclipseAgentThread (  )  [virtual]

Destructor.

Definition at line 59 of file eclipse_thread.cpp.


Member Function Documentation

fawkes::Logger * EclipseAgentThread::get_logger (  ) 

Get the logger.

Returns:
the logger

Definition at line 386 of file eclipse_thread.cpp.

References fawkes::LoggingAspect::logger.

fawkes::Interface * EclipseAgentThread::get_registered_interface ( const char *  id  ) 

Get the registered interface with the given id.

Parameters:
id the interface id
Returns:
the interface or NULL if no interface with the given id is registerd

Definition at line 373 of file eclipse_thread.cpp.

EclipseAgentThread * EclipseAgentThread::instance (  )  [static]

Get the EclipseAgentThread instance.

Returns:
the instance

Definition at line 395 of file eclipse_thread.cpp.

void EclipseAgentThread::post_event ( const char *  event  ) 

Post an event to the ECLiPSe context.

Parameters:
event the name of the event

Definition at line 177 of file eclipse_thread.cpp.

void EclipseAgentThread::read_interfaces (  ) 

Read all registered interfaces.

Definition at line 189 of file eclipse_thread.cpp.

void EclipseAgentThread::write_interfaces (  ) 

Write the registered interface that have been opened for writing.

Definition at line 204 of file eclipse_thread.cpp.


The documentation for this class was generated from the following files: