/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ofi;
/**
*
* @author a2-dunnage
*/
public class SingleRoom extends Room {
private int price;
private boolean enSuite;
private boolean internet;
private boolean miniBar;
private boolean tv;
private int roomNumber;
public SingleRoom(int price, boolean enSuite, boolean internet, boolean miniBar, boolean tv, int roomNumber) {
super(price, enSuite, internet, miniBar, tv, roomNumber);
this.price = price;
this.enSuite = enSuite;
this.internet = internet;
this.miniBar = miniBar;
this.tv = tv;
this.roomNumber = roomNumber;
}
public SingleRoom(int roomNumber){
super(30,true,true,true,false,roomNumber);
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
public boolean isEnSuite() {
return enSuite;
}
public void setEnSuite(boolean enSuite) {
this.enSuite = enSuite;
}
public boolean isInternet() {
return internet;
}
public void setInternet(boolean internet) {
this.internet = internet;
}
public boolean isMiniBar() {
return miniBar;
}
public void setMiniBar(boolean miniBar) {
this.miniBar = miniBar;
}
public boolean isTv() {
return tv;
}
public void setTv(boolean tv) {
this.tv = tv;
}
public int getRoomNumber() {
return roomNumber;
}
public void setRoomNumber(int roomNumber) {
this.roomNumber = roomNumber;
}
@Override
public String toString() {
return "SingleRoom{" + "price=" + price + ", enSuite=" + enSuite + ", internet=" + internet + ", miniBar=" + miniBar + ", tv=" + tv + ", roomNumber=" + roomNumber + '}';
}
}