/*This code was generated using the UMPLE modeling language! Date of generation: 2008/07/30 13:12:55*/ /*This class drives: DeliverOrShipmentBOM, DeliverOrShipmentBOM*/ package Warehouse.core; import Warehouse.*; import Warehouse.json.*; public class LoadingGate extends MovementLocation { //Class datatypes private int number; //Class association variables //Registry of our system. WarehouseRegistry registry = WarehouseRegistry.getInstance(); //Constructor public LoadingGate(int aNumber) { super(); number = aNumber; } public boolean setNumber(int aNumber) { number = aNumber; return true; } public int getNumber() { return number; } 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("number", getNumber()); return obj; } }