if ((capacity < erq) || (erq < 0)) { GLMDebug.ERROR("ConstructionInventoryBG","Cannot create InventoryBG, capacity "+ capacity+" < erq "+erq); initialized_ = false; } else { initialized_ = true; GLMDebug.DEBUG("ConstructionInventoryBG","Initialized InventoryPG, capacity "+ capacity+", erq "+erq+", initiali level: "+levels[1]+", min reorder: "+levels[3]); } } catch (NullPointerException npe) { initialized_ = false; } return initialized_;
if ((capacity < erq) || (erq < 0)) { if (logger.isErrorEnabled()) { logger.error("Cannot create InventoryBG, capacity " + capacity + " < erq " + erq); } initialized_ = false; } else { initialized_ = true; if (logger.isDebugEnabled()) { logger.debug("Initialized InventoryPG, capacity " + capacity + ", erq " + erq + ", initiali level: " + levels[1] + ", min reorder: " + levels[3]); } } } catch (NullPointerException npe) { initialized_ = false; } return initialized_;
    public boolean initialize(double[] levels) {	  try {	    double capacity = levels[0];	    double erq = levels[2];	    ((NewInventoryPG)myPG_).setCapacity(new Count(levels[0], Count.EACHES));	    ((NewInventoryPG)myPG_).setInitialLevel(new Count(levels[1], Count.EACHES));	    ((NewInventoryPG)myPG_).setReorderLevel(new Count(levels[2], Count.EACHES));	    ((NewInventoryPG)myPG_).setMinReorder(new Count(levels[3], Count.EACHES));	    ((NewInventoryPG)myPG_).setUnobtainable(new Count(0.0, Count.EACHES));	    ((NewInventoryPG)myPG_).setFillToCapacity(false);	    ((NewInventoryPG)myPG_).setMaintainAtCapacity(false);	    if ((capacity < erq) || (erq < 0)) {		    GLMDebug.ERROR("ConstructionInventoryBG","Cannot create InventoryBG, capacity "+				 capacity+" < erq "+erq);		    initialized_ = false;	    } else {		    initialized_ = true;		    GLMDebug.DEBUG("ConstructionInventoryBG","Initialized InventoryPG, capacity "+				capacity+", erq "+erq+", initiali level: "+levels[1]+", min reorder: "+levels[3]);	    }	  } catch (NullPointerException npe) {	    initialized_ = false;	  }	  return initialized_;	  }