Navigation
API > API/Plugins > API/Plugins/MLAdapter
The FMLAdapterLibrarian discovers all classes that derived from UMLAdapterAgent, UMLAdapterSensor, or UMLAdapterActuator. It provides functionality for finding those classes by name, so that remote clients can spawn them via their name.
| Name | FMLAdapterLibrarian |
| Type | struct |
| Header File | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/MLAdapterLibrarian.h |
| Include Path | #include "MLAdapterLibrarian.h" |
Syntax
USTRUCT ()
struct FMLAdapterLibrarian
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Add the given description to the mapped entry for the given function name. | MLAdapterLibrarian.h | ||
TSubclassOf< UMLAdapterActuator > FindActuatorClass
(
const FName ClassName |
Find the actuator class with the given class name. | MLAdapterLibrarian.h | |
TSubclassOf< UMLAdapterAgent > FindAgentClass
(
const FName ClassName |
Find the agent class with the given class name. | MLAdapterLibrarian.h | |
TSubclassOf< UMLAdapterSensor > FindSensorClass
(
const FName ClassName |
Find the sensor class with the given class name. | MLAdapterLibrarian.h | |
void GatherClasses() |
Register all the base classes and derived classes that inherit from UMLAdapterAgent, UMLAdapterSensor, or UMLAdapterActuator. | MLAdapterLibrarian.h | |
| Gets the description for the given actuator name. | MLAdapterLibrarian.h | ||
TMap< uint32, TSubclassOf< UMLAdapterActuator > >::TConstIterator GetActuatorsClassIterator() |
Get a const iterator over the list of known actuators. | MLAdapterLibrarian.h | |
TArray< TSubclassOf< UMLAdapterAgent > >::TConstIterator GetAgentsClassIterator() |
Get a const iterator over the list of known agents. | MLAdapterLibrarian.h | |
bool GetFunctionDescription
(
const FName FunctionName, |
Gets the function description for the given function name. | MLAdapterLibrarian.h | |
bool GetFunctionDescription
(
const FString& FunctionName, |
Inlines | MLAdapterLibrarian.h | |
| Get a const iterator over the list of function descriptions. | MLAdapterLibrarian.h | ||
| Gets the description for the given sensor name. | MLAdapterLibrarian.h | ||
TMap< uint32, TSubclassOf< UMLAdapterSensor > >::TConstIterator GetSensorsClassIterator() |
Get a const iterator over the list of known sensors. | MLAdapterLibrarian.h | |
void RegisterActuatorClass
(
const TSubclassOf< UMLAdapterActuator >& Class |
Add the actuator class to the list of known actuators. | MLAdapterLibrarian.h | |
void RegisterAgentClass
(
const TSubclassOf< UMLAdapterAgent >& Class |
Add the agent class to the list of known agents. | MLAdapterLibrarian.h | |
void RegisterSensorClass
(
const TSubclassOf< UMLAdapterSensor >& Class |
Add the sensor class to the list of known sensors. | MLAdapterLibrarian.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FMLAdapterLibrarian & Get() |
Gets the librarian owned by the singleton UMLAdapterManager instance. | MLAdapterLibrarian.h |