32 lines
590 B
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;
|
|
}
|
|
}
|