<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Teemu,<br>
    <br>
    Thank you so much for your instructions. <br>
    I had simply implemented by creating a vector and a counter earlier.
    When calling analyzing the frame once, the counter will increase
    one. I know this is very silly. I will use your suggestions to
    improve the object-oriented style of my code. Thanks again.<br>
    <br>
    Yunlong<br>
    <div class="moz-cite-prefix">On 10/19/14 12:43 AM, Teemu Murtola
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAB5URpaPe5VPf4_WSDje-MF9Syy_Hkp9GYu-rMZ-8jz5_QWhdQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>and sorry for a bit late reply.</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Sun, Oct 12, 2014 at 10:27 PM,
            Yunlong Liu <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:yliu120@jh.edu" target="_blank">yliu120@jh.edu</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">I would
              like to have access to the data stored in the AnalysisData
              object after running a single pass over all the frames in
              the trajectory. I don't know how to do it and where to
              find the stored data.<br>
            </blockquote>
            <div><br>
            </div>
            <div>There are two alternatives:</div>
            <div>
              <ul>
                <li>If you really need random access to all the data
                  after it has been produced, you can call
                  requestStorage(-1) on the object, and the access the
                  data using getDataFrame().<br>
                </li>
                <li>If you only need to process the data in a manner
                  that can be done on-the-fly (e.g., accumulating them
                  from each frame in some way), you can create a class
                  that implements the AnalysisDataModuleSerial interface
                  and use addModule() in the AnalysisData object to add
                  your module to the processing chain of the data. The
                  functions in your class will be called for each frame
                  after the data has been entered. If your analysis
                  needs access to earlier frames, you can also call
                  requestStorage(N) to get access to N last frames
                  within these callbacks.</li>
              </ul>
              <div>Best regards,</div>
            </div>
            <div>Teemu</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>