Class FAHReader

  • All Implemented Interfaces:
    javajs.api.GenericLineReader

    public class FAHReader
    extends AtomSetCollectionReader
    FoldingAtHome json reader. Both the top and the coord files are necessary. But the coord files can be loaded as trajectories if the top has already been loaded for a given model.
    • Field Detail

      • factor

        float factor
      • pt

        int[] pt
      • readerSave

        private java.io.BufferedReader readerSave
      • units

        private java.lang.String units
    • Constructor Detail

      • FAHReader

        public FAHReader()
    • Method Detail

      • checkLine

        protected boolean checkLine()
                             throws java.lang.Exception
        Overrides:
        checkLine in class AtomSetCollectionReader
        Returns:
        true if next line needs to be read. Note that just a single token on line 1 is NOT possible. If that were the case, the xyz reader would have captured this.
        Throws:
        java.lang.Exception
      • readTopAtomsAndBonds

        boolean readTopAtomsAndBonds()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • readVnnCoords

        private boolean readVnnCoords()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkBondlengths

        private boolean checkBondlengths()
      • getTopData

        private void getTopData()