Meta.channel¶
Channels¶
-
class
lxu.meta.channel.
Channels
¶ Base class for defining Channels. The client will subclass this base class, filling in the methods that they require. It’s then instantiated as a metaclass to be used by servers.
-
init_chan
(desc)¶ This is passed an AttributeDesc object which is used to init the channels.
-
Meta¶
-
class
lxu.meta.channel.
Meta
¶ The base class for metaclass nodes defines their core features. They have a type given by one of the pre-defined type strings, they have an optional name, and an optional guid. The are arranged into a tree, and the tree can be searched for matching meta nodes.
-
add
(sub)¶ Add another meta object as a child of this one.
-
alloc
()¶ Return the signature for this metaclass. Depends on type.
-
dump
(prefix)¶ Output the contents of the meta node tree with indenting.
-
find_any
(type, guid, miss)¶ Find a node with matching type/guid, searching first inside this node but searching higher up the tree until somthing matches.
-
find_sub
(type, guid)¶ Find first node with a matching type/guid under this node.
-
flatten
()¶ Return this meta and all sub-metas in a list.
-
get_ifcs
(guid)¶ Get the list of interfaces matching the given guid under this node. The list is returned as tuples: ((class, meta), …)
-
init_ifcs
(guid)¶ Initialize the _sub_ifcs attribute as a list of interfaces. If no guid is given we use the metaclass guid itself.
-
pre_init
()¶ Do any self-modification or other steps before initialization. Return true as long as there is more to do.
-
test
(type, guid)¶ Test this meta node against a type and guid and return true for match. All testing allows for type or guid to be None for wildcard.
-
Meta_Channels¶
-
class
lxu.meta.channel.
Meta_Channels
¶ This is the metaclass for Channels.
-
add
(sub)¶ Add another meta object as a child of this one.
-
alloc
()¶
-
dump
(prefix)¶ Output the contents of the meta node tree with indenting.
-
find_any
(type, guid, miss)¶ Find a node with matching type/guid, searching first inside this node but searching higher up the tree until somthing matches.
-
find_sub
(type, guid)¶ Find first node with a matching type/guid under this node.
-
flatten
()¶ Return this meta and all sub-metas in a list.
-
get_ifcs
(guid)¶ Get the list of interfaces matching the given guid under this node. The list is returned as tuples: ((class, meta), …)
-
init_ifcs
(guid)¶ Initialize the _sub_ifcs attribute as a list of interfaces. If no guid is given we use the metaclass guid itself.
-
pre_init
()¶ Do any self-modification or other steps before initialization. Return true as long as there is more to do.
-
test
(type, guid)¶ Test this meta node against a type and guid and return true for match. All testing allows for type or guid to be None for wildcard.
-