Simulation.h
60 void stageFiles(std::map<std::string, WorkflowFile *> files, StorageService *storage_service, std::string partition);
72 std::map<std::string, double> getEnergyConsumed(const std::vector<std::string> &hostnames, bool record_as_time_stamps = false);
void stageFiles(std::map< std::string, WorkflowFile *> files, StorageService *storage_service)
Stage file copies on a storage service (to the "/" partition)
Definition: Simulation.cpp:546
ComputeService * add(ComputeService *)
Add a ComputeService to the simulation. The simulation takes ownership of the reference and will call...
Definition: Simulation.cpp:384
void instantiatePlatform(std::string)
Instantiate a simulated platform.
Definition: Simulation.cpp:187
std::vector< std::string > getHostnameList()
Get the list of names of all the hosts in the platform.
Definition: Simulation.cpp:206
std::map< std::string, std::vector< std::string > > getHostnameListByCluster()
Get the list of names of all the hosts in each cluster composing the platform.
Definition: Simulation.cpp:216
static double getHostMemoryCapacity(std::string hostname)
Get the memory capacity of a host given a hostname.
Definition: Simulation.cpp:606
static unsigned long getHostNumCores(std::string hostname)
Get the number of cores of a host given a hostname.
Definition: Simulation.cpp:615
static double getMemoryCapacity()
Get the memory capacity of the host on which the calling process is running.
Definition: Simulation.cpp:632
void stageFile(WorkflowFile *file, StorageService *storage_service)
Stage a copy of a file on a storage service (to the "/" partition)
Definition: Simulation.cpp:482
static double getFlopRate()
Get the flop rate of one core of the host on which the calling process is running.
Definition: Simulation.cpp:648
static double getMaxPowerConsumption(const std::string &hostname)
Get the maximum power consumption for the host (i.e., 100% utilization) at its current pstate...
Definition: Simulation.cpp:776
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26
A class that contains post-mortem simulation-generated data.
Definition: SimulationOutput.h:27
static void compute(double flops)
Make the calling process compute.
Definition: Simulation.cpp:665
static double getHostFlopRate(std::string hostname)
Get the flop rate of one core of a host given a hostname.
Definition: Simulation.cpp:624
SimulationOutput & getOutput()
Get the simulation output object.
Definition: Simulation.cpp:677
double getEnergyConsumed(const std::string &hostname, bool record_as_time_stamp=false)
Obtains the current energy consumption of a host and will add SimulationTimestampEnergyConsumption to...
Definition: Simulation.cpp:689
static int getCurrentPstate(const std::string &hostname)
Get the current power state of a host.
Definition: Simulation.cpp:748
A file registry service (a.k.a. replica catalog) that holds a database of which files are available a...
Definition: FileRegistryService.h:33
ComputeService * startNewService(ComputeService *service)
Starts a new compute service during WMS execution (i.e., one that was not passed to Simulation::add()...
Definition: Simulation.cpp:791
A network proximity service that continuously estimates inter-host latencies and can be queried for s...
Definition: NetworkProximityService.h:26
static void sleep(double duration)
Make the calling process sleep for a number of (simulated) seconds.
Definition: Simulation.cpp:657
static unsigned long getNumCores()
Get the number of cores of the host on which the calling process is running.
Definition: Simulation.cpp:640
static int getNumberofPstates(const std::string &hostname)
Get the total number of power states of a host.
Definition: Simulation.cpp:739
static double getMinPowerConsumption(const std::string &hostname)
Get the minimum power consumption for the host (i.e., idling) at its current pstate.
Definition: Simulation.cpp:767
void setPstate(const std::string &hostname, int pstate)
Set the power state of the host.
Definition: Simulation.cpp:729
void init(int *, char **)
Initialize the simulation, which parses out WRENCH-specific and SimGrid-specific command-line argumen...
Definition: Simulation.cpp:82
static double getCurrentSimulatedDate()
Get the current simulated date.
Definition: Simulation.cpp:597
static std::vector< int > getListOfPstates(const std::string &hostname)
Get the list of power states available for a host.
Definition: Simulation.cpp:757
Definition: TerminalOutput.cpp:15