Navigation
API > API/Plugins > API/Plugins/Learning
Action Object
This object allows you to construct or get data from an instance of an action you might have generated from a policy. Internally this object contains a pool of individual elements. This allows them to be constructed performantly and in a cache efficient way. This object is therefore required to access any data about the individual action elements that are created.
| Name | FObject |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningAction.h |
| Include Path | #include "LearningAction.h" |
Syntax
struct FObject
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ContinuousDataNums | TArray< int32 > | LearningAction.h | ||
| ContinuousDataOffsets | TArray< int32 > | LearningAction.h | ||
| ContinuousValues | TArray< float > | LearningAction.h | ||
| DiscreteDataNums | TArray< int32 > | LearningAction.h | ||
| DiscreteDataOffsets | TArray< int32 > | LearningAction.h | ||
| DiscreteValues | TArray< int32 > | LearningAction.h | ||
| ElementDataNums | TArray< int32 > | LearningAction.h | ||
| ElementDataOffsets | TArray< int32 > | LearningAction.h | ||
| Generation | uint32 | LearningAction.h | ||
| SubElementNames | TArray< FName > | LearningAction.h | ||
| SubElementObjects | TArray< FObjectElement > | LearningAction.h | ||
| Tags | TArray< FName > | LearningAction.h | ||
| Types | TArray< EType > | LearningAction.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FObjectElement CreateAnd
(
const FObjectAndParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateArray
(
const FObjectArrayParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateContinuous
(
const FObjectContinuousParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateDiscreteExclusive
(
const FObjectDiscreteExclusiveParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateDiscreteInclusive
(
const FObjectDiscreteInclusiveParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateEncoding
(
const FObjectEncodingParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateNamedDiscreteExclusive
(
const FObjectNamedDiscreteExclusiveParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateNamedDiscreteInclusive
(
const FObjectNamedDiscreteInclusiveParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateNull
(
const FName Tag |
LearningAction.h | ||
FObjectElement CreateOrExclusive
(
const FObjectOrExclusiveParameters Parameters, |
LearningAction.h | ||
FObjectElement CreateOrInclusive
(
const FObjectOrInclusiveParameters Parameters, |
LearningAction.h | ||
void Empty() |
Empty all internal buffers of elements. This invalidates all existing elements. | LearningAction.h | |
FObjectAndParameters GetAnd
(
const FObjectElement Element |
LearningAction.h | ||
FObjectArrayParameters GetArray
(
const FObjectElement Element |
LearningAction.h | ||
FObjectContinuousParameters GetContinuous
(
const FObjectElement Element |
LearningAction.h | ||
FObjectDiscreteExclusiveParameters GetDiscreteExclusive
(
const FObjectElement Element |
LearningAction.h | ||
FObjectDiscreteInclusiveParameters GetDiscreteInclusive
(
const FObjectElement Element |
LearningAction.h | ||
FObjectEncodingParameters GetEncoding
(
const FObjectElement Element |
LearningAction.h | ||
uint32 GetGeneration() |
Get the current generation. | LearningAction.h | |
FObjectNamedDiscreteExclusiveParameters GetNamedDiscreteExclusive
(
const FObjectElement Element |
LearningAction.h | ||
FObjectNamedDiscreteInclusiveParameters GetNamedDiscreteInclusive
(
const FObjectElement Element |
LearningAction.h | ||
FObjectOrExclusiveParameters GetOrExclusive
(
const FObjectElement Element |
LearningAction.h | ||
FObjectOrInclusiveParameters GetOrInclusive
(
const FObjectElement Element |
LearningAction.h | ||
FName GetTag
(
const FObjectElement Element |
Gets the tag of the given element. | LearningAction.h | |
EType GetType
(
const FObjectElement Element |
Gets the type of the given element. | LearningAction.h | |
bool IsEmpty() |
Checks if the given object is empty of elements. | LearningAction.h | |
bool IsValid
(
const FObjectElement Element |
Checks if the given element is valid. | LearningAction.h | |
void Reset() |
Reset all internal buffers (without freeing memory). This invalidates all existing elements. | LearningAction.h |