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: 124
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: 960
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: 124
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: 960
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: 267

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 124

pramanj: 86

ibrahim: 74

rocket science: 65

kapsl: 57

Sabari: 51

gjevremovic: 49

Xavier: 43

fred: 41

TimK: 41

Member Stats:

Guest Posters: 0

Members: 1749

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1323

Posts: 5649

Newest Members:

WalterFOUNC, datafastproxiespx01, LenkaLok, seoninet, justinevillanuev, namtrott5457, DonaldWibip, AlfredoEthix, andreidla, everangel7021

Moderators: Jouni Aro: 960, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 860, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 222, Lusetti: 0

Administrators: admin: 1