I'm calculating product systems' impacts in Java, using directly the olca-core maven module. As far as I know, this should be done like this :
ProductSystem system = ...
CalculationSetup setup = new CalculationSetup(CalculationType.SIMPLE_CALCULATION, system);
setup.impactMethod = ...
SystemCalculator calc = new SystemCalculator(mCache, new DenseSolver());
SimpleResult r = calc.calculateSimple(setup);
But, instead of SIMPLE_CALCULATION, I could have used CONTRIBUTION_ANALYSIS or UPSTREAM_ANALYSIS.
Moreover, instead of calculateSimple(), I could have used calculateContributions() or calculateUpstream().
Then, I'm wondering whether the three values of CalculationType can be combined with the three methods of the calculator, or whether SIMPLE_CALCULATION should go with calculateSimple(), and so on. I guess it's the case, but I'm not sure.
Thank you very much in advance for an answer,