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
e1bcd435
Commit
e1bcd435
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
try/catch in main
parent
bcda7f4a
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
+12
-5
12 additions, 5 deletions
src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java
with
12 additions
and
5 deletions
src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java
+
12
−
5
View file @
e1bcd435
...
@@ -491,7 +491,7 @@ public class PduPlayer {
...
@@ -491,7 +491,7 @@ public class PduPlayer {
/** Test execution for debugging
/** Test execution for debugging
* @param args command-line arguments (unused)
* @param args command-line arguments (unused)
*/
*/
public
static
void
main
(
String
[]
args
)
throws
IOException
// TODO fix exception handling
public
static
void
main
(
String
[]
args
)
{
{
String
DEFAULT_OUTPUT_DIRECTORY
=
"pduLog"
;
String
DEFAULT_OUTPUT_DIRECTORY
=
"pduLog"
;
/** Default multicast group address we send on.
/** Default multicast group address we send on.
...
@@ -504,9 +504,16 @@ public class PduPlayer {
...
@@ -504,9 +504,16 @@ public class PduPlayer {
int
multicastPort
=
DEFAULT_MULTICAST_PORT
;
int
multicastPort
=
DEFAULT_MULTICAST_PORT
;
boolean
sendToNet
=
true
;
boolean
sendToNet
=
true
;
// create instance of class in this static block
try
PduPlayer
pduPlayer
=
new
PduPlayer
(
multicastAddress
,
multicastPort
,
Path
.
of
(
outputDirectory
),
sendToNet
);
{
// thread automatically starts up when class is instantiated
// create instance of class in this static block
pduPlayer
.
begin
();
// default is self test through all logs in ancestor pduLog subdirectory
PduPlayer
pduPlayer
=
new
PduPlayer
(
multicastAddress
,
multicastPort
,
Path
.
of
(
outputDirectory
),
sendToNet
);
// thread automatically starts up when class is instantiated
pduPlayer
.
begin
();
// default is self test through all logs in ancestor pduLog subdirectory
}
catch
(
IOException
ioe
)
{
System
.
out
.
println
(
"PduPlayer exception in main(): "
+
ioe
.
getMessage
());
}
}
}
}
}
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