Class QCJSONWriter
java.lang.Object
org.jmol.util.JSONWriter
org.jmol.adapter.writers.QCJSONWriter
- All Implemented Interfaces:
JmolWriter
A very experimental class for writing QCJSON files. This standard is in the
process of being developed, so any of this could change at any time.
All we have here is Bob Hanson's experiment with getting Jmol to save and
restore structures, vibrations, and molecular orbitals.
Data set Bob is using is at
https://sourceforge.net/p/jmol/code/HEAD/tree/trunk/Jmol-datafiles/qcjson
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class JSONWriter
indent, oc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ObjectgetAndCheckValue(Map<String, Object> map, String key) getProperty(int modelIndex, String key) voidvoidtoString()voidwriteAtoms(int modelIndex) voidwriteBonds(int modelIndex) voidwriteJob(int iJob) voidvoidvoidvoidvoidintwriteModel(int modelIndex) voidwriteModelMetadata(int modelIndex) voidvoidvoidvoidwriteTopology(int modelIndex) intwriteVibrations(int modelIndex) Methods inherited from class JSONWriter
append, arrayAdd, arrayClose, arrayOpen, closeStream, mapAddKey, mapAddKeyValue, mapAddKeyValueRaw, mapAddMapAllExcept, mapClose, mapOpen, setModifyKeys, setStream, setWhiteSpace, setWriteNullAsString, writeArray, writeBoolean, writeList, writeMap, writeNull, writeNumber, writeString, writeString
-
Constructor Details
-
QCJSONWriter
public QCJSONWriter()
-
-
Method Details
-
set
- Specified by:
setin interfaceJmolWriter
-
write
- Specified by:
writein interfaceJmolWriter
-
toString
-
writeJSON
public void writeJSON() -
writeSchemaMetadata
public void writeSchemaMetadata() -
openSchema
public void openSchema() -
writeMagic
public void writeMagic() -
closeSchema
public void closeSchema() -
writeJobs
public void writeJobs() -
writeJob
public void writeJob(int iJob) -
writeJobMetadata
public void writeJobMetadata() -
writeModels
public void writeModels() -
writeModel
public int writeModel(int modelIndex) -
writeTopology
public void writeTopology(int modelIndex) -
getProperty
-
writeModelMetadata
public void writeModelMetadata(int modelIndex) -
writeAtoms
public void writeAtoms(int modelIndex) -
writeBonds
public void writeBonds(int modelIndex) -
writeVibrations
public int writeVibrations(int modelIndex) -
getAndCheckValue
- Overrides:
getAndCheckValuein classJSONWriter
-
writeMOBases
public void writeMOBases() -
writeObject
- Overrides:
writeObjectin classJSONWriter
-