Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
ac753ce5
Commit
ac753ce5
authored
5 years ago
by
terry-norbraten
Browse files
Options
Downloads
Patches
Plain Diff
javadoc
parent
8e952093
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java
+16
-14
16 additions, 14 deletions
src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java
with
16 additions
and
14 deletions
src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java
+
16
−
14
View file @
ac753ce5
...
...
@@ -49,7 +49,7 @@ public class PduPlayer {
private
static
String
pduLogEncoding
=
ENCODING_PLAINTEXT
;
// TODO use Java enumerations, generalize/share across library
/**
/**
Constructor that spawns the player thread.
*
* @param ip the multicast group address to utilize
* @param port the multicast port to utilize
...
...
@@ -97,7 +97,20 @@ public class PduPlayer {
public
void
begin
()
{
try
{
System
.
out
.
println
(
"Replaying DIS logs."
);
InetAddress
addr
=
InetAddress
.
getByName
(
ip
);
InetAddress
addr
=
null
;
DatagramPacket
datagramPacket
;
DISPDUType
type
;
String
tempString
;
String
[]
sa
=
null
,
splitString
;
String
REGEX
;
Pattern
pattern
;
byte
[]
pduTimeBytes
=
null
,
bufferShort
=
null
;
int
[]
arr
;
IntBuffer
intBuffer
;
int
tempInt
;
ByteBuffer
byteBuffer1
,
byteBuffer2
;
long
pduTimeInterval
,
targetSimTime
,
now
,
sleepTime
;
FilenameFilter
filter
=
(
dir
,
name
)
->
{
return
name
.
endsWith
(
PduRecorder
.
DISLOG_FILE_EXTENSION
)
&&
!
name
.
startsWith
(
"."
);
...
...
@@ -113,22 +126,11 @@ public class PduPlayer {
});
if
(
netSend
)
{
addr
=
InetAddress
.
getByName
(
ip
);
datagramSocket
=
new
DatagramSocket
();
}
Base64
.
Decoder
base64Decoder
=
Base64
.
getDecoder
();
DatagramPacket
datagramPacket
;
DISPDUType
type
;
String
tempString
;
String
[]
sa
=
null
,
splitString
;
String
REGEX
;
Pattern
pattern
;
byte
[]
pduTimeBytes
=
null
,
bufferShort
=
null
;
int
[]
arr
;
IntBuffer
intBuffer
;
int
tempInt
;
ByteBuffer
byteBuffer1
,
byteBuffer2
;
long
pduTimeInterval
,
targetSimTime
,
now
,
sleepTime
;
for
(
File
f
:
fs
)
{
System
.
out
.
println
(
"Replaying "
+
f
.
getAbsolutePath
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment