IFFPdu needs modifications so that Layer 3 information can be added to it. Layer 3 contains Mode 5 information.
Current IFFPdu only supports information for Layer 1 and 2. Current IFFLayer2Pdu extends IFFPdu which does not support to adding layer 3 information into IFFPdu.
Solution idea:
We would like to modify IFFPdu so that a layer information can be added directly to it and the layers do not need to extend IFFPdu.
Basically we would create corresponding data classes for layers 1, 2 and 3. (IffPduLayer1Data, IffPduLayer2Data, IffPduLayer3Data) These data classes would extend AbstractIffPduLayerData. Data classes can then be added to IffPdu via addLayer method. Then later when someone wants to create layer 4 and 5 they can simply create IffPduLayerData classes and add them to IffPdu.
Files that need modifications:
- DistributedEmissionFamilyPdus.xml and JavaGenerator.java
-- These for IffPdu, AbstractIffPduLayerData, IffPduLayer1Data, IffPduLayer2Data and IffPduLayer3Data
- PduFactory.class on openddis7-java project
Is this solution okay to implement or do you have any suggestions for us how to improve it?
IFFPdu needs modifications so that Layer 3 information can be added to it. Layer 3 contains Mode 5 information.
Current IFFPdu only supports information for Layer 1 and 2. Current IFFLayer2Pdu extends IFFPdu which does not support to adding layer 3 information into IFFPdu.
Solution idea:
We would like to modify IFFPdu so that a layer information can be added directly to it and the layers do not need to extend IFFPdu.
Basically we would create corresponding data classes for layers 1, 2 and 3. (IffPduLayer1Data, IffPduLayer2Data, IffPduLayer3Data) These data classes would extend AbstractIffPduLayerData. Data classes can then be added to IffPdu via addLayer method. Then later when someone wants to create layer 4 and 5 they can simply create IffPduLayerData classes and add them to IffPdu.
Files that need modifications:
-- These for IffPdu, AbstractIffPduLayerData, IffPduLayer1Data, IffPduLayer2Data and IffPduLayer3Data
Is this solution okay to implement or do you have any suggestions for us how to improve it?