Class PduPlayer
java.lang.Object
edu.nps.moves.dis7.utilities.stream.PduPlayer
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRawListener(PduPlayer.RawListener listener) Method to add listenervoidbegin()Thread process for this classvoidend()End operation of this instance and close connectionsstatic voidTest execution for debuggingvoidStart or resume this instancevoidStop 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 and close connections -
main
Test execution for debugging- Parameters:
args- command-line arguments (unused)
-