Table of Contents

Class SenderSelectorPredicate

Namespace
Virtufin.Core.Predicates
Assembly
Virtufin.Core.dll

Selector that matches a message iff its Sender equals Sender.

public sealed class SenderSelectorPredicate : IMessageSelectorPredicate
Inheritance
SenderSelectorPredicate
Implements
Inherited Members

Constructors

SenderSelectorPredicate(ISignatory)

Construct a selector that accepts messages from sender.

public SenderSelectorPredicate(ISignatory sender)

Parameters

sender ISignatory

Sender that must match.

Properties

Sender

The sender that must match for the predicate to accept a message.

public ISignatory Sender { get; }

Property Value

ISignatory

Methods

Predicate(IContract, IMessage, ITimeStamp, IScenarioHistory)

Returns true if message should be retained for contract at timePoint.

public bool Predicate(IContract contract, IMessage message, ITimeStamp timePoint, IScenarioHistory scenarioHistory)

Parameters

contract IContract

Contract under evaluation.

message IMessage

Candidate message.

timePoint ITimeStamp

Current simulation time.

scenarioHistory IScenarioHistory

Prior history.

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.