Interface IGeneratedTypeLogger
Result output interface describing result methods for a specific agent type.
Inherited Members
Namespace: Mars.Core.Data
Assembly: Mars.Core.dll
Syntax
public interface IGeneratedTypeLogger : IOutputLogger
Properties
| Improve this Doc View SourceEntities
Gets all registered entities of this type manager.
Declaration
IEnumerable<IEntity> Entities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IEntity> |
EntityProxies
Gets all registered entity proxies which are responsible for each de/serialization process
Declaration
IEnumerable<IGeneratedEntityLogger> EntityProxies { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IGeneratedEntityLogger> |
KeyContainer
Gets or sets the index container used to assign unique keys to all new proxies,
constructed by CreateIndividualLogger(IEntity).
Declaration
KeyContainer KeyContainer { get; set; }
Property Value
Type | Description |
---|---|
KeyContainer |
Methods
| Improve this Doc View SourceCreateIndividualLogger(IEntity)
Creates an individual proxy for the specified entity
with the associated type of this mapper..
Declaration
IGeneratedEntityLogger CreateIndividualLogger(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | The entity to register |
Returns
Type | Description |
---|---|
IGeneratedEntityLogger | Returns a new instanceof of the IGeneratedEntityLogger serializer with type-specific serialization functions. |
Remarks
This method is similar to the usage of CreateIndividualLogger(IEntity)
which corresponds to the constructor call.
|
Improve this Doc
View Source
CreateInstance()
Creates a concrete instance from the managed type in this proxy without
using any reflection call.
Declaration
IEntity CreateInstance()
Returns
Type | Description |
---|---|
IEntity | Returns an instance of the entity when created, or null if creation was not possible, since missing dependencies |
DeregisterIndividual(IEntity)
DeRegisters the specified
entity
from this type manager
proxy so that no in/output is created more.
Declaration
void DeregisterIndividual(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | The IEntity to deregister from the in/output pipeline. |
IsTypeOf(IEntity)
Provides an instance of mechanism which can be used without any reflection.
Declaration
bool IsTypeOf(IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | The entity to check whether the associated type is the class for this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
Returns true when the specified entity is an instance of this associated type.
|
Remarks
This method is similar to the usage of CreateIndividualLogger(IEntity)
which corresponds to the constructor call.
|
Improve this Doc
View Source
RegisterIndividual(IGeneratedEntityLogger, TypeMapping)
Registers the specified
individual
at this type manager proxy with the passed outputGroup
with the associated type of this mapper.
Declaration
void RegisterIndividual(IGeneratedEntityLogger individual, TypeMapping mapping = null)
Parameters
Type | Name | Description |
---|---|---|
IGeneratedEntityLogger | individual | The IGeneratedEntityLogger proxy wrapping an entity. |
TypeMapping | mapping | The type-specific mapping configuration for this instance. |
SerializeToFrames()
Serialize all registered entities
lazy
and converts them into a managed DataFrame.
Optional selection or transformations can be appended and will evaluated lazy.
Declaration
IEnumerable<DataFrame> SerializeToFrames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DataFrame> | Returns an System.Collections.Generic.IEnumerable<T> collection of managed agent frame. |