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

package fr.ntr;
public class ResourceBlock {
private User user;
private double bandwidth;
public ResourceBlock (User user, double bandwidth) {
this(bandwidth);
this.user = user;
}
public ResourceBlock(double bandwidth) {
this.bandwidth = bandwidth;
}
public void setUser(User user) {
this.user = user;
}
public void setBandwidth(double bandwidth) {
this.bandwidth = bandwidth;
}
public User getUser() {
return user;
}
public double getBandwidth() {
return bandwidth;
}
}