Base class for all entities used in this interface.
Entity
(id)[source]¶Bases: object
Base class for all entities used in this interface.
Notes
It is strongly advised against the use of the conkit.core.Entity
class directly.
Instead, use one or more of the the remaining data models.
Attributes
id |
The ID of the selected entity |
full_id |
A traceback id including all parent classes |
parent |
An attribute to store the reference to the parent conkit.core.Entity |
child_list |
A list storing the child entities |
child_dict |
A dictionary storing the child entities |
Methods
add (entity) |
Add a child to the Entity |
copy () |
Create a shallow copy of conkit.core.Entity |
deepcopy () |
Create a deep copy of conkit.core.Entity |
remove (id) |
Remove a child |
add
(entity)[source]¶Add a child to the Entity
Parameters: | entity : conkit.core.Entity |
---|
child_dict
¶A dictionary storing the child entities
child_list
¶A list storing the child entities
copy
()[source]¶Create a shallow copy of conkit.core.Entity
deepcopy
()[source]¶Create a deep copy of conkit.core.Entity
full_id
¶A traceback id including all parent classes
The full id is a tuple containing all id’s starting from
the top object (conkit.core.ContactFile
) down to the current object.
A full id for a conkit.core.Contact
e.g. is something like:
(‘1aa’, 1, (1, 10))
This corresponds to:
conkit.core.ContactFile
identifier => 1aaa
conkit.core.ContactMap
identifier => 1
conkit.core.Contact
identifier => (1, 10)
id
¶The ID of the selected entity
parent
¶An attribute to store the reference to the parent conkit.core.Entity