workspace.src.LikelihoodModels.Factory

Created on July 30 2020 @author: Congjian Wang

Attributes

__base

__interfaceDict

Functions

knownTypes()

Returns a list of strings that define the types of instantiable objects for

returnInstance(classType)

Attempts to create and return an instance of a particular type of object

returnClass(classType)

Attempts to return a particular class type available to this factory.

Module Contents

workspace.src.LikelihoodModels.Factory.__base = 'LikelihoodBase'[source]
workspace.src.LikelihoodModels.Factory.__interfaceDict[source]
workspace.src.LikelihoodModels.Factory.knownTypes()[source]

Returns a list of strings that define the types of instantiable objects for this base factory.

Returns:

the known types

Return type:

list

workspace.src.LikelihoodModels.Factory.returnInstance(classType)[source]

Attempts to create and return an instance of a particular type of object available to this factory.

Parameters:

classType – string, string should be one of the knownTypes.

Returns:

subclass object constructed with no arguments

Return type:

instance

workspace.src.LikelihoodModels.Factory.returnClass(classType)[source]

Attempts to return a particular class type available to this factory.

Parameters:

classType – string, string should be one of the knownTypes.

Returns:

returnClass: class, reference to the subclass