+ /**
+ * Constructor given file path and PDB id.
+ *
+ * @param filePath
+ */
+ // public PDBEntry(String filePath, String pdbId)
+ // {
+ // this.file = filePath;
+ // this.id = pdbId;
+ // }
+
+ public PDBEntry(String pdbId, String chain, PDBEntry.Type type,
+ String filePath)
+ {
+ this.id = pdbId;
+ this.chainCode = chain;
+ this.type = type == null ? null : type.toString();
+ this.file = filePath;
+ }
+
+ /**
+ * Copy constructor.
+ *
+ * @param entry
+ */