Search found 8 matches

by apopescu
Wed May 28, 2008 8:30 am
Forum: SMILE
Topic: Fault default outcome
Replies: 2
Views: 4648

Thanks, that's exactly the function I was looking for.
by apopescu
Tue May 27, 2008 12:26 pm
Forum: SMILE
Topic: Fault default outcome
Replies: 2
Views: 4648

Fault default outcome

Hello, Is there a function that returns the default outcome of a fault? network.getDefaultOutcome(node) returns -1 if the node is a fault. The setter function is: network.setFaultOutcome(node, 0, true); I need a function that returns the second parameter from setFaultOutcome. What can I use? Regards...
by apopescu
Fri May 16, 2008 8:43 am
Forum: SMILE
Topic: network width/height
Replies: 1
Views: 3874

network width/height

Hello, Is there a way to find network boundaries (i.e. maxX and maxY)? I would like to build the network dynamically and add the nodes from multiple xdsl files. The position of those nodes should be specified to avoid adding them all to (0,0) point. This would make the network impossible to read. Re...
by apopescu
Mon Apr 21, 2008 12:27 pm
Forum: SMILE
Topic: Dynamically added network
Replies: 1
Views: 3888

Dynamically added network

Hello, I have 2 networks, let's call them network A and network B. At runtime I need to connect n instances of network A to a node in network B. The connection would be 1 to 1 (one node in network A to a single node of network B). I would like to build network A only once, preferably by reading it f...
by apopescu
Wed Mar 05, 2008 9:10 am
Forum: SMILE
Topic: UserProperties bug
Replies: 6
Views: 8318

I've tried to use Network.readFile method and it worked fine.
The problem was in our code.
Thanks for your reply.
by apopescu
Fri Feb 29, 2008 4:32 pm
Forum: SMILE
Topic: UserProperties bug
Replies: 6
Views: 8318

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 ...
by apopescu
Fri Feb 29, 2008 2:22 pm
Forum: SMILE
Topic: UserProperties bug
Replies: 6
Views: 8318

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 + ",&...
by apopescu
Fri Feb 29, 2008 9:05 am
Forum: SMILE
Topic: UserProperties bug
Replies: 6
Views: 8318

UserProperties bug

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