LMIConstantValues Package

class LMIConstantValues.LMIConstantValues(cim_obj, cast_type)[source]

Abstract class for constant value objects.

Parameters:
  • cim_obj – this object is either of type CIMParameter, CIMProperty or CIMMethod. Construction of this object requires to have a member _cast_type to properly cast CIM object. When constructing derived objects, make sure, that the mentioned member is present before calling this constructor.
  • cast_type – parameter/property cast type
print_values()[source]

Prints all available constant names.

Usage: Get ValueMap properties.

value(value_name)[source]
Parameters:value_name (string) – constant name
Returns:constant value

Usage: Get ValueMap property value.

value_name(value)[source]
Parameters:value (int) – numeric constant value
Returns:constant value
Return type:string

Usage: Get ValueMap property value name.

values()[source]
Returns:list of all available constant values
values_dict()[source]
Returns:dictionary of constants’ names and values
class LMIConstantValues.LMIConstantValuesMethodReturnType(cim_method)[source]

Derived class used for constant values of CIMMethod.

Parameters:cim_method (CIMMethod) – CIMMethod object
class LMIConstantValues.LMIConstantValuesParamProp(cim_property)[source]

Derived class used for constant values of CIMProperty and CIMParameter.

Parameters:cim_propertyCIMProperty or CIMParameter object. Both objects have necessary member type which is needed for proper casting.

This Page