d3scomp / JDEECo

JDEECo is a Java implementation of the DEECo component system
10 stars 12 forks source link

Ensembles don't work correctly when using hashmap index in knowledge path #152

Open jiracekz opened 9 years ago

jiracekz commented 9 years ago

See IntelligentEnsembleSimulation / both ensembles. I believe the error is in KnowledgePathHelper.getAbsoluteStrippedPath - when resolving the PathNodeMapKey, the input parameter KnowledgePath path is accidentaly changed too (last two lines in the for cycle change the content of path. Problem is that path is passed by reference from ensemble membership/knowledge exchange parameters, therefore the ensemble membership/knowledge exchange parameters are accidentaly updated with the resolved version of knowledge path.