resqpy.strata.BinaryContactInterpretation

class resqpy.strata.BinaryContactInterpretation(model, existing_xml_node=None, index=None, contact_relationship: Optional[str] = None, verb: Optional[str] = None, subject_uuid=None, direct_object_uuid=None, subject_contact_side=None, subject_contact_mode=None, direct_object_contact_side=None, direct_object_contact_mode=None, part_of_uuid=None)

Bases: object

Internal class for contact between 2 geological entities; not a high level class but used by others.

Methods:

__init__(model[, existing_xml_node, index, ...])

Creates a new binary contact interpretation internal object.

create_xml([parent_node])

Generates xml sub-tree for this contact interpretation, for inclusion as element of high level interpretation.


__init__(model, existing_xml_node=None, index=None, contact_relationship: Optional[str] = None, verb: Optional[str] = None, subject_uuid=None, direct_object_uuid=None, subject_contact_side=None, subject_contact_mode=None, direct_object_contact_side=None, direct_object_contact_mode=None, part_of_uuid=None)[source]

Creates a new binary contact interpretation internal object.

Note

if an existing xml node is present, then all the later arguments are ignored

create_xml(parent_node=None)[source]

Generates xml sub-tree for this contact interpretation, for inclusion as element of high level interpretation.

Parameters

parent_node (lxml.etree._Element, optional) – if present, the created sub-tree is added as a child to this node

Returns

lxml.etree._Element – the root node of the newly created xml sub-tree for the contact interpretation