Class PduPlayer
java.lang.Object
edu.nps.moves.dis7.utilities.stream.PduPlayer
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRawListener(PduPlayer.RawListener listener)
Method to add listenervoid
begin()
Thread process for this classvoid
end()
End operation of this instancestatic void
Test execution for debuggingvoid
Start or resume this instancevoid
Stop or pause this instance
-
Constructor Details
-
PduPlayer
Constructor that spawns the player thread.- Parameters:
ip
- the multicast group address to utilizeport
- the multicast port to utilizedisLogDirectory
- a path to the directory containing PDU log filessendToNet
- to capture X3D interpolator values - if desired- Throws:
IOException
- if something goes wrong processing files
-
-
Method Details
-
addRawListener
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
Test execution for debugging- Parameters:
args
- command-line arguments (unused)- Throws:
IOException
-