Simplified HLA Detection Event Model
Closed this issue · 0 comments
asorici commented
Why
Starting from the developments in #11, initial rules writing was attempted. However, Drools documentation shows that timestamp and duration of an event have to be set as fields of the event class. Since we wrap all metadata in separate class, this cannot currently be handled.
What
Two variants are implemented:
- declare event models directly in
.drl
rule file (see documentation here) and specify timestamp and duration alongside event content. In this case, events would be inserted as in the example shown here - implement a reflection mechanism to dynamically add fields to our event objects which specify the timestamp and duration attributes. This mechanism would be used prior to inserting the event in working memory via a stream.