Interface IWrapper
Input/Output functions required from the database connectors.
Inherited Members
System.IDisposable.Dispose()
Namespace: Mars.Core.Data.Wrapper
Assembly: Mars.Core.dll
Syntax
public interface IWrapper : IDisposable
Properties
| Improve this Doc View SourceIsInitialized
Gets the flag indicating that the Setup() was already been performed.
Declaration
bool IsInitialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceMigrateSchema(IGeneratedLayerLogger)
Applies a schema migration when the mapper requires that.
Declaration
void MigrateSchema(IGeneratedLayerLogger logger)
Parameters
Type | Name | Description |
---|---|---|
IGeneratedLayerLogger | logger | The encapsulated layer. |
MigrateSchema(IGeneratedTypeLogger)
Applies a schema migration when the mapper requires that.
Declaration
void MigrateSchema(IGeneratedTypeLogger logger)
Parameters
Type | Name | Description |
---|---|---|
IGeneratedTypeLogger | logger | The encapsulated entity manager for each entity. |
SaveSnapshot(Int64, IGeneratedLayerLogger)
This method applies the write operation of the specified
for the
associated to the
.
Declaration
void SaveSnapshot(long currentTick, IGeneratedLayerLogger layerProxy)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | currentTick | The current simulation tick |
IGeneratedLayerLogger | layerProxy | The considered layer instance to write a snapshot for |
Exceptions
Type | Condition |
---|---|
System.ApplicationException | No implementation |
SaveSnapshot(Int64, IGeneratedTypeLogger)
This method applies the write operation on each entity associated to the
and
or can be override to keep control of the entity serialization.
In contrast to SaveSnapshotByType(Int64, IGeneratedTypeLogger) this method has already been checked, whether the type
shall be serialized.
Declaration
void SaveSnapshot(long currentTick, IGeneratedTypeLogger typeLogger)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | currentTick | The current simulation tick |
IGeneratedTypeLogger | typeLogger | The considered entity type to write a snapshot for |
SaveSnapshotByType(Int64, IGeneratedTypeLogger)
Persists all entities associated to this
Declaration
void SaveSnapshotByType(long currentTick, IGeneratedTypeLogger typeProxy)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | currentTick | The current simulation tick. |
IGeneratedTypeLogger | typeProxy | The type proxy for responsible for all agents. |
Setup()
Indicates that the application is now starting and the model was initialized.
Resource and connections can be acquired.
Declaration
void Setup()
TearDown()
Indicates that the application is now finished with computing.
Declaration
void TearDown()