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
Question regarding the visibility of events
April 8, 2021
15:25, EEST
Avatar
AnttiMatik
Member
Members
Forum Posts: 9
Member Since:
January 31, 2021
sp_UserOfflineSmall Offline

Greetings, I’m presently working on a thesis project utilizing the Java SDK to develop a server program. I am testing the method / event functionality using the Prosys Browser. I have hit something of a snag however. In the samples provided (as well as the tutorial) it is simply stated that a new BaseEventType object can be created within a function of the custom NodeManagerUaNode object (as it is done in the sample code). This has, however, not worked. I am unable to see those events in the the Browser no matter which object I monitor.

The only success I’ve had in being able to monitor events is by creating a BaseEventType node as part of the DeviceSet within the address space. This is far from ideal however. I feel as if I’ve missed something obvious. Because of that any ideas are appreciated.

April 9, 2021
9:08, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Please clarify that are you trying to make a new Event type as in a new ObjectType node or are you trying to “trigger” a BaseEventType (type’d) Event?

Note that the literal “BaseEventType” is an abstract type (IsAbstract Attribute is true). Though, techically I do not think we actually prevent making an instance of it, but maybe we should..

Is your Event a subtype of ConditionType or anything else?

If a ConditionType subtype, you will NodeManagerUaNode.createInstance a node for it and then you can node.triggerEvent(…) for it. The node will remain in the address space and typically it has Methods etc. to change the state of it or it might have Properties to show some limit values etc.

If it is anything else, it is a “one-shot” event, for which there is no node. For those you must use NodeManagerUaNode.createEvent(…). Technically the way it currently works is that “virtual nodes” are constructed and then deleted when triggerEvent is called for the node that createEvent returned. These events can be observed by monitoring the Server node.

April 14, 2021
16:28, EEST
Avatar
AnttiMatik
Member
Members
Forum Posts: 9
Member Since:
January 31, 2021
sp_UserOfflineSmall Offline

My apologies for the late reply. The event in question is a custom class extending BaseEventTypeNode (going to call it MyEvent here). This node is then created with the createEvent function much like in the samples provided. After using createEvent to create the node the message and variables are set using functions from the class definition after which MyEvent.triggerEvent(null) is called. This is effectively how it is done in the sample for triggering a custom event.

I hope this clarifies my issue at least a bit.

April 14, 2021
16:57, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Just to doublecheck, you do monitor the Objects/Server node (the one Browser has there by default when you open the Event View)? Since that is the only node from where these “one-shot” events can be observed (and I hope I’m right here; I’ll have to check later, currently at the OPCF remote interop week, so answers are short for now from my side).

April 15, 2021
16:49, EEST
Avatar
AnttiMatik
Member
Members
Forum Posts: 9
Member Since:
January 31, 2021
sp_UserOfflineSmall Offline

Monitor the Objects node does show all events triggered when triggering an event node created when the MyEventType is defined within a function. It still doesn’t seem to work for one-time events that’re created with NodeManagerUaNode.createEvent right before being triggered. I did also try creating the one-shot events with createInstance which did not work either. Similarly, using createInstance and createEvent with a BaseEventTypeNode also fails to produce an even that can be monitored on the client.

April 16, 2021
9:23, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

I meant the literal node of path Root.Objects.Server and that alone. The one that has NodeId i=2253. See https://reference.opcfoundation.org/v104/Core/docs/Part3/4.6.1/.

Basically Alarm events would come from the actual alarm node (or well the object that it is sort of linked to in an abstract way), and it typically would have an “event trigger path” that would eventually lead to the the server node and it would be triggered for each object in the path. But for these “one-shot” events there is no node, so there is no such “path” in the first place and thus the only place you can observer them should be the server node, since that is the endpoint of all paths like this.

April 20, 2021
10:28, EEST
Avatar
AnttiMatik
Member
Members
Forum Posts: 9
Member Since:
January 31, 2021
sp_UserOfflineSmall Offline

Ah, my apologies. I misunderstood which node you were referring to. It turns out things work just fine now that I’m observing the Server node instead of the Objects one, I was simply looking in the wrong place. I thank you for your patience in helping me with this and wish you a nice day.

April 20, 2021
12:14, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Like, I do use the syntax “X/Y” sometimes also to mean X or Y OR X and Y, so that happening is … normal. But yes, this time it meant a path syntax instead.

Technically how it works is that we’ll invoke the event for the SourceNode property of the Event node that was instantiated (by the creatEvent, or for alarm nodes the actual node in the address space). Then we’ll look for inverse paths (recursively) for HasEventSource, HasNotifier, HasCondition referencecs and invoke it to them (recursively then continuing from those nodes). Lastly if the Server node is not part of that, it is also invoked for that node, since all events must come always via the Server node. The default value of that Property after instantiation for most event types in just the Server node. The MyAlarm node set’s that to MyLevel in the samples (and then there is the chain back to the Server node). But most of the “one-shot” events are sort of system or audit events etc. so they might not have a node i.e. the context is the “whole server”.

Hmm… the https://reference.opcfoundation.org/v104/Core/docs/Part5/B.4.16/ for the TransitionEventType does state: “The inherited Property SourceNode shall be filled with the NodeId of the StateMachine instance where the Transition occurs. If the Transition occurs in a SubStateMachine, then the NodeId of the SubStateMachine has to be used. If the Transition occurs between a StateMachine and a SubStateMachine, then the NodeId of the StateMachine has to be used, independent of the direction of the Transition.”

So at least those events could be observed also from those source nodes and not just the server node. So what I said earlier might have been not correct or a simplified version of the situation.

May 21, 2021
12:44, EEST
Avatar
hypnos97
Member
Members
Forum Posts: 4
Member Since:
May 5, 2021
sp_UserOfflineSmall Offline
Thông tin cơ bản nhất về XS miền trung hôm nay chuẩn nhất

Cùng tập thói quen theo dõi kết quả XSKT miền trung hàng ngày với chúng tôi vào lúc 17h10p các ngày trong tuần để biết sớm nhất các bộ số về trong ngày.

Trực tiếp KQ xổ số miền trung ở đâu?

Chắc hẳn người chơi xổ số miền trung ◀◀◀ CLICK cũng đã biết khác với miền bắc, XS miền trung mỗi ngày có tới 2 – 3 đài cùng tham gia quay thưởng bên cạnh đó tất cả các đài cũng có chung một khung giờ quay thưởng là 17h10p.

Để có thể theo dõi KQXS miền trung hôm nay có rất nhiều hình thức, người chơi có thể xem trực tiếp trên sóng truyền hình và đài phát thanh địa phương của tỉnh mà bạn đặt cược. Tuy nhiên với hình thức này thì không phải ai cũng có thời gian để theo dõi.

Nắm bắt nhu cầu này của người chơi, hiện nay có rất nhiều trang web ra đời cung cấp dịch vụ theo dõi kết quả XSKT miền Trung cho người chơi một cách hoàn toàn miễn phí.

Để theo dõi, bạn chỉ cần truy cập các trang web này qua thiết bị điện tử kết nối internet là có thể theo dõi bảng kết quả dễ dàng. Bên cạnh đó, người chơi cũng có thể lựa chọn theo dõi KQ xổ số miền trung theo bảng đầy đủ, lô tô 2 số, 3 số đều chỉ cần một lần nhấn.

Một số thông tin cần chú ý trên tờ vé XS miền trung

Trước khi thực hiện dò vé thì người chơi Kết quả xổ số miền trung ◀◀◀ BẤM XEM chỉ cần mua vé số XSKT miền trung của tỉnh quay thưởng hôm nay mà bản thân muốn đặt cược. Để tránh một vài trường hợp không đáng có người chơi nên chú ý một số thông tin trên tờ vé như:

  • Thời gian in trên tờ vé phải đúng ngày và trong thời hạn sử dụng.
  • Đài quay thưởng XSMT phải trùng khớp với đài dò vé
  • Dãy số được in đậm, rõ ràng và đủ 6 chữ số
  • Bạn cần giữ tờ vé XS miền trung thật cẩn thận, không bị nhàu nát, chắp vá.

Nếu tờ vé của bạn không đáp ứng được đầy đủ các yêu cầu nêu trên thì sẽ không được tiến hành đổi thưởng. Chính vì thế người chơi cần kiểm tra thật kỹ tờ vé.

Trúng thưởng xổ số miền trung đổi thưởng ở đâu?

Nếu đã xác định chính xác tỷ mỷ bản thân là người chơi Xổ số kiến thiết miền Trung ◀◀◀ TẠI ĐÂY may mắn trúng thưởng vậy bạn có thể thực hiện đổi thưởng tại các đại lý xổ số (với những giải thưởng giá trị 10 triệu đồng) hoặc công ty xổ số (giải thưởng lớn hơn 10 triệu đồng) gần mình nhất.

Lưu ý: bạn cần đổi thương trong vòng 30 ngày kể từ ngày vé trúng hoặc trong thời hạn in trên mỗi tờ vé.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

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

Moderators: Jouni Aro: 1010, 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