Skip to content

Commit

Permalink
Make config generator deterministic, be safe with node order
Browse files Browse the repository at this point in the history
  • Loading branch information
vladamatena committed Apr 11, 2016
1 parent 1e6cd67 commit 58e9cd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Set;

import cz.cuni.mff.d3s.deeco.simulation.omnet.OMNeTNative;
import cz.cuni.mff.d3s.jdeeco.position.Position;
Expand All @@ -34,7 +34,7 @@ class Node {

private double txPower802154 = DEFAULT_802_15_4_TX_POWER_MW;

private Set<Node> nodes = new HashSet<>();
private List<Node> nodes = new LinkedList<>();

public OMNeTConfigGenerator(long limit) {
this.limit = limit;
Expand Down

0 comments on commit 58e9cd3

Please sign in to comment.