forked from usdot-jpo-ode/jpo-ode
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Michael7371/psm-data-feed
PSM Data Feed Addition
- Loading branch information
Showing
43 changed files
with
2,237 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<mxfile host="app.diagrams.net" modified="2023-09-27T18:11:45.070Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.43" etag="zyST0KjHg-Jb4oEt0_Pi" version="21.8.2" type="device"> | ||
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1"> | ||
<mxGraphModel dx="2394" dy="2100" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="VzqX0gNSxUYhQbhme7EZ-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="8ujiRsxlkH-QBAE6qNTh-2" target="VzqX0gNSxUYhQbhme7EZ-0" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="VzqX0gNSxUYhQbhme7EZ-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="8ujiRsxlkH-QBAE6qNTh-2" target="VzqX0gNSxUYhQbhme7EZ-1" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="8ujiRsxlkH-QBAE6qNTh-2" value="Asn1DecodedDataRouter.java" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-35" y="-140" width="170" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-5" target="gxxZRGfVhdAJ79STQYsQ-19" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-5" value="ACM (ADM)" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-240" y="-430" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-9" target="gxxZRGfVhdAJ79STQYsQ-62" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-9" value="AsnCodecMessageServiceController.java" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-485" y="-644" width="230" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-13" target="gxxZRGfVhdAJ79STQYsQ-5" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-13" value="Asn1DecoderInput" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-430" y="-440" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-116" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-19" target="gxxZRGfVhdAJ79STQYsQ-105" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-19" value="Asn1DecoderOutput" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-55" y="-440" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-57" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-58" target="gxxZRGfVhdAJ79STQYsQ-60" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-58" value="PsmReceiver.java" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-430" y="-860" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-60" target="gxxZRGfVhdAJ79STQYsQ-9" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-60" value="OdeRawEncodedPSMJson" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-455" y="-760" width="170" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-65" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-62" target="gxxZRGfVhdAJ79STQYsQ-13" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-62" value="Asn1DecodePSMJSON.java" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-450" y="-540" width="160" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-108" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="gxxZRGfVhdAJ79STQYsQ-105" target="8ujiRsxlkH-QBAE6qNTh-2" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="gxxZRGfVhdAJ79STQYsQ-105" value="AsnCodecRouterServiceController.java" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-100" y="-300" width="210" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-0" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="jXXAGItoZEFWX7bIlFFn-11" target="gxxZRGfVhdAJ79STQYsQ-58" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="jXXAGItoZEFWX7bIlFFn-11" value="" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-430" y="-990" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-4" value="" style="group" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1" connectable="0"> | ||
<mxGeometry x="180" y="-884" width="300" height="600" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-5" value="<font style="font-size: 24px">Submodule</font>" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;fillColor=#d5e8d4;strokeColor=#82b366;labelBackgroundColor=none;" parent="_VHhroGQ1N4wH_tI7Nl9-4" vertex="1"> | ||
<mxGeometry x="56.25" y="336.5853658536585" width="180" height="87.80487804878048" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-6" value="Key" style="swimlane;labelBackgroundColor=none;fontSize=18;" parent="_VHhroGQ1N4wH_tI7Nl9-4" vertex="1"> | ||
<mxGeometry width="299.99999999999994" height="600" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-8" value="" style="endArrow=classic;html=1;rounded=0;labelBackgroundColor=none;" parent="_VHhroGQ1N4wH_tI7Nl9-6" edge="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="108.75" y="541.4634146341463" as="sourcePoint" /> | ||
<mxPoint x="183.74999999999997" y="468.29268292682923" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-9" value="<font style="font-size: 24px">Kafka Topic</font>" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;labelBackgroundColor=none;" parent="_VHhroGQ1N4wH_tI7Nl9-6" vertex="1"> | ||
<mxGeometry x="56.25" y="175.60975609756096" width="180" height="117.07317073170731" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="_VHhroGQ1N4wH_tI7Nl9-10" value="<font style="font-size: 24px">ODE Java Class</font>" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;labelBackgroundColor=none;" parent="_VHhroGQ1N4wH_tI7Nl9-6" vertex="1"> | ||
<mxGeometry x="48.13" y="58.54" width="196.25" height="87.8" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="OYyFW5qYjDA_U_2kRjRC-9" value="FileUploadController.java" style="whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="75" y="130" width="150" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="VzqX0gNSxUYhQbhme7EZ-0" value="OdePsmTxPojo" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-120" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="VzqX0gNSxUYhQbhme7EZ-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="VzqX0gNSxUYhQbhme7EZ-1" target="OYyFW5qYjDA_U_2kRjRC-9" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="VzqX0gNSxUYhQbhme7EZ-1" value="OdePsmJson" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="90" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="Ak_uoQ98FiocAXNaD4mG-0" value="message arrives encoded with Asn1.c" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-285" y="-730" width="220" height="20" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="Ak_uoQ98FiocAXNaD4mG-1" value="message is decoded from Asn1.c" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-235" y="-370" width="110" height="50" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="Ak_uoQ98FiocAXNaD4mG-2" value="<font style="font-size: 24px">Data Flow</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;labelBackgroundColor=none;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="270" y="-342.53999999999996" width="120" height="43.9" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="Ak_uoQ98FiocAXNaD4mG-3" value="messages are in JSON format" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="210" y="15" width="105" height="50" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="Ak_uoQ98FiocAXNaD4mG-4" value="messages are in POJO format" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="-112.5" y="80" width="105" height="50" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
jpo-ode-core/src/main/java/us/dot/its/jpo/ode/model/OdePsmData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package us.dot.its.jpo.ode.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import static com.fasterxml.jackson.annotation.JsonTypeInfo.*; | ||
|
||
public class OdePsmData extends OdeData { | ||
|
||
private static final long serialVersionUID = 4944935387116447760L; | ||
|
||
public OdePsmData() { | ||
super(); | ||
} | ||
|
||
public OdePsmData(OdeMsgMetadata metadata, OdeMsgPayload payload) { | ||
super(metadata, payload); | ||
} | ||
|
||
@Override | ||
@JsonTypeInfo(use = Id.CLASS, include = As.EXISTING_PROPERTY, defaultImpl = OdePsmMetadata.class) | ||
public void setMetadata(OdeMsgMetadata metadata) { | ||
super.setMetadata(metadata); | ||
} | ||
|
||
@Override | ||
@JsonTypeInfo(use = Id.CLASS, include = As.EXISTING_PROPERTY, defaultImpl = OdePsmPayload.class) | ||
public void setPayload(OdeMsgPayload payload) { | ||
super.setPayload(payload); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
jpo-ode-core/src/main/java/us/dot/its/jpo/ode/model/OdePsmMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package us.dot.its.jpo.ode.model; | ||
|
||
|
||
public class OdePsmMetadata extends OdeLogMetadata { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public enum PsmSource { | ||
RSU, V2X, MMITSS, unknown | ||
} | ||
|
||
private PsmSource psmSource; | ||
private String originIp; | ||
|
||
public PsmSource getPsmSource() { | ||
return psmSource; | ||
} | ||
public OdePsmMetadata() { | ||
super(); | ||
} | ||
|
||
public OdePsmMetadata(OdeMsgPayload payload) { | ||
super(payload); | ||
} | ||
|
||
public void setPsmSource(PsmSource psmSource) { | ||
this.psmSource = psmSource; | ||
} | ||
|
||
public String getOriginIp() { | ||
return originIp; | ||
} | ||
|
||
public void setOriginIp(String originIp) { | ||
this.originIp = originIp; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
jpo-ode-core/src/main/java/us/dot/its/jpo/ode/model/OdePsmPayload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package us.dot.its.jpo.ode.model; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
|
||
import us.dot.its.jpo.ode.plugin.j2735.J2735PSM; | ||
|
||
public class OdePsmPayload extends OdeMsgPayload { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public OdePsmPayload() { | ||
this(new J2735PSM()); | ||
} | ||
|
||
@JsonCreator | ||
public OdePsmPayload( @JsonProperty("data") J2735PSM psm) { | ||
super(psm); | ||
this.setData(psm); | ||
} | ||
|
||
@JsonProperty("data") | ||
public J2735PSM getPsm() { | ||
return (J2735PSM) getData(); | ||
} | ||
|
||
public void setPsm(J2735PSM psm) { | ||
setData(psm); | ||
} | ||
} |
Oops, something went wrong.