/*This code was generated using the UMPLE modeling language!
 Date of generation: 2008/07/30 10:46:15*/
/*This class drives: */

package hotel.core;

import hotel.*;
import hotel.json.*;

public class MeetingRoom extends RentableSpace {
  //Class datatypes
  private String name;

  private String maxSeatingCapacity;

  //Class association variables

  //Registry of our system.
  HotelRegistry registry = HotelRegistry.getInstance();

  //Constructor
  public MeetingRoom(String aCostPerDay, String aFloorArea, Hotel aHotel,
    Suite aSuite, String aName, String aMaxSeatingCapacity) {
    super(aCostPerDay, aFloorArea, aHotel, aSuite);
    name = aName;
    maxSeatingCapacity = aMaxSeatingCapacity;
  }

  public boolean setName(String aName) {
    name = aName;
    return true;
  }

  public boolean setMaxSeatingCapacity(String aMaxSeatingCapacity) {
    maxSeatingCapacity = aMaxSeatingCapacity;
    return true;
  }

  public String getName() {
    return name;
  }

  public String getMaxSeatingCapacity() {
    return maxSeatingCapacity;
  }

  public void delete() {
  }

  public boolean areManyEndsNull() {
    return true;
  }

  /***********************************
   * Returns the attribute list along with the  
   * class ID in JSON format.
   ***********************************/
  public JSONObject getAttributes() throws JSONException {
    JSONObject obj = new JSONObject();
    obj.put("CLASS_ID", registry.getKey(this));
    obj.put("name", getName());
    obj.put("maxSeatingCapacity", getMaxSeatingCapacity());
    return obj;
  }

}