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
HasEffect
May 19, 2015
11:10, EEST
Avatar
pfpmeijers
Member
Members
Forum Posts: 9
Member Since:
October 29, 2014
sp_UserOfflineSmall Offline

Spec says:
“Each Transition can have one or more HasEffect References pointing to the effects that occur when the Transition was triggered.”
Is there any ordering in the effects? Can this be specified somehow?
E.g. the order in which multiple events would be triggered can matter. Or in case the effects are method calls, then order is important.
Grt, Patrick

May 26, 2015
14:46, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The specification does not define these including any order that could be defined or guaranteed for the client. In the server implementation you need to ensure yourself of the correct order. The natural order of the References collection in ServerNode (base of all UaNode implementations in the server side) is based on the TargetId of the references. To keep any other order, you need to somehow keep track of that yourself.

May 27, 2015
11:36, EEST
Avatar
pfpmeijers
Member
Members
Forum Posts: 9
Member Since:
October 29, 2014
sp_UserOfflineSmall Offline

Hum, that’s a pitty. Seems to be a flaw in the speficiation imho. If you can model multiple effects, then the order should also be defined.

From a modelling point of view the targets of HasEffect references are not to be coupled to a transition, since they can be applicable to multiple transitions.
Hence target ID can not be used to model a certain required order of effect execution.

Using the target ID as reference order is Prosys SDK specific, or is this standardized?

Grt, Patrick

May 27, 2015
14:48, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, that could perhaps be extended in the specification. You are free to add a request to OPC Foundation at

https://opcfoundation-onlineapplications.org/mantis/

Yes, the ordering that I mentioned is Prosys SDK specific – or specific to the UaNode/ServerNode implementation, since the references are stored in a ConcurrentSkipListMap to ensure natural ordering. You would need to implement your own UaNode version to override that at the moment, I am afraid.

May 28, 2015
10:33, EEST
Avatar
pfpmeijers
Member
Members
Forum Posts: 9
Member Since:
October 29, 2014
sp_UserOfflineSmall Offline

Ok. Clear. Thanks for the feedback.
Grt, Patrick

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 680

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6260

Newest Members:

sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule

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