wukong-m2m / wukong-darjeeling

Darjeeling for WuKong
Other
20 stars 17 forks source link

Mapper sometimes creates links from/to component -1 #142

Open nielsreijers opened 10 years ago

nielsreijers commented 10 years ago

I've seen this on two occasions, but haven't found a way to reproduce it yet. The fromComponent and toComponent attribute for the links were set to -1, so the application doesn't work. In both cases the application consisted of a light sensor, threshold and light actuator.

wycc commented 10 years ago

I saw the same situation when I work with KJ for his demo set. However, I have no way to reproduce it either. I suspect that it is related to the changes in the WukongStandfardLibrary.xml.

2014-03-06 12:37 GMT+08:00 Niels Reijers notifications@github.com:

I've seen this on two occasions, but haven't found a way to reproduce it yet. The fromComponent and toComponent attribute for the links were set to -1, so the application doesn't work. In both cases the application consisted of a light sensor, threshold and light actuator.

Reply to this email directly or view it on GitHubhttps://github.com/wukong-m2m/wukong-darjeeling/issues/142 .

YC

Phone: 886-2-23516989 Mobile: 0919816155

nielsreijers commented 10 years ago

I did make a lot of changes to the library, throwing away some old wuclasses and restructuring the ids. But those are only on the SAC2014 branch, not on develop yet. What changes were made to the library on develop that you suspect could be causing this?

wycc commented 10 years ago

If we delete one wuclass from the XML and this item is used by the FBP, when we load the FBP, we will get an item which ID is -1. This may be the reason that we saw an XML with ID to be -1.

This is just wild guess. I have no idea about the root cause yet,

2014-03-06 16:58 GMT+08:00 Niels Reijers notifications@github.com:

I did make a lot of changes to the library, throwing away some old wuclasses and restructuring the ids. But those are only on the SAC2014 branch, not on develop yet. What changes were made to the library on develop that you suspect could be causing this?

Reply to this email directly or view it on GitHubhttps://github.com/wukong-m2m/wukong-darjeeling/issues/142#issuecomment-36836209 .