camitk.InterfaceNode¶
- class camitk.InterfaceNode¶
This class describe what are the methods to implement for a hierarchical tree node.
An InterfaceNode can only have one parent, even if it is a child of more than one InterfaceNodes.
Consequence: an InterfaceNode can be present many times in the hierarchy, but can only depends from one parent. To add an InterfaceNode as a child and change its parent to this use addChild(). To add an InterfaceNode as a child without modifying its parent, use attachChild().
This class defines an “interface” (in the OOP/java meaning of the term). See the introduction of GoF: “Program to an interface, not an implementation.” To see what Erich Gamma has to say about it: http://www.artima.com/lejava/articles/designprinciplesP.html To see what Bjarne Stroustrup has to say about it: http://www.artima.com/intv/modern.html
- __init__(*args, **kwargs)¶
Methods
__init__(*args, **kwargs)