Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
ff821148
Commit
ff821148
authored
Jun 03, 2020
by
Julian Zobel
Browse files
sysout remove
parent
2210da77
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/groups/groupforming/AbstractGroupForming.java
View file @
ff821148
...
...
@@ -140,7 +140,7 @@ public abstract class AbstractGroupForming implements IGroupFormingBehavior {
for
(
int
g
=
0
;
g
<
maxNumberOfGroups
;
g
++)
{
long
delay
=
Math
.
max
(
Time
.
MINUTE
,
(
long
)
((
rand
.
nextDouble
()
*
(
Time
.
MINUTE
*
45
)
+
Time
.
MINUTE
)));
System
.
out
.
println
(
"("
+
g
+
") Init Group Formation Time "
+
Time
.
getFormattedTime
(
delay
)
);
//
System.out.println("("+g+") Init Group Formation Time " + Time.getFormattedTime(delay) );
Event
.
scheduleWithDelay
(
delay
,
new
EventHandler
()
{
@Override
...
...
@@ -183,7 +183,7 @@ public abstract class AbstractGroupForming implements IGroupFormingBehavior {
else
{
// int groupsize = (int) Math.max(1, rand.nextGaussian() * 0.93 + 2.76);
int
groupsize
=
rand
.
nextInt
(
maxGroupSize
-
minGroupSize
+
1
)
+
minGroupSize
;
System
.
out
.
println
(
"[AbstractGroupForming] Group Size: "
+
groupsize
+
" ("
+
minGroupSize
+
"/"
+
maxGroupSize
+
")"
);
//
System.out.println("[AbstractGroupForming] Group Size: " + groupsize + " ("+minGroupSize+"/"+maxGroupSize+")");
return
groupsize
;
}
//return rand.nextInt(maxGroupSize - minGroupSize) + minGroupSize;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment