zombie.py
Go to the documentation of this file.
1 # -*- Python -*-
2 # -*- coding: utf-8 -*-
3 
4 '''rtctree
5 
6 Copyright (C) 2009-2014
7  Geoffrey Biggs
8  RT-Synthesis Research Group
9  Intelligent Systems Research Institute,
10  National Institute of Advanced Industrial Science and Technology (AIST),
11  Japan
12  All rights reserved.
13 Licensed under the Eclipse Public License -v 1.0 (EPL)
14 http://www.opensource.org/licenses/eclipse-1.0.txt
15 
16 Object representing a zombie node in the tree.
17 
18 '''
19 
20 
21 from rtctree.exceptions import *
22 from rtctree.node import TreeNode
23 
24 
25 ##############################################################################
26 ## Zombie node object
27 
29  '''Node representing a zombie object on a name server.
30 
31  Zombie nodes can occur below name server and directory nodes. They
32  cannot contain any children. They do not contain a reference to a
33  CORBA object as they represent the lack of such an object under a
34  name still registered on the name server.
35 
36  '''
37  def __init__(self, name, parent, *args, **kwargs):
38  '''Constructor.
39 
40  @param name Name of this object (i.e. its entry in the path).
41  @param parent The parent node of this node, if any.
42 
43  '''
44  super(Zombie, self).__init__(name=name, parent=parent, *args, **kwargs)
45 
46  @property
47  def is_zombie(self):
48  '''Is this node a zombie?'''
49  return True
50 
51 
52  ###########################################################################
53  # Internal API
54 
55  def _add_child(self):
56  # Zombies cannot contain children.
57  raise CannotHoldChildrenError
58 
59 
60 # vim: tw=79
61 
Zombie node object.
Definition: zombie.py:28
def _add_child(self)
Internal API.
Definition: zombie.py:55
def is_zombie(self)
Definition: zombie.py:47
def __init__(self, name, parent, args, kwargs)
Definition: zombie.py:37
Base node object.
Definition: node.py:29


rtctree
Author(s): Geoffrey Biggs
autogenerated on Fri Jun 7 2019 21:56:24