This repository has been archived on 2023-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ntr-interferences/src/main/java/fr/ntr/ResourceBlock.java

32 lines
590 B
Java
Raw Normal View History

2023-03-03 10:38:35 +01:00
package fr.ntr;
public class ResourceBlock {
2023-03-10 10:50:46 +01:00
private User user;
2023-03-17 11:04:32 +01:00
private double bandwidth;
2023-03-03 10:54:11 +01:00
2023-03-17 11:04:32 +01:00
public ResourceBlock (User user, double bandwidth) {
2023-03-17 12:08:19 +01:00
this(bandwidth);
2023-03-03 10:54:11 +01:00
this.user = user;
2023-03-17 12:08:19 +01:00
}
public ResourceBlock(double bandwidth) {
2023-03-17 11:04:32 +01:00
this.bandwidth = bandwidth;
2023-03-03 10:54:11 +01:00
}
2023-03-10 11:38:52 +01:00
public void setUser(User user) {
this.user = user;
}
2023-03-17 11:04:32 +01:00
public void setBandwidth(double bandwidth) {
this.bandwidth = bandwidth;
}
public User getUser() {
return user;
}
public double getBandwidth() {
return bandwidth;
2023-03-10 11:38:52 +01:00
}
2023-03-03 10:38:35 +01:00
}