Table of Contents

Class AllMessageSelectorPredicate

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

AND-composition of IMessageSelectorPredicates: matches a message iff every contained predicate accepts it. With an empty predicate list, the predicate accepts every message (vacuous truth).

public sealed class AllMessageSelectorPredicate : IMessageSelectorPredicate
Inheritance
AllMessageSelectorPredicate
Implements
Inherited Members

Constructors

AllMessageSelectorPredicate(IReadOnlyList<IMessageSelectorPredicate>)

Construct a composite predicate. If predicates is empty the composite accepts every message.

public AllMessageSelectorPredicate(IReadOnlyList<IMessageSelectorPredicate> predicates)

Parameters

predicates IReadOnlyList<IMessageSelectorPredicate>

Sub-predicates to AND together.

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.