Table of Contents

Class ContractSelectorPredicate

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

Default selector that matches a message iff its transaction targets contract.

public sealed class ContractSelectorPredicate : IMessageSelectorPredicate
Inheritance
ContractSelectorPredicate
Implements
Inherited Members

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.