C# Class GoodAI.Modules.School.Common.LearningTaskFactory

Datei anzeigen Open project: GoodAI/BrainSimulator

Public Methods

Method Description
CreateLearningTask ( Type taskType ) : ILearningTask
CreateLearningTask ( Type learningTaskType, SchoolWorld w ) : ILearningTask
CreateLearningTask ( Type taskType, Type worldType ) : ILearningTask
GetGenericType ( Type taskType ) : Type
GetSupportedWorlds ( Type taskType ) : List
IsSubclassOfRawGeneric ( Type generic, Type toCheck ) : bool

Method Details

CreateLearningTask() public static method

public static CreateLearningTask ( Type taskType ) : ILearningTask
taskType System.Type
return ILearningTask

CreateLearningTask() public static method

public static CreateLearningTask ( Type learningTaskType, SchoolWorld w ) : ILearningTask
learningTaskType System.Type
w SchoolWorld
return ILearningTask

CreateLearningTask() public static method

public static CreateLearningTask ( Type taskType, Type worldType ) : ILearningTask
taskType System.Type
worldType System.Type
return ILearningTask

GetGenericType() public static method

public static GetGenericType ( Type taskType ) : Type
taskType System.Type
return System.Type

GetSupportedWorlds() public static method

public static GetSupportedWorlds ( Type taskType ) : List
taskType System.Type
return List

IsSubclassOfRawGeneric() public static method

public static IsSubclassOfRawGeneric ( Type generic, Type toCheck ) : bool
generic System.Type
toCheck System.Type
return bool