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
isActive() method not available in AlarmConditionTypeImpl
October 26, 2021
11:14, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

I try AlarmConditionTypeImpl.isActive(), but this method is not available.
is this a limitation of the sdk or is there a way to enable this method ?

Thanks

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

Hi,

Um, why do you expect there to be a such method? Your IDE and javadocs will show all the methods there are.

There is no such UA Method for that type in OPC UA, thus no such method was generated on the client side.

Yes, in the server side there is the convinience method ‘public boolean isActive()’, but all that does is basically return is the getActiveStateNode().isId(), thus you can use same in the client side. Technically the server side method is only there for backwards compatibility reasons from the era before our current Codegenerator implementation.

The AlarmConditionType is explained in https://reference.opcfoundation.org/Core/docs/Part9/5.8.2/ (below the tables) “ActiveState/Id when set to True indicates that the situation the Condition is representing currently exists”. And yes, this is in general something you are expected to know or learn by yourself.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 75

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1466

Posts: 6256

Newest Members:

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

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: 320, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1