sbol3.om_compound

Module Contents

Classes

CompoundUnit

As adopted by SBOL, om:CompoundUnit is an abstract class that is

UnitDivision

The purpose of the om:UnitDivision class is to describe a unit of

UnitExponentiation

The purpose of the om:UnitExponentiation class is to describe a

UnitMultiplication

The purpose of the om:UnitMultiplication class is to describe a

Functions

build_unit_division(→ sbol3.SBOLObject)

build_unit_exponentiation(→ sbol3.SBOLObject)

build_unit_multiplication(→ sbol3.SBOLObject)

class CompoundUnit(identity: str, symbol: str, label: str, type_uri: str, *, alternative_symbols: List[str] = None, alternative_labels: List[str] = None, comment: str = None, long_comment: str = None, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[sbol3.SBOLObject] = None)

Bases: sbol3.om_unit.Unit, abc.ABC

As adopted by SBOL, om:CompoundUnit is an abstract class that is extended by other classes to describe units of measure that can be represented as combinations of multiple other units of measure.

class UnitDivision(identity: str, symbol: str, label: str, numerator: Union[sbol3.om_unit.Unit, str], denominator: Union[sbol3.om_unit.Unit, str], *, alternative_symbols: List[str] = None, alternative_labels: List[str] = None, comment: str = None, long_comment: str = None, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[sbol3.SBOLObject] = None, type_uri: str = OM_UNIT_DIVISION)

Bases: CompoundUnit

The purpose of the om:UnitDivision class is to describe a unit of measure that is the division of one unit of measure by another.

accept(visitor: Any) Any

Invokes visit_unit_division on visitor with self as the only argument.

Parameters

visitor (Any) – The visitor instance

Raises

AttributeError – If visitor lacks a visit_unit_division method

Returns

Whatever visitor.visit_unit_division returns

Return type

Any

class UnitExponentiation(identity: str, symbol: str, label: str, base: Union[sbol3.om_unit.Unit, str], exponent: int, *, alternative_symbols: List[str] = None, alternative_labels: List[str] = None, comment: str = None, long_comment: str = None, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[sbol3.SBOLObject] = None, type_uri: str = OM_UNIT_EXPONENTIATION)

Bases: CompoundUnit

The purpose of the om:UnitExponentiation class is to describe a unit of measure that is raised to an integer power.

accept(visitor: Any) Any

Invokes visit_unit_exponentiation on visitor with self as the only argument.

Parameters

visitor (Any) – The visitor instance

Raises

AttributeError – If visitor lacks a visit_unit_exponentiation method

Returns

Whatever visitor.visit_unit_exponentiation returns

Return type

Any

class UnitMultiplication(identity: str, symbol: str, label: str, term1: Union[sbol3.om_unit.Unit, str], term2: Union[sbol3.om_unit.Unit, str], *, alternative_symbols: List[str] = None, alternative_labels: List[str] = None, comment: str = None, long_comment: str = None, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[sbol3.SBOLObject] = None, type_uri: str = OM_UNIT_MULTIPLICATION)

Bases: CompoundUnit

The purpose of the om:UnitMultiplication class is to describe a unit of measure that is the multiplication of two other units of measure.

accept(visitor: Any) Any

Invokes visit_unit_multiplication on visitor with self as the only argument.

Parameters

visitor (Any) – The visitor instance

Raises

AttributeError – If visitor lacks a visit_unit_multiplication method

Returns

Whatever visitor.visit_unit_multiplication returns

Return type

Any

build_unit_division(identity: str, *, type_uri: str = OM_UNIT_DIVISION) sbol3.SBOLObject
build_unit_exponentiation(identity: str, *, type_uri: str = OM_UNIT_EXPONENTIATION) sbol3.SBOLObject
build_unit_multiplication(identity: str, *, type_uri: str = OM_UNIT_MULTIPLICATION) sbol3.SBOLObject