⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 backupiso.java

📁 基于Java技术实现的minipacs系统,可以进行诊断信息登记, 嵌入控件查看DICOM 影像和统计分析等功能.
💻 JAVA
字号:
/* * BackupIso.java * * Created on 26. oktober 2005, 11:31 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package backup.model; import backup.model.*;import java.lang.*;import java.io.*;import java.util.*;/** * * @author Thomas */public class BackupIso extends File implements Serializable {    private final int UID = this.hashCode();    private Vector<Study> studies = new Vector<Study>();    private int backupUniqueId = 0;    private String label;    private String mediumType;    private String description;    private String location;    private String operator;    private long length = 0;    private Date ISOCreationDate;    private Date ISOBurnDate;    /**     * Creates a new instance of BackupIso      */        public BackupIso(String pathname) {        super(pathname);        setLength();    }        public BackupIso(String pathname, Vector<Study> studies) {        super(pathname); // Set the path for this IsoFile        this.studies = studies;        setLength();    }        public void setLength() {        if (this.exists()) {            length = super.length();        } else {            length = 0;        }    }        public long length() {        return length;    }        public void addStudy(Study s) {        studies.add(s);    }        public Vector<Study> getStudies() {        return this.studies;    }        public int getBackupUniqueId() {        return this.backupUniqueId;    }        public String getLabel() {        return this.label;    }        public Date getCreatedTime(){        return ISOCreationDate;    }        public String getMediumType() {        return this.mediumType;    }        public String getDescription() {        return this.description;    }        public String getLocation() {        return this.location;    }        public String getOperator() {        return this.operator;    }        public Date getISOCreationDate() {        return ISOCreationDate;            }        public long getTotalStudySize() {        long totalStudySize = 0;        for (Study s : studies) {            totalStudySize += s.getStudySize();        }        return totalStudySize;    }        public void setInfo(String label, String mediumType, String description, String location) {        this.label = label;        this.mediumType = mediumType;        this.description = description;        this.location = location;    }        public void setMediumType(String type) {        this.mediumType = type;    }        public void setBackupUniqueId(int backupUniqueId) {        this.backupUniqueId = backupUniqueId;    }        public void setLabel(String label) {        this.label = label;    }        public void setLocation(String location) {        this.location = location;    }        public void setDescription(String description) {        this.description = description;            }        public void setOperator(String operator) {        this.operator = operator;            }        public void setISOCreationDate(Date date) {        this.ISOCreationDate = date;            }        public void setISOBurnedDate(Date date) {        this.ISOBurnDate = date;            }        public boolean equals(Object obj) {        try {            return (this.UID == ((BackupIso) obj).UID);        } catch (Exception e) {            return false;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -