Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
dd1adf51
Commit
dd1adf51
authored
6 years ago
by
danielcain
Browse files
Options
Downloads
Patches
Plain Diff
C_T readMe for final project
parent
d85ed9de
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt
+101
-0
101 additions, 0 deletions
...8JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt
with
101 additions
and
0 deletions
deliverables/src/MV3500Cohort2018JulySeptember/FinalProject/CainThomersonFinal/ReadMe.txt
0 → 100644
+
101
−
0
View file @
dd1adf51
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment