-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCostModel.java
More file actions
30 lines (22 loc) · 882 Bytes
/
CostModel.java
File metadata and controls
30 lines (22 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
Implemented by the Computer Systems Lab, University of Thessaly (https://csl.e-ce.uth.gr)
for the MLSysOps project (https://mlsysops.eu)
License: LGPL - https://www.gnu.org/licenses/lgpl-3.0.en.html
Copyright (c) 2024, The University of Thessaly, Greece
Contact: Bowen Sun bsun@uth.gr
Christos Antonopoulos cda@uth.gr
*/
package org.cloudbus.cloudsim.cost.model;
import org.cloudbus.cloudsim.Vm;
public interface CostModel {
/**
* Get SLA cost due to Migrations, Server overloads or Server crashes.
*
* @param the target VM
* @return power consumption
* @throws IllegalArgumentException the illegal argument exception
*/
public double getSLAVMigration(Vm vm) throws IllegalArgumentException;
public double getSLAVOverload(Vm vm) throws IllegalArgumentException;
public double getSLAVCrash(Vm vm) throws IllegalArgumentException;
}