Item class. Every structural object in a Mindwrapper application is an item. In the abstraction layer each item is an instance of the Model subclass, and in the presentation layer each item is an instance of the Presenter subclass. These two layers make up the so called abstraction-presentation (AP) or model-view-presenter (MVP) framework. The only Mindwrapper classes not derived from Item are: (1) Transaction with its subclasses and (2) the Application class at the top of the composition hierarchy.add() method, and an abstract assemble() method that must be implemented, primarily by calling self.add(...), to define the composition at design time. The syntax for the abstraction layer and the presentation layer is essentially identical.0.3 is an "unstable" version, meaning that the API is subject to change. Once version 0.4 is released, the public terms and their semantics are guaranteed not to change for any 0.4.n micro-version. Many public terms are not needed by the user-developer, but are made public for testing purposed. Public terms commonly invoked by the user-developer are considered keywords, some of which are abstract to be defined at design-time. Keywords also include properties. Named parameters that are more typically supplied as positionalItem is an abstract class, the base class for Model in the abstraction layer, and Presenter in the presentation layer. Every object in a Mindwrapper application (except for the application object itself) is either an item or a transaction between items.
Item, class attributes are specifiers . The base class defines one specifier:
= []
__init__(), the list may contain either item classes or instances or both. During instantiation, instances of the external items specified by class are created at the same time.
self, parent=None, name='', *references, **specifiers)
add() method of the container item (the parent). For testing purposes, however, the parent can be passed to the initializer directly. The default is None.
add() method of the parent. For testing purposes, however, the name can be passed to the initializer directly. The default is an empty string, ''.
self, name='', item=None, *references, **specifiers)
add() is a method that is considered abstract in Item, but is implemented in Map and the composite subclasses of Presenter. This is the method that takes care of all the details necessary to add a child item to the parent item.
'', which is converted to a unique, random name.
add() method. If an item instance is given, however, a link to the given item is created instead.
self, ...)
assemble() is an abstract method that must be defined by any subclass that is a composite defined at design-time. The signature can vary, but it must match the references passed to the initializer by the parent via the add() method.
self)
self)
self)
self)
self, message)
update() is an abstract method that must be defined for any subclass (abstraction layer or presentation layer) that is to be an observer. The message parameter may be a string or another object (usually an item).