-/*
- * vm_workstation.hpp
- *
- * Created on: Nov 12, 2013
- * Author: bedaride
- */
+/* 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 "vm_workstation_interface.hpp"
#include "workstation_clm03.hpp"
#define GUESTOS_NOISE 100 // This value corresponds to the cost of the global action associated to the VM
// It corresponds to the cost of a VM running no tasks.
-void surf_vm_workstation_model_init(void);
-
/***********
* Classes *
***********/
class WorkstationVMHL13;
typedef WorkstationVMHL13 *WorkstationVMHL13Ptr;
-/*********
- * Tools *
- *********/
-
/*********
* Model *
*********/
public:
WorkstationVMHL13Model();
~WorkstationVMHL13Model(){};
- void createResource(const char *name, void *ind_phys_workstation);
+
+ WorkstationVMPtr createWorkstationVM(const char *name, surf_resource_t ind_phys_workstation);
double shareResources(double now);
void adjustWeightOfDummyCpuActions() {};
- xbt_dynar_t getRoute(WorkstationPtr src, WorkstationPtr dst);
ActionPtr communicate(WorkstationPtr src, WorkstationPtr dst, double size, double rate);
ActionPtr executeParallelTask(int workstation_nb,
void **workstation_list,