summaryrefslogtreecommitdiff
path: root/cesar/maximus/common/interfaces/Sta.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/maximus/common/interfaces/Sta.h')
-rw-r--r--cesar/maximus/common/interfaces/Sta.h169
1 files changed, 0 insertions, 169 deletions
diff --git a/cesar/maximus/common/interfaces/Sta.h b/cesar/maximus/common/interfaces/Sta.h
deleted file mode 100644
index a137474e75..0000000000
--- a/cesar/maximus/common/interfaces/Sta.h
+++ /dev/null
@@ -1,169 +0,0 @@
-/************************************************************************
- Sta.h - Copyright buret
-
-Here you can write a license for your code, some comments or any other
-information you want to have in your generated code. To to this simply
-configure the "headings" directory in uml to point to a directory
-where you have your heading files.
-
-or you can just replace the contents of this file with your own.
-If you want to do this, this file is located at
-
-/usr/share/apps/umbrello/headings/heading.h
-
--->Code Generators searches for heading files based on the file extension
- i.e. it will look for a file name ending in ".h" to include in C++ header
- files, and for a file name ending in ".java" to include in all generated
- java code.
- If you name the file "heading.<extension>", Code Generator will always
- choose this file even if there are other files with the same extension in the
- directory. If you name the file something else, it must be the only one with that
- extension in the directory to guarantee that Code Generator will choose it.
-
-you can use variables in your heading files which are replaced at generation
-time. possible variables are : author, date, time, filename and filepath.
-just write %variable_name%
-
-This file was generated on %date% at %time%
-The original location of this file is /home/buret/eclipse/maximus/common/interfaces/Sta.h
-**************************************************************************/
-
-#ifndef STA_H
-#define STA_H
-
-#include "sci_types.h" // for 'Sci_Msg_Station_Id'
-
-#include <map> // for 'map'
-#include <string>
-
-class Maximus;
-class ISystem;
-
-typedef std::map<const Sci_Msg_Station_Id, unsigned short int> StaCounter;
-
-
-
-/**
- * class Sta
- */
-
-class Sta
-{
-
-public:
-
- // Constructors/Destructors
- //
-
- /**
- * Constructor
- */
- Sta ( Maximus * p_maximus, ISystem * p_system_manager, const std::string & station_executable, uint32_t seed = 0 );
-
- /**
- * Copy constructors
- */
- Sta ( const Sta & sta );
-
- /**
- * Empty Destructor
- */
- virtual ~Sta ( );
-
- // public methods
- //
-
- /**
- * @return Sta &
- * @param sta
- */
- Sta & operator= ( const Sta & sta );
-
- /**
- * Remove an existing station.
- */
- void remove ( );
-
- /**
- * Deactivate an existing station,
- * i.e. the station will not receive Maximus messages anymore, until it will be reactivated.
- */
- void deactivate ( );
-
- /**
- * Reactivate a deactivated station.
- */
- void activate ( );
-
- /**
- * Launch a debugger attached to the station executable,
- * with arguments passed to main program.
- */
- void debug ( );
-
- /**
- * Indicate if the station is IDLE or not.
- */
- bool is_idle ( ) const;
-
- /**
- * Set the station name.
- */
- void set_name ( const std::string & station_name );
-
-private:
-
- // private attributes
- //
-
- Maximus * mpMaximus; // used for 'Maximus::process()' method only
- ISystem * mpSystemManager;
- Sci_Msg_Station_Id mStationId;
-
- /* Each 'Sta' instance points to an eCos process (via 'mStationId').
- * When a 'Sta' is created from a Python script,
- * the 'Sta' copy constructor is called by the Boost.Python interface.
- * Thus, several 'Sta' instances point to the same eCos process.
- * The eCos process has to be stopped only when the last 'Sta' pointing to it is deleted,
- * i.e. when the station counter defined below equals 1. */
- static StaCounter mStaCounter;
-
- // private methods
- //
-
- // private attribute accessor methods
- //
-
- /**
- * Gets a pointer to Maximus.
- * @return mpMaximus
- */
- Maximus * getMaximus ( ) const;
-
- /**
- * @return ISystem *
- */
- ISystem * getSystemManager ( ) const;
-
- /**
- * @return bool
- */
- bool resetStationId ( );
-
-public:
-
- // public methods
- //
-
- // private attribute accessor methods
- //
-
- /**
- * @return Sci_Msg_Station_Id
- */
- Sci_Msg_Station_Id getStationId ( ) const;
-
-};
-
-
-#endif // STA_H