/**
   * Gets the status of a cloudlet.
   *
   * @param cloudletId ID of the cloudlet
   * @return status of the cloudlet, -1 if cloudlet not found
   * @pre $none
   * @post $none
   */
  @Override
  public int getCloudletStatus(int cloudletId) {
    for (ResCloudlet rcl : getCloudletExecList()) {
      if (rcl.getCloudletId() == cloudletId) {
        return rcl.getCloudletStatus();
      }
    }

    for (ResCloudlet rcl : getCloudletPausedList()) {
      if (rcl.getCloudletId() == cloudletId) {
        return rcl.getCloudletStatus();
      }
    }

    for (ResCloudlet rcl : getCloudletWaitingList()) {
      if (rcl.getCloudletId() == cloudletId) {
        return rcl.getCloudletStatus();
      }
    }

    return -1;
  }