Class PduPlayer

java.lang.Object
edu.nps.moves.dis7.utilities.stream.PduPlayer

public class PduPlayer extends Object
Utility to play back log files of recorded PDUs. These PDUs can then be resent over a multicast group address, or processed locally.
Author:
Mike Bailey, jmbailey@nps.edu
  • Constructor Details

    • PduPlayer

      public PduPlayer(String ip, int port, Path disLogDirectory, boolean sendToNet) throws IOException
      Constructor that spawns the player thread.
      Parameters:
      ip - the multicast group address to utilize
      port - the multicast port to utilize
      disLogDirectory - a path to the directory containing PDU log files
      sendToNet - to capture X3D interpolator values - if desired
      Throws:
      IOException - if something goes wrong processing files
  • Method Details

    • addRawListener

      public void addRawListener(PduPlayer.RawListener listener)
      Method to add listener
      Parameters:
      listener - listener of interest
    • begin

      public void begin()
      Thread process for this class
    • startResume

      public void startResume()
      Start or resume this instance
    • stopPause

      public void stopPause()
      Stop or pause this instance
    • end

      public void end()
      End operation of this instance
    • main

      public static void main(String[] args) throws IOException
      Test execution for debugging
      Parameters:
      args - command-line arguments (unused)
      Throws:
      IOException