Public Member Functions | Public Attributes | Private Attributes | List of all members
opcua.server.address_space.AddressSpace Class Reference
Inheritance diagram for opcua.server.address_space.AddressSpace:
Inheritance graph
[legend]

Public Member Functions

def __contains__ (self, nodeid)
 
def __delitem__ (self, nodeid)
 
def __getitem__ (self, nodeid)
 
def __init__ (self)
 
def __setitem__ (self, nodeid, value)
 
def add_datachange_callback (self, nodeid, attr, callback)
 
def add_method_callback (self, methodid, callback)
 
def delete_datachange_callback (self, handle)
 
def dump (self, path)
 
def empty (self)
 
def generate_nodeid (self, idx=None)
 
def get_attribute_value (self, nodeid, attr)
 
def keys (self)
 
def load (self, path)
 
def load_aspace_shelf (self, path)
 
def make_aspace_shelf (self, path)
 
def set_attribute_value (self, nodeid, attr, value)
 

Public Attributes

 cache
 
 logger
 
 source
 

Private Attributes

 _datachange_callback_counter
 
 _default_idx
 
 _handle_to_attribute_map
 
 _lock
 
 _nodeid_counter
 
 _nodes
 

Detailed Description

The address space object stores all the nodes of the OPC-UA server
and helper methods.
The methods are thread safe

Definition at line 434 of file address_space.py.

Constructor & Destructor Documentation

def opcua.server.address_space.AddressSpace.__init__ (   self)

Definition at line 442 of file address_space.py.

Member Function Documentation

def opcua.server.address_space.AddressSpace.__contains__ (   self,
  nodeid 
)

Definition at line 460 of file address_space.py.

def opcua.server.address_space.AddressSpace.__delitem__ (   self,
  nodeid 
)

Definition at line 464 of file address_space.py.

def opcua.server.address_space.AddressSpace.__getitem__ (   self,
  nodeid 
)

Definition at line 451 of file address_space.py.

def opcua.server.address_space.AddressSpace.__setitem__ (   self,
  nodeid,
  value 
)

Definition at line 456 of file address_space.py.

def opcua.server.address_space.AddressSpace.add_datachange_callback (   self,
  nodeid,
  attr,
  callback 
)

Definition at line 620 of file address_space.py.

def opcua.server.address_space.AddressSpace.add_method_callback (   self,
  methodid,
  callback 
)

Definition at line 640 of file address_space.py.

def opcua.server.address_space.AddressSpace.delete_datachange_callback (   self,
  handle 
)

Definition at line 635 of file address_space.py.

def opcua.server.address_space.AddressSpace.dump (   self,
  path 
)
Dump address space as binary to file; note that server must be stopped for this method to work
DO NOT DUMP AN ADDRESS SPACE WHICH IS USING A SHELF (load_aspace_shelf), ONLY CACHED NODES WILL GET DUMPED!

Definition at line 494 of file address_space.py.

def opcua.server.address_space.AddressSpace.empty (   self)
Delete all nodes in address space

Definition at line 487 of file address_space.py.

def opcua.server.address_space.AddressSpace.generate_nodeid (   self,
  idx = None 
)

Definition at line 468 of file address_space.py.

def opcua.server.address_space.AddressSpace.get_attribute_value (   self,
  nodeid,
  attr 
)

Definition at line 575 of file address_space.py.

def opcua.server.address_space.AddressSpace.keys (   self)

Definition at line 483 of file address_space.py.

def opcua.server.address_space.AddressSpace.load (   self,
  path 
)
Load address space from a binary file, overwriting everything in the current address space

Definition at line 508 of file address_space.py.

def opcua.server.address_space.AddressSpace.load_aspace_shelf (   self,
  path 
)
Load the standard address space nodes from a python shelve via LazyLoadingDict as needed.
The dump() method can no longer be used if the address space is being loaded from a shelf

Note: Intended for slow devices, such as Raspberry Pi, to greatly improve start up time

Definition at line 529 of file address_space.py.

def opcua.server.address_space.AddressSpace.make_aspace_shelf (   self,
  path 
)
Make a shelf for containing the nodes from the standard address space; this is typically only done on first
start of the server. Subsequent server starts will load the shelf, nodes are then moved to a cache
by the LazyLoadingDict class when they are accessed. Saving data back to the shelf
is currently NOT supported, it is only used for the default OPC UA standard address space

Note: Intended for slow devices, such as Raspberry Pi, to greatly improve start up time

Definition at line 515 of file address_space.py.

def opcua.server.address_space.AddressSpace.set_attribute_value (   self,
  nodeid,
  attr,
  value 
)

Definition at line 592 of file address_space.py.

Member Data Documentation

opcua.server.address_space.AddressSpace._datachange_callback_counter
private

Definition at line 446 of file address_space.py.

opcua.server.address_space.AddressSpace._default_idx
private

Definition at line 448 of file address_space.py.

opcua.server.address_space.AddressSpace._handle_to_attribute_map
private

Definition at line 447 of file address_space.py.

opcua.server.address_space.AddressSpace._lock
private

Definition at line 445 of file address_space.py.

opcua.server.address_space.AddressSpace._nodeid_counter
private

Definition at line 449 of file address_space.py.

opcua.server.address_space.AddressSpace._nodes
private

Definition at line 444 of file address_space.py.

opcua.server.address_space.AddressSpace.cache

Definition at line 544 of file address_space.py.

opcua.server.address_space.AddressSpace.logger

Definition at line 443 of file address_space.py.

opcua.server.address_space.AddressSpace.source

Definition at line 543 of file address_space.py.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Tue Jan 19 2021 03:12:44