Table of Contents

Class PositionTransferContractMessageGenerator<A>

Namespace
Virtufin.Base
Assembly
Virtufin.Base.dll

Emits a single Transaction.Transfer wrapped in a Message at the contract's maturity. Before or after the maturity nothing is emitted.

public sealed class PositionTransferContractMessageGenerator<A> : IMessageGenerator where A : IFixedPointAmount<A>

Type Parameters

A
Inheritance
PositionTransferContractMessageGenerator<A>
Implements
Inherited Members

Constructors

PositionTransferContractMessageGenerator(PositionTransferContract<A>)

Construct a generator for contract.

public PositionTransferContractMessageGenerator(PositionTransferContract<A> contract)

Parameters

contract PositionTransferContract<A>

Properties

Contract

The underlying contract.

public PositionTransferContract<A> Contract { get; }

Property Value

PositionTransferContract<A>

Methods

GenerateMessages(ITimeStamp, IScenarioHistory)

Compute the messages emitted at timePoint.

public IEnumerable<IMessage> GenerateMessages(ITimeStamp timePoint, IScenarioHistory scenarioHistory)

Parameters

timePoint ITimeStamp

Time at which to evaluate the contract.

scenarioHistory IScenarioHistory

Prior history.

Returns

IEnumerable<IMessage>