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

Currently Online:
26 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

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

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

Administrators: admin: 1