diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt b/deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt new file mode 100644 index 0000000000000000000000000000000000000000..6ddbd1fea425b257827c0e5fab093b50e90766de --- /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