Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Create addressSpace fragments using a NodeSet.xml
February 21, 2014
14:05, EET
Avatar
hbrackel
Member
Members
Forum Posts: 135
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Hi all,
I’m trying to create parts of my server’s addressSpace from one or more NodeSet.xml descriptions (generated with UAModeler). After removing the and tags, parsing doesn’t throw exceptions. The namespaces are added to the server including their respective nodeManagers. Just the actual “objects” do not show up when browsing. What am I missing?

Many thanks for your support.
-Hans-Uwe

Here is the simple test Nodeset.xml along with the code extract:

URI uri = MyServer.class.getResource(“test_nodeset_from_modeler.xml”).toURI();
ModelParser mp = new ModelParser(myServer.server.getNodeManagerTable());
mp.parseFile(uri);

Just noticed, that the XML didn’t come through (has been scrambled in this post). I can send it in per email as needed.

February 21, 2014
14:47, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The current “official” way to load the XML is to use server.getNodeManagerTable().loadModel(). We have not documented this too much, yet (since it’s not fully tested with UaModeler generated models), but it should work in general. Please, confirm if it works for you.

We are actually working on improved modelling support to be included in the SDK 2.0. More about that later, when we have something to publish…

February 21, 2014
15:48, EET
Avatar
hbrackel
Member
Members
Forum Posts: 135
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

This works very well so far (based on a very simple model with just 2 nodes). Removing the UaModeler’s extensions is not too much work and really pays off in this case.

Are you eventually planning the extraction/export of a NodeSet.xml from a live server addressSpace portion as well? I’m building a rather complex custom aggregation server and would like to export parts of the aggregated addressSpace.

Many thanks for your quick response above.

February 22, 2014
15:02, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

hbrackel said

This works very well so far (based on a very simple model with just 2 nodes). Removing the UaModeler’s extensions is not too much work and really pays off in this case.

The latest parser (maybe it’s in the 2.0 beta only?) should ignore the extensions as well.

Are you eventually planning the extraction/export of a NodeSet.xml from a live server addressSpace portion as well? I’m building a rather complex custom aggregation server and would like to export parts of the aggregated addressSpace.

That hasn’t been planned yet. We will need to consider it later, though.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1