Interface IWorkerMapper
Implementations of this interface will be used for accessing data of nodes in the node graph. In addition to implementing this interface the implementing class needs to be annotated with the DataMappingReturnType specifying the type that this Mapper returns.
Directly implement the specialized IWorkerMapper<T> instead of this interface. Otherwise runtime errors will occur when looking up the corresponding mapper for a return type.
Namespace: Holoride.ElasticSDK.Graph
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
public interface IWorkerMapper
Properties
SourceNodeType
Gets the type of node the mapper gets the data from (displayed as input port).
Declaration
Type SourceNodeType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
Map(IPipelineWorker, GlobalPosition, CancellationToken)
This method maps the data from the connected worker at the position to the type defined by the DataMappingProviderInfoAttribute.
Declaration
UniTask<object> Map(IPipelineWorker worker, GlobalPosition position, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPipelineWorker | worker | |
GlobalPosition | position | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<T><object> |
Map(IPipelineWorker, CancellationToken)
This method maps the data from the connected worker to the type defined by the DataMappingProviderInfoAttribute.
Declaration
UniTask<object> Map(IPipelineWorker worker, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IPipelineWorker | worker | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<T><object> |