-
public class DbcParser
-
-
Method Summary
Modifier and Type Method Description booleanisMessage(String line)Check if a String matches a dbc message definition booleanisSignal(String line)Check if a String matches a dbc signal definition MatchermatchMessage(String line)Creates a matcher that matches a dbc message definition MatchermatchSignal(String line)Creates a matcher that matches a dbc signal definition Map<String, MachineSignalDefinition>doParse(BufferedReader reader, Map<String, List<String>> filters, CanBus bus)Parse CAN signals matching the provided filters -
-
Method Detail
-
isMessage
boolean isMessage(String line)
Check if a String matches a dbc message definition
- Parameters:
line- A String withe one line of input
-
isSignal
boolean isSignal(String line)
Check if a String matches a dbc signal definition
- Parameters:
line- A String withe one line of input
-
matchMessage
Matcher matchMessage(String line)
Creates a matcher that matches a dbc message definition
- Parameters:
line- A String withe one line of input
-
matchSignal
Matcher matchSignal(String line)
Creates a matcher that matches a dbc signal definition
- Parameters:
line- A String withe one line of input
-
doParse
Map<String, MachineSignalDefinition> doParse(BufferedReader reader, Map<String, List<String>> filters, CanBus bus)
Parse CAN signals matching the provided filters
- Parameters:
reader- A reader to the can dbc filefilters- Map(frame, signals) to parsebus- CanBus to apply signal definitions to
-
-
-
-