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
c17e55ac
Commit
c17e55ac
authored
4 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
accept Terry's changes
parent
2456930b
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
src/edu/nps/moves/dis7/utilities/PduFactory.java
+14
-16
14 additions, 16 deletions
src/edu/nps/moves/dis7/utilities/PduFactory.java
with
14 additions
and
16 deletions
src/edu/nps/moves/dis7/utilities/PduFactory.java
+
14
−
16
View file @
c17e55ac
...
@@ -118,10 +118,9 @@ public class PduFactory
...
@@ -118,10 +118,9 @@ public class PduFactory
return
pdu
;
return
pdu
;
}
}
private
LiveEntityPdu
addBoilerPlate
(
LiveEntityPdu
pdu
)
private
LiveEntity
Family
Pdu
addBoilerPlate
(
LiveEntity
Family
Pdu
pdu
)
{
{
pdu
.
setSubprotocolNumber
(
DISLiveEntitySubprotocolNumber
.
NO_SUBPROTOCOL
)
pdu
.
setExerciseID
(
defaultExerciseId
)
.
setExerciseID
(
defaultExerciseId
)
.
setTimestamp
(
doTime
())
.
setTimestamp
(
doTime
())
.
setLength
((
short
)
pdu
.
getMarshalledSize
());
//todo check if should be done in Pdu class
.
setLength
((
short
)
pdu
.
getMarshalledSize
());
//todo check if should be done in Pdu class
...
@@ -993,9 +992,9 @@ public class PduFactory
...
@@ -993,9 +992,9 @@ public class PduFactory
.setEntityLocation(new LiveEntityRelativeWorldCoordinates())
.setEntityLocation(new LiveEntityRelativeWorldCoordinates())
.setEntityOrientation(new LiveEntityOrientation())
.setEntityOrientation(new LiveEntityOrientation())
.setOrientationError(new LiveEntityOrientationError())
.setOrientationError(new LiveEntityOrientationError())
.setPositionError(new LiveEntityPositionError())
*/
.setPositionError(new LiveEntityPositionError())
//
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
*/
//
return (TSPIPdu) addBoilerPlate(pdu);
return
(
TSPIPdu
)
addBoilerPlate
(
pdu
);
}
}
/**
/**
...
@@ -1014,9 +1013,9 @@ public class PduFactory
...
@@ -1014,9 +1013,9 @@ public class PduFactory
.setCapabilities(new SurfacePlatformCapabilities())
.setCapabilities(new SurfacePlatformCapabilities())
.setAppearanceFields(new Appearance())
.setAppearanceFields(new Appearance())
.setEntityMarking(newEntityMarking())
.setEntityMarking(newEntityMarking())
.setForceId(ForceID.OTHER)
*/
.setForceId(ForceID.OTHER)
//
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
*/
//
return (AppearancePdu) addBoilerPlate(pdu);
return
(
AppearancePdu
)
addBoilerPlate
(
pdu
);
}
}
/**
/**
...
@@ -1028,9 +1027,8 @@ public class PduFactory
...
@@ -1028,9 +1027,8 @@ public class PduFactory
{
{
ArticulatedPartsPdu
pdu
=
new
ArticulatedPartsPdu
()
ArticulatedPartsPdu
pdu
=
new
ArticulatedPartsPdu
()
.
setLiveEntityId
(
new
EntityID
());
.
setLiveEntityId
(
new
EntityID
());
return
pdu
;
/*pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);*/
// pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
return
(
ArticulatedPartsPdu
)
addBoilerPlate
(
pdu
);
// return (ArticulatedPartsPdu) addBoilerPlate(pdu);
}
}
/**
/**
...
@@ -1050,9 +1048,9 @@ public class PduFactory
...
@@ -1050,9 +1048,9 @@ public class PduFactory
/*
/*
.setLocation(new LiveEntityRelativeWorldCoordinates())
.setLocation(new LiveEntityRelativeWorldCoordinates())
.setVelocity(new LiveEntityLinearVelocity())
.setVelocity(new LiveEntityLinearVelocity())
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
*/
*/
// pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
return
(
LEFirePdu
)
addBoilerPlate
(
pdu
);
// return (LEFirePdu) addBoilerPlate(pdu);
}
}
/**
/**
...
@@ -1074,9 +1072,9 @@ public class PduFactory
...
@@ -1074,9 +1072,9 @@ public class PduFactory
.setMunitionOrientation(new LiveEntityOrientation16())
.setMunitionOrientation(new LiveEntityOrientation16())
.setVelocity(new LiveEntityLinearVelocity())
.setVelocity(new LiveEntityLinearVelocity())
.setWorldLocation(new LiveEntityRelativeWorldCoordinates())
.setWorldLocation(new LiveEntityRelativeWorldCoordinates())
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
*/
*/
// pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
return
(
LEDetonationPdu
)
addBoilerPlate
(
pdu
);
// return (LEDetonationPdu) addBoilerPlate(pdu);
}
}
/**
/**
...
...
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