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

hide superfluous methods in pdu factory that no longer worked for Live Entity family PDUs

parent 835aa148
No related branches found
No related tags found
No related merge requests found
...@@ -986,6 +986,7 @@ public class PduFactory ...@@ -986,6 +986,7 @@ public class PduFactory
{ {
TSPIPdu pdu = new TSPIPdu() TSPIPdu pdu = new TSPIPdu()
.setLiveEntityId(newEntityID()); .setLiveEntityId(newEntityID());
return pdu;
/* /*
.setDeadReckoningParameters(newLiveDeadReckoningParameters()) .setDeadReckoningParameters(newLiveDeadReckoningParameters())
.setEntityLinearVelocity(new LiveEntityLinearVelocity()) .setEntityLinearVelocity(new LiveEntityLinearVelocity())
...@@ -993,8 +994,8 @@ public class PduFactory ...@@ -993,8 +994,8 @@ public class PduFactory
.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);
} }
/** /**
...@@ -1008,13 +1009,14 @@ public class PduFactory ...@@ -1008,13 +1009,14 @@ public class PduFactory
.setEntityType(newEntityType()) .setEntityType(newEntityType())
.setAlternateEntityType(newEntityType()) .setAlternateEntityType(newEntityType())
.setLiveEntityId(new EntityID()); .setLiveEntityId(new EntityID());
return pdu;
/* /*
.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);
} }
/** /**
...@@ -1026,8 +1028,9 @@ public class PduFactory ...@@ -1026,8 +1028,9 @@ public class PduFactory
{ {
ArticulatedPartsPdu pdu = new ArticulatedPartsPdu() ArticulatedPartsPdu pdu = new ArticulatedPartsPdu()
.setLiveEntityId(new EntityID()); .setLiveEntityId(new EntityID());
pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL); return pdu;
return (ArticulatedPartsPdu) addBoilerPlate(pdu); // pdu.setSubprotocolNumber(DISLiveEntitySubprotocolNumber.NO_SUBPROTOCOL);
// return (ArticulatedPartsPdu) addBoilerPlate(pdu);
} }
/** /**
...@@ -1043,12 +1046,13 @@ public class PduFactory ...@@ -1043,12 +1046,13 @@ public class PduFactory
.setMunitionLiveEntityId(newEntityID()) .setMunitionLiveEntityId(newEntityID())
.setTargetLiveEntityId(newEntityID()) .setTargetLiveEntityId(newEntityID())
.setMunitionDescriptor(newMunitionDescriptor()); .setMunitionDescriptor(newMunitionDescriptor());
return pdu;
/* /*
.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);
} }
/** /**
...@@ -1064,14 +1068,15 @@ public class PduFactory ...@@ -1064,14 +1068,15 @@ public class PduFactory
.setMunitionLiveEntityId(newEntityID()) .setMunitionLiveEntityId(newEntityID())
.setTargetLiveEntityId(newEntityID()) .setTargetLiveEntityId(newEntityID())
.setMunitionDescriptor(newMunitionDescriptor()); .setMunitionDescriptor(newMunitionDescriptor());
return pdu;
/* /*
.setEntityLocation(new LiveEntityLinearVelocity()) .setEntityLocation(new LiveEntityLinearVelocity())
.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