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
cf1fe91e
Commit
cf1fe91e
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
library methods renamed
parent
6c69880d
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
assignments/src/MV3500Cohort2019JulySeptember/homework4/Fetterolf/FetterolfPduListenerSaver.java
+4
-4
4 additions, 4 deletions
...tember/homework4/Fetterolf/FetterolfPduListenerSaver.java
with
4 additions
and
4 deletions
assignments/src/MV3500Cohort2019JulySeptember/homework4/Fetterolf/FetterolfPduListenerSaver.java
+
4
−
4
View file @
cf1fe91e
...
...
@@ -57,7 +57,7 @@ public class FetterolfPduListenerSaver {
// try {
PduRecorder
recorder
=
new
PduRecorder
(
outDir
,
mcast
,
port
);
recorder
.
start
Resume
();
recorder
.
start
();
mystate
state
=
mystate
.
RUNNING
;
System
.
out
.
println
(
"* recorder.startResume(), state=RUNNING, recording in progress..."
);
Scanner
scan
=
new
Scanner
(
System
.
in
);
...
...
@@ -67,15 +67,15 @@ public class FetterolfPduListenerSaver {
System
.
out
.
println
(
"Type p/enter to pause, r/enter to resume, q/enter to stop recording, save and quit"
);
String
line
=
scan
.
nextLine
();
if
(
line
.
equalsIgnoreCase
(
"p"
)
&&
state
==
mystate
.
RUNNING
)
{
recorder
.
stopP
ause
();
recorder
.
p
ause
();
state
=
mystate
.
PAUSED
;
System
.
out
.
println
(
"* recorder.stopPause(), state=PAUSED, recording paused..."
);
}
else
if
(
line
.
equalsIgnoreCase
(
"r"
)
&&
state
==
mystate
.
PAUSED
)
{
recorder
.
startR
esume
();
recorder
.
r
esume
();
state
=
mystate
.
RUNNING
;
System
.
out
.
println
(
"* recorder.startResume(), state=RUNNING, recording in progress..."
);
}
else
if
(
line
.
equalsIgnoreCase
(
"q"
))
{
recorder
.
end
();
recorder
.
stop
();
System
.
out
.
println
(
"* recorder.end(), recording complete."
);
break
;
}
...
...
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