forked from usdot-jpo-ode/jpo-cvmanager
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added classes for decoded message types.
- Loading branch information
1 parent
2b9b773
commit 8102a95
Showing
6 changed files
with
112 additions
and
3 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
25 changes: 25 additions & 0 deletions
25
...isualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/MapDecodedMessage.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,25 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
|
||
import us.dot.its.jpo.geojsonconverter.pojos.geojson.LineString; | ||
import us.dot.its.jpo.geojsonconverter.pojos.geojson.map.ProcessedMap; | ||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeMapData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class MapDecodedMessage extends DecodedMessage{ | ||
public OdeMapData map; | ||
public ProcessedMap<LineString> processedMap; | ||
|
||
public MapDecodedMessage(ProcessedMap<LineString> processedMap, OdeMapData map, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.processedMap = processedMap; | ||
this.map = map; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...sualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/SpatDecodedMessage.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,24 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import us.dot.its.jpo.geojsonconverter.pojos.spat.ProcessedSpat; | ||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeSpatData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class SpatDecodedMessage extends DecodedMessage{ | ||
public OdeSpatData spat; | ||
public ProcessedSpat processedSpat; | ||
|
||
public SpatDecodedMessage(ProcessedSpat processedSpat, OdeSpatData spat, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.processedSpat = processedSpat; | ||
this.spat = spat; | ||
|
||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...isualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/SrmDecodedMessage.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,20 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeSrmData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class SrmDecodedMessage extends DecodedMessage{ | ||
public OdeSrmData srm; | ||
|
||
public SrmDecodedMessage(OdeSrmData srm, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.srm = srm; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...isualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/SsmDecodedMessage.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,20 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeSsmData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class SsmDecodedMessage extends DecodedMessage{ | ||
public OdeSsmData ssm; | ||
|
||
public SsmDecodedMessage(OdeSsmData ssm, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.ssm = ssm; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...isualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/TimDecodedMessage.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,20 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeTimData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class TimDecodedMessage extends DecodedMessage{ | ||
public OdeTimData tim; | ||
|
||
public TimDecodedMessage(OdeTimData tim, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.tim = tim; | ||
} | ||
|
||
} |