|
@@ -7,19 +7,28 @@ public class CoveredAreas {
|
|
|
|
|
|
private final List<TechnoCoverage> technos;
|
|
|
private final String name;
|
|
|
+ private ISP isp;
|
|
|
|
|
|
- public CoveredAreas(String name, List<TechnoCoverage> techno) {
|
|
|
+ public CoveredAreas(String name, ISP isp, List<TechnoCoverage> techno) {
|
|
|
technos=techno;
|
|
|
this.name=name;
|
|
|
+ this.isp = isp;
|
|
|
|
|
|
}
|
|
|
- public CoveredAreas(String name, TechnoCoverage...techno) {
|
|
|
+
|
|
|
+ public CoveredAreas(String name, List<TechnoCoverage> techno) {
|
|
|
+ this(name,null,techno);
|
|
|
+ }
|
|
|
+
|
|
|
+ public CoveredAreas(String name, ISP isp, TechnoCoverage...techno) {
|
|
|
ArrayList<TechnoCoverage> l = new ArrayList<>();
|
|
|
for(int i=0;i<techno.length;++i) {
|
|
|
l.add(techno[i]);
|
|
|
}
|
|
|
this.technos=l;
|
|
|
this.name=name;
|
|
|
+ this.isp=isp;
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38,9 +47,17 @@ public class CoveredAreas {
|
|
|
for (TechnoCoverage tc: technos) {
|
|
|
res+=tc+" ";
|
|
|
}
|
|
|
+ res+="par "+isp.getBetterName();
|
|
|
|
|
|
return res;
|
|
|
}
|
|
|
+ public ISP getIsp() {
|
|
|
+ return isp;
|
|
|
+ }
|
|
|
+ public void setIsp(ISP isp) {
|
|
|
+ this.isp = isp;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
|