T
T
Therapyx2016-10-05 16:45:27
Java
Therapyx, 2016-10-05 16:45:27

Is it possible to use an operator in a branch as a parameter or attribute?

This of course sounds quite absurd. But it would greatly simplify the situation in the crafts of the CEP rules.
The bottom line is that there is a HashMap of this type.
HashMap(String ID, new ClassA<Double Value,....>)
reading a huge amount of data, you need to constantly check them with a value pettern. Depending on the id, this can be
>, <, ==, <=, >= and even modulo. So instead of
if (map.get(ID).getValue < value)
and so tons of times for every need, you need to do something like

map.get(ID).getValue       class.getCONDITION      value)

more than 300 IDs, manually drive in half a year without such an approach. Otherwise, the entire hashmap could be filled in automatically.
Are there any solutions? Yet again
map.get(ID).getValue       class.getCONDITION      value)

95% I think that I'm delusional) But if someone tells me other possible solutions, I will be very grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question