This commit is contained in:
Tomasz Piechucki 2011-04-12 18:38:56 +00:00
parent cc37d15a2e
commit 4cb633d9af

View file

@ -13,35 +13,7 @@ import java.util.List;
* @author Tomek
*/
public class Pietro {
private List<Pasazer> pasazerowie;
private int IloscWysiadajacych;
private int NumerPietra;
public Pietro(int numerPietra){
this.NumerPietra = numerPietra;
}
public int GetIloscWysiadajacych(){
return this.IloscWysiadajacych;
}
public void SetIloscWysiadajacych(int iloscWysiadajacych){
this.IloscWysiadajacych = iloscWysiadajacych;
}
public List<Pasazer> GetPasazerowie(){
return this.pasazerowie;
}
public void SetPasazerowie(List<Pasazer> pasazerowie) {
this.pasazerowie = pasazerowie;
}
public void AddPasazer(Pasazer pasazer) {
this.pasazerowie.add(pasazer);
}
public void DeletePasazer(Pasazer pasazer) {
this.pasazerowie.remove(pasazer);
}
public List<Pasazer> pasazerowie;
public int IloscWysiadajacych;
public int NumerPietra;
}