function subject(config){this.name=config.name;this.df=config.dw;this.de=config.de;this.desc=config.desc;this.pf=0;this.pe=0;this.populacja=0}subject.prototype.calcSum=function calcSum(islands){var sum1=0;var sum2=0;for(var i in islands){sum1=sum1+islands[i].getSrodek()/1E4*this.df;sum2=sum2+islands[i].getStrefaBrzezna()/1E4*this.de}this.pf=Math.round(sum1);this.pe=Math.round(sum2);this.populacja=this.pf+this.pe};
