LicensingContextType#

class ansys.dpf.core.server_context.LicensingContextType(*args, **kwds)#

Bases: enum.Enum

Enum representing different types of licensing contexts.

Overview#

premium

Checks if at least one license increment exists

entry

Checks if at least one license increment exists

same_licensing_context

Determine if two licensing contexts are compatible.

__int__

Return the integer values of the licensing context.

Import detail#

from ansys.dpf.core.server_context import LicensingContextType

Attribute detail#

LicensingContextType.premium = 1#

Checks if at least one license increment exists and allows operators to block an increment.

LicensingContextType.entry = 4#

Checks if at least one license increment exists and does not allow operators to block an increment.

Method detail#

LicensingContextType.__int__()#

Return the integer values of the licensing context.

Returns:

Integer values corresponding to the licensing context.

Return type:

int

static LicensingContextType.same_licensing_context(first, second)#

Determine if two licensing contexts are compatible.

Parameters:
Returns:

True if the licensing contexts are compatible, False otherwise.

Return type:

bool