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, found in ancestor pduLogs subdirectory. These PDUs can then be resent over a multicast group address, or processed locally. Example main() self-test response shown in log file.
Author:
Don Brutzman, brutzman@nps.edu, Mike Bailey, jmbailey@nps.edu
See Also:
  • 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 and close connections
    • main

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