[Indicators] changed the serialization of the bip indicators

This commit is contained in:
Miriam Baglioni 2024-07-15 12:21:44 +02:00
parent 43f16ece50
commit 9e539d38f7
1 changed files with 4 additions and 10 deletions

View File

@ -192,19 +192,13 @@ public class Utils {
break;
case BIP_INFLUENCE_ALT:
m.getUnit().forEach(u -> {
if (u.getKey().equals("class"))
getImpactMeasure(i).setInfluenceAltClass(u.getValue());
if (u.getKey().equals("score"))
getImpactMeasure(i).setInfluenceAlt(Double.parseDouble(u.getValue()));
if (u.getKey().equals("class"))
getImpactMeasure(i).setCitationClass(u.getValue());
if (u.getKey().equals("score"))
getImpactMeasure(i).setCitationCount(Integer.parseInt(u.getValue()));
});
break;
case BIP_POPULARITY_ALT:
m.getUnit().forEach(u -> {
if (u.getKey().equals("class"))
getImpactMeasure(i).setPopularityAltClass(u.getValue());
if (u.getKey().equals("score"))
getImpactMeasure(i).setPopularityAlt(Double.parseDouble(u.getValue()));
});
break;
case BIP_IMPULSE:
m.getUnit().forEach(u -> {