public FileAttribute(String fileName, int fileSize)
                         throws ParameterException {
        // check for errors in the input
        if (fileName == null || fileName.length() == 0) {
            throw new ParameterException(
                        "FileAttribute(): Error - invalid file name.");
        }

        if (fileSize <= 0) {
            throw new ParameterException(
                        "FileAttribute(): Error - size <= 0.");
        }

        size_ = fileSize;
        name_ = fileName;

        // set the file creation time. This is absolute time
        Date date = GridSim.getSimulationCalendar().getTime();
        if (date != null) {
            creationTime_ = date.getTime();
        } else {
            creationTime_ = 0;
        }

        ownerName_ = null;
        id_ = File.NOT_REGISTERED;
        checksum_ = 0;
        type_ = File.TYPE_UNKOWN;
        lastUpdateTime_ = 0;
        cost_ = 0;
        resourceID_ = -1;
        masterCopy_ = true;
        readOnly_ = false;
    }