Skip to content

Commit e60c671

Browse files
committed
Add the release date field in the PDB header class
1 parent 8934e94 commit e60c671

1 file changed

Lines changed: 45 additions & 3 deletions

File tree

  • biojava-structure/src/main/java/org/biojava/nbio/structure

biojava-structure/src/main/java/org/biojava/nbio/structure/PDBHeader.java

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
import java.util.*;
3636

3737

38-
/** A class that contains PDB Header information.
38+
/**
39+
* A class that contains PDB Header information.
3940
*
4041
* @author Andreas Prlic
4142
* @since 1.6
@@ -53,15 +54,14 @@ public class PDBHeader implements PDBRecord, Serializable{
5354
private String classification;
5455

5556
private Date depDate;
57+
private Date relDate;
5658
private Date modDate;
5759

5860
private Set<ExperimentalTechnique> techniques;
5961
private PDBCrystallographicInfo crystallographicInfo;
6062

6163
private float resolution;
62-
6364
private float rFree;
64-
6565
private float rWork;
6666

6767
private JournalArticle journalArticle;
@@ -84,10 +84,13 @@ public PDBHeader(){
8484

8585
depDate = new Date(0);
8686
modDate = new Date(0);
87+
relDate = new Date(0);
8788
dateFormat = new SimpleDateFormat("dd-MMM-yy",Locale.US);
89+
8890
resolution = DEFAULT_RESOLUTION;
8991
rFree = DEFAULT_RFREE;
9092
rWork = DEFAULT_RFREE;
93+
9194
bioAssemblies = new HashMap<Integer, BioAssemblyInfo>();
9295
crystallographicInfo = new PDBCrystallographicInfo();
9396

@@ -471,10 +474,20 @@ public void setClassification(String classification) {
471474
this.classification = classification;
472475
}
473476

477+
/**
478+
* Return the deposition date of the structure in the PDB.
479+
*
480+
* @return the deposition date
481+
*/
474482
public Date getDepDate() {
475483
return depDate;
476484
}
477485

486+
/**
487+
* The deposition date of the structure in the PDB
488+
*
489+
* @param depDate the deposition date
490+
*/
478491
public void setDepDate(Date depDate) {
479492
this.depDate = depDate;
480493
}
@@ -535,13 +548,42 @@ public void setRfree(float rFree) {
535548
this.rFree = rFree;
536549
}
537550

551+
/**
552+
* Return the latest modification date of the structure.
553+
*
554+
* @return the latest modification date
555+
*/
538556
public Date getModDate() {
539557
return modDate;
540558
}
541559

560+
/**
561+
* The latest modification date of the structure.
562+
*
563+
* @param modDate the latest modification date
564+
*/
542565
public void setModDate(Date modDate) {
543566
this.modDate = modDate;
544567
}
568+
569+
/**
570+
* Return the release date of the structure in the PDB.
571+
*
572+
* @return the release date
573+
*/
574+
public Date getRelDate() {
575+
return relDate;
576+
}
577+
578+
/**
579+
*
580+
* The release date of the structure in the PDB.
581+
*
582+
* @param relDate the release date
583+
*/
584+
public void setRelDate(Date relDate) {
585+
this.relDate = relDate;
586+
}
545587

546588
public String getTitle() {
547589
return title;

0 commit comments

Comments
 (0)