Skip to content
Snippets Groups Projects
Commit c78c2d65 authored by brutzman's avatar brutzman
Browse files

refactor renames for clarity; in comments

parent 3192ddec
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
//import com.google.common.io.Files;
//import edu.nps.moves.dis7.enumerations.Country;
//import edu.nps.moves.dis7.enumerations.DISPDUType;
//import edu.nps.moves.dis7.util.DisThreadedNetIF;
//import edu.nps.moves.dis7.util.DisThreadedNetworkInterface;
//import edu.nps.moves.dis7.util.PduFactory;
//import edu.nps.moves.dis7.util.playerrecorder.Player;
//import edu.nps.moves.dis7.util.playerrecorder.Recorder;
......@@ -171,32 +171,32 @@
// private HashMap<DISPDUType, Pdu> pduReceivedMap = new HashMap<>();
// private HashMap<DISPDUType, Pdu> pduReadMap = new HashMap<>();
//
// DisThreadedNetIF disnetworking;
// DisThreadedNetworkInterface disNetworkInterface;
// Recorder recorder;
//
// private void setupReceiver()
// {
// disnetworking = new DisThreadedNetIF();
// disnetworking.addListener(pdu -> {
// disNetworkInterface = new DisThreadedNetworkInterface();
// disNetworkInterface.addListener(pdu -> {
// pduReceivedMap.put(pdu.getPduType(), pdu);
// });
// }
//
// private void shutDownReceiver()
// {
// disnetworking.kill();
// disNetworkInterface.kill();
// }
//
// private void sendOne(Pdu pdu)
// {
// pduSentMap.put(pdu.getPduType(), pdu);
// disnetworking.send(pdu);
// disNetworkInterface.send(pdu);
// }
//
// private void setupRecorder() throws Exception
// {
// recorderDirectory = Files.createTempDir();
// recorder = new Recorder(recorderDirectory.getAbsolutePath(), disnetworking.getMcastGroup(), disnetworking.getDisPort());
// recorder = new Recorder(recorderDirectory.getAbsolutePath(), disNetworkInterface.getMcastGroup(), disNetworkInterface.getDisPort());
// System.out.println("Recorder log at " + recorderDirectory.getAbsolutePath());
// }
//
......@@ -215,7 +215,7 @@
// private void getAllFromRecorder(Semaphore sem) throws Exception
// {
// sem.acquire();
// Player player = new Player(disnetworking.getMcastGroup(), disnetworking.getDisPort(), recorderDirectory.toPath());
// Player player = new Player(disNetworkInterface.getMcastGroup(), disNetworkInterface.getDisPort(), recorderDirectory.toPath());
// player.sendToNet(false);
// player.addRawListener(ba -> {
// if (ba != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment