boschglobal / automotive-bus-schema

Automotive Bus Schema for data exchange between simulation models.
Apache License 2.0
3 stars 4 forks source link

Represent the Streams as a Union type #6

Closed timrulebosch closed 2 years ago

timrulebosch commented 2 years ago

By using a FBS Union we can represent a generic stream of frames. The type of the frame is encoded by the FBS Union and Vector (if possible).

union Frame{
    Can:[CanFrame],
    FlexRay:[FlexrayFrame],
    Ethernet:[EthernetFrame],
}
timrulebosch commented 2 years ago

@TGoeppel In this case, the mimetype is simply a generic stream of frames, and it is for the endpoint to decide what it can process. Of course that does not prevent only one type of Frame being encoded in a stream, so this only makes connecting Models a bit more abstract.