BackendType#

class ansys.geometry.core.connection.backend.BackendType(*args, **kwds)#

Bases: enum.Enum

Provides an enum holding the available backend types.

Overview#

is_core_service

Determine whether the backend is CoreService based or not.

is_headless_service

Determine whether the backend is a headless service or not.

is_linux_service

Determine whether the backend is a Linux service or not.

Import detail#

from ansys.geometry.core.connection.backend import BackendType

Attribute detail#

BackendType.DISCOVERY = 0#
BackendType.SPACECLAIM = 1#
BackendType.WINDOWS_SERVICE = 2#
BackendType.LINUX_SERVICE = 3#
BackendType.CORE_WINDOWS = 4#
BackendType.CORE_LINUX = 5#
BackendType.DISCOVERY_HEADLESS = 6#

Method detail#

static BackendType.is_core_service(backend_type: BackendType) bool#

Determine whether the backend is CoreService based or not.

Parameters:
backend_typeBackendType

The backend type to check whether or not it’s a CoreService type.

Returns:
bool

True if the backend is CoreService based, False otherwise.

static BackendType.is_headless_service(backend_type: BackendType) bool#

Determine whether the backend is a headless service or not.

Parameters:
backend_typeBackendType

The backend type to check whether or not it’s a headless service.

Returns:
bool

True if the backend is a headless service, False otherwise.

static BackendType.is_linux_service(backend_type: BackendType) bool#

Determine whether the backend is a Linux service or not.

Parameters:
backend_typeBackendType

The backend type to check whether or not it’s running on Linux.

Returns:
bool

True if the backend is running on Linux, False otherwise.