Hi,
I have created a network with a single node in Genie and
set one user property to the node.
Smile API is returning an empty array for UserProperties of that node.
Have anyone faced this problem before?
Adrian
UserProperties bug
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: UserProperties bug
I can't reproduce the problem. Make sure you're accessing the user properties of correct node. If problem persists, post the network and code here.
Here is the model I'm using.
The Smile code is listed below:
...
String id="TESTCHANCE";
UserProperty[] properties1 = network.getNodeUserProperties(id);
if (properties1 != null && properties1.length > 0) {
for (UserProperty property : properties1) {
System.out.println(id + "," + property.name + "," + property.value);
}
System.out.println("-------------------");
}
...
The property wasn't listed.
The Smile code is listed below:
...
String id="TESTCHANCE";
UserProperty[] properties1 = network.getNodeUserProperties(id);
if (properties1 != null && properties1.length > 0) {
for (UserProperty property : properties1) {
System.out.println(id + "," + property.name + "," + property.value);
}
System.out.println("-------------------");
}
...
The property wasn't listed.
- Attachments
-
- Network2.xdsl
- Genie model
- (721 Bytes) Downloaded 476 times
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
We are building the model manually by reading the nodes out of the XDSL file and using addArc and different setters from Network.
Maybe the way we are constructing the model has flaws.
Is there a way in Smile API to pass the xdsl file to a method or constructor and get a Network or DiagNetwork as a result?
Maybe the way we are constructing the model has flaws.
Is there a way in Smile API to pass the xdsl file to a method or constructor and get a Network or DiagNetwork as a result?
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm