From dd1adf518031fb38baedaf437a3bed58150a21f3 Mon Sep 17 00:00:00 2001 From: danielcain <danielcain@172.20.154.88> Date: Mon, 10 Sep 2018 09:40:31 -0700 Subject: [PATCH] C_T readMe for final project --- .../CainThomersonFinal/ReadMe.txt | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt b/deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt new file mode 100644 index 0000000000..6ddbd1fea4 --- /dev/null +++ b/deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt @@ -0,0 +1,101 @@ +Final Project Notes: + +We used code via DIS over a LAN (Local Area Network). +The PDU and Espdu files were the genesis of the two files. + +To run our code you need to open two main classes + +C_T_EspduRequestingUnit.java, and C_T_EspduSupplyingUnit.java + +In order to get the program to run properly, execute: +First: C_T_EspduSupplyingUnit.java +Next: C_T_EspduRequestingUnit.java + +Each class has both a sender and a receiver built into them. They are listening +different types of PDU packets, and will then send a response. + +Below is the output from running the code- + +-------------------- EspduSupplyingUnit output ------------------------------- + +SUPPLYER UNIT: + Program started + +SUPPYER UNIT: + Listening + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.EntityStatePdu + EID:[1, 1, 2] + Entity Location: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] + Entity Type: 1 + +SENDING ENTITY STATE PACKET + EID=[2,2,2] + Entity Location: [-1534805.049164391, 585379.2141969808, 6142318.841117044] + Entity Type: 7 + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.ServiceRequestPdu + Requesting Entity ID:[1, 1, 2] + Service Type Requested: [1, Resupply] + +SENDING PACKET + Packet Type: Resupply Offer + Receiving Entity ID: [1, 1, 2] + Supplying Entity ID: [2, 2, 2] + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.AcknowledgePdu +SENDING PACKET + Packet Type: Acknowledge + +SUPPYER UNIT: + Listening + +-------------------- EspduRequestingUnit output ------------------------------ + +REQUESTING UNIT: + Program started + +REQUESTING UNIT: + Listening + +SENDING ENTITY STATE INFORMATION + EID=[1,1,2] + Entity Location: [-2707492.9269245286, -4353663.899966802, 3781450.3202754413] + Entity Type: 1 + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.EntityStatePdu + EID:[2, 2, 2] + Entity Location: [-1534805.049164391, 585379.2141969808, 6142318.841117044] + Entity Type: 7 + +SENDING SERVICE REQUEST + Entity Requesting:[1, 1, 2] + Service Type Requested: [1, Resupply] + +SENDING SERVICE REQUEST + Entity Requesting:[1, 1, 2] + Service Type Requested: [1, Resupply] + +SENDING SERVICE REQUEST + Entity Requesting:[1, 1, 2] + Service Type Requested: [1, Resupply] + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.ResupplyOfferPdu + Supplying Unit: [2, 2, 2] + Requesting Unit: [1, 1, 2] + +SENDING ACKNOWLEDGE + +SENDING ACKNOWLEDGE + +SENDING ACKNOWLEDGE + +RECEIVED PACKET + Packet Type: edu.nps.moves.dis.AcknowledgePdu + +REQUEST COMPLETED - SOCKET IS NOW CLOSED \ No newline at end of file -- GitLab