]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh.h
Upgrading FRSH trunk to D-AC2v2. Phase I: Moving FRSH-FOSA to FOSA
[frescor/frsh-include.git] / frsh.h
diff --git a/frsh.h b/frsh.h
index 13e1dcae7311f472e6c6dabd17c6ae064282b132..5190444b2ac820770a5b2bd0f49c44f20d65e23a 100644 (file)
--- a/frsh.h
+++ b/frsh.h
@@ -12,7 +12,7 @@
 //    Visual Tools S.A.                      SPAIN
 //    Rapita Systems Ltd                     UK
 //    Evidence                               ITALY
-//    
+//
 //    See http://www.frescor.org for a link to partners' websites
 //
 //           FRESCOR project (FP6/2005/IST/5-034026) is funded
@@ -22,7 +22,7 @@
 //
 //
 //  based on previous work (FSF) done in the FIRST project
-//                       
+//
 //   Copyright (C) 2005  Mälardalen University, SWEDEN
 //                       Scuola Superiore S.Anna, ITALY
 //                       Universidad de Cantabria, SPAIN
@@ -54,8 +54,7 @@
 //  License.  This exception does not however invalidate any other
 //  reasons why the executable file might be covered by the GNU General
 //  Public License.
-// -----------------------------------------------------------------------
-//frsh.h
+// ---------------------------------------------------------------------
 
 //==============================================
 //  ******** *******    ********  **      **
@@ -65,7 +64,7 @@
 //  **////  /**///**  ////////** /**//////**
 //  **      /**  //**        /** /**     /**
 //  **      /**   //** ********  /**     /**
-//  //       //     // ////////   //      // 
+//  //       //     // ////////   //      //
 //
 // FRSH(FRescor ScHeduler), pronounced "fresh"
 //==============================================
  * having include deadlocks.
  **/
 
+#include "fosa.h"
+
 #include "frsh_configuration_parameters.h"
 
 /* We include all the types because they are needed for the
    frsh_contract_parameters_t */
 
+#include "frsh_core_types.h"
 #include "frsh_shared_objects_types.h"
 #include "frsh_spare_capacity_types.h"
 #include "frsh_hierarchical_types.h"
@@ -97,6 +99,8 @@
 #include "frsh_implementation_specific_types.h"
 
 #include "frsh_core.h"
+#include "frsh_thread_attrs.h"
+#include "frsh_time.h"
 #include "frsh_implementation_specific.h"
 
 // Configure these modules by commenting out the appropiate lines
 #include "frsh_dynamic_reclaiming.h"           //
 #include "frsh_spare_capacity.h"
 #include "frsh_distributed.h"                  //
-#include "frsh_distributed_spare_capacity.h"   //
-
+#include "frsh_feedback_control.h"
+#include "frsh_memory_management.h"
+#include "frsh_energy_management.h"
 
 
 #ifndef FRSH_HIERARCHICAL_MODULE_SUPPORTED
     #define FRSH_SPARE_CAPACITY_MODULE_SUPPORTED      0
 
     //Return warnings if spare_capacity module is not included:
+
     #define frsh_set_contract_reclamation_parameters  \
       (contract, budget_max, period_min, granularity,\
        utilization_set, quality,  importance)        \
        ( FRSH_WRN_MODULE_NOT SUPPORTED )
-    
+
     #define frsh_get_contract_reclamation_parameters  \
       (contract, budget_max, period_min, granularity,\
        utilization_set, quality, importance)         \
        ( FRSH_WRN_MODULE_NOT SUPPORTED )
-   
+
     #define frsh_request_change_quality_and_importance\
       (server, new_importance, new_quality)          \
        ( FRSH_WRN_MODULE_NOT SUPPORTED )
-        
+
     #define frsh_get_total_quality (server,total_quality)\
        ( FRSH_WRN_MODULE_NOT SUPPORTED )
 
 #endif  //FRSH_SPARE_CAPACITY_MODULE_SUPPORTED
 
-#ifndef FRSH_DISTRIBUTED_MODULE_SUPPORTED
-    #define FRSH_DISTRIBUTED_MODULE_SUPPORTED 0
-#endif  //FRSH_DISTRIBUTED_MODULE_SUPPORTED
-
-#ifndef FRSH_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED
-    #define FRSH_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED 0
-   
-    //Return warnings if distributed_spare_capacity module is not included:
-
-    #define frsh_set_contract_granted_capacity_flag(contract,granted_capacity_flag)\
-       ( FRSH_WRN_MODULE_NOT SUPPORTED )
-    #define frsh_get_contract_granted_capacity_flag(contract,granted_capacity_flag)\
-       ( FRSH_WRN_MODULE_NOT SUPPORTED )
-   
-    #definr frsh_set_server_capacity(server,new_period,new_budget)\
-       ( FRSH_WRN_MODULE_NOT SUPPORTED )
-
-#endif  //FRSH_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED
-
-
 #endif // _FRSH_H_