Class MdCrdReader

  • All Implemented Interfaces:
    javajs.api.GenericLineReader

    public class MdCrdReader
    extends AtomSetCollectionReader
    Amber Coordinate File Reader not a stand-alone reader -- must be after COORD keyword in LOAD command
    • Field Detail

      • ptFloat

        private int ptFloat
      • lenLine

        private int lenLine
    • Constructor Detail

      • MdCrdReader

        public MdCrdReader()
    • Method Detail

      • checkLine

        protected boolean checkLine()
                             throws java.lang.Exception
        Overrides:
        checkLine in class AtomSetCollectionReader
        Returns:
        true if need to read new line
        Throws:
        java.lang.Exception
      • readCoordinates

        private void readCoordinates()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getFloat

        private float getFloat()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPoint

        private javajs.util.P3 getPoint()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTrajectoryStep

        private boolean getTrajectoryStep​(javajs.util.P3[] trajectoryStep,
                                          boolean isPeriodic)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • skipFloats

        private boolean skipFloats​(int n)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception