Container

The Container library defines several fundamental container types that are used in SAMSON.

SAMSON API: The SBCContainer Library

class samson.Core.Container.UUID(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

This class describes a universally unique identifier (UUID).

This class objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Elements.

SAMSON API: SBCContainerUUID

Overloaded function.

  1. __init__(self: samson.Core.Container.UUID, u: str) -> None

Constructs a UUID from a string u.

  1. __init__(self: samson.Core.Container.UUID, u: samson.Core.Container.UUID) -> None

Copy constructor.

  1. __init__(self: samson.Core.Container.UUID) -> None

Constructs an invalid UUID

__eq__(self: samson.Core.Container.UUID, arg0: samson.Core.Container.UUID) → bool

operator ==

__lt__(self: samson.Core.Container.UUID, arg0: samson.Core.Container.UUID) → bool

Lexicographic comparison with another UUID

__ne__(self: samson.Core.Container.UUID, arg0: samson.Core.Container.UUID) → bool

operator !=

__ge__

Return self>=value.

__gt__

Return self>value.

__le__

Return self<=value.

isValid

Returns true if and only if the UUID is valid

class samson.Core.Container.VersionNumber(*args, **kwargs)

Bases: pybind11_builtins.pybind11_object

This class describes a version number.

SAMSON API: SBCContainerVersionNumber

Overloaded function.

  1. __init__(self: samson.Core.Container.VersionNumber) -> None

Constructs the 0.0.0 version number

  1. __init__(self: samson.Core.Container.VersionNumber, major: int, minor: int, patch: int) -> None

    Constructs a version number major.minor.patch

    Args:

    major (int): major version number

    minor (int): minor version number

    patch (int): patch version number

  2. __init__(self: samson.Core.Container.VersionNumber, stringVersionNumber: str) -> None

Constructs a version number from a string.

Args:

stringVersionNumber (string): string version number representation
  1. __init__(self: samson.Core.Container.VersionNumber, versionNumber: samson.Core.Container.VersionNumber) -> None

Constructs a version number from a versionNumber

__eq__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator ==

__ge__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator >=

__gt__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator >

__le__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator <=

__lt__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator <

__ne__(self: samson.Core.Container.VersionNumber, arg0: samson.Core.Container.VersionNumber) → bool

operator !=

major

major version number

minor

minor version number

patch

patch version number