Skip to content
Snippets Groups Projects
Commit dd1adf51 authored by danielcain's avatar danielcain
Browse files

C_T readMe for final project

parent d85ed9de
No related branches found
No related tags found
No related merge requests found
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
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