workspace.src.LikelihoodModels.Factory¶
Created on July 30 2020 @author: Congjian Wang
Attributes¶
Functions¶
Returns a list of strings that define the types of instantiable objects for |
|
|
Attempts to create and return an instance of a particular type of object |
|
Attempts to return a particular class type available to this factory. |
Module Contents¶
- 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