Skip to content
Snippets Groups Projects
Commit c17e55ac authored by Brutzman, Don's avatar Brutzman, Don
Browse files

accept Terry's changes

parent 2456930b
No related branches found
No related tags found
No related merge requests found
...@@ -118,10 +118,9 @@ public class PduFactory ...@@ -118,10 +118,9 @@ public class PduFactory
return pdu; return pdu;
} }
private LiveEntityPdu addBoilerPlate(LiveEntityPdu pdu) private LiveEntityFamilyPdu addBoilerPlate(LiveEntityFamilyPdu 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);
} }
/** /**
......
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