Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement a disk attachment check and add a tesh test to detect invalid platform...
[simgrid.git] / src / surf / workstation_ptask_L07.hpp
index 1c7cf50..360a851 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2013-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include "workstation_interface.hpp"
 
 #ifndef WORKSTATION_L07_HPP_
@@ -25,8 +31,8 @@ typedef CpuL07 *CpuL07Ptr;
 class LinkL07;
 typedef LinkL07 *LinkL07Ptr;
 
-class WorkstationL07ActionLmm;
-typedef WorkstationL07ActionLmm *WorkstationL07ActionLmmPtr;
+class WorkstationL07Action;
+typedef WorkstationL07Action *WorkstationL07ActionPtr;
 
 /*********
  * Tools *
@@ -98,7 +104,7 @@ public:
  * Resource *
  ************/
 
-class WorkstationL07 : public WorkstationLmm {
+class WorkstationL07 : public Workstation {
 public:
   WorkstationL07(WorkstationModelPtr model, const char* name, xbt_dict_t props, RoutingEdgePtr netElm, CpuPtr cpu);
   //bool isUsed();
@@ -113,7 +119,7 @@ public:
   double getConsumedEnergy();
 };
 
-class CpuL07 : public CpuLmm {
+class CpuL07 : public Cpu {
 public:
   s_surf_metric_t p_power;
   tmgr_trace_event_t p_stateEvent;
@@ -126,7 +132,6 @@ public:
   bool isUsed();
   //bool isUsed() {DIE_IMPOSSIBLE;};
   void updateState(tmgr_trace_event_t event_type, double value, double date);
-  e_surf_resource_state_t getState();
   double getSpeed(double load);
   double getAvailableSpeed();
   CpuActionPtr execute(double /*size*/) {DIE_IMPOSSIBLE;};
@@ -141,7 +146,7 @@ public:
   double m_powerCurrent;
 };
 
-class LinkL07 : public NetworkLinkLmm {
+class LinkL07 : public NetworkLink {
 public:
   LinkL07(NetworkL07ModelPtr model, const char* name, xbt_dict_t props,
                  double bw_initial,
@@ -169,7 +174,7 @@ public:
 /**********
  * Action *
  **********/
-class WorkstationL07ActionLmm : public WorkstationActionLmm {
+class WorkstationL07Action : public WorkstationAction {
   friend ActionPtr WorkstationL07::execute(double size);
   friend ActionPtr WorkstationL07::sleep(double duration);
   friend ActionPtr WorkstationL07Model::executeParallelTask(int workstation_nb,
@@ -179,9 +184,9 @@ class WorkstationL07ActionLmm : public WorkstationActionLmm {
                                                    *communication_amount,
                                                    double rate);
 public:
-  WorkstationL07ActionLmm(ModelPtr model, double cost, bool failed)
-  : Action(model, cost, failed), WorkstationActionLmm() {};
- ~WorkstationL07ActionLmm();
+  WorkstationL07Action(ModelPtr model, double cost, bool failed)
+  : WorkstationAction(model, cost, failed) {};
+ ~WorkstationL07Action();
 
   void updateBound();