Skip to content

Commit

Permalink
Added classes for decoded message types.
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Wiens committed May 8, 2024
1 parent 2b9b773 commit 8102a95
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
@Setter
@Getter
public class BsmDecodedMessage extends DecodedMessage{
public OdeBsmData data;
public OdeBsmData bsm;

public BsmDecodedMessage(OdeBsmData data, String asn1Text, MessageType type, String decodeErrors) {
public BsmDecodedMessage(OdeBsmData bsm, String asn1Text, MessageType type, String decodeErrors) {
super(asn1Text, type, decodeErrors);
this.data = data;
this.bsm = bsm;
}

}
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;
}

}
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;

}

}
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;
}

}
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;
}

}
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;
}

}

0 comments on commit 8102a95

Please sign in to comment.