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: 1026
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: 1026
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: 1919

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 734

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1