Class MaturitySelectorPredicate
- Namespace
- Virtufin.Core.Predicates
- Assembly
- Virtufin.Core.dll
Selector that matches a message iff timePoint equals
the contract's maturity. Requires the contract to implement
IWithMaturity; otherwise the predicate rejects every message.
public sealed class MaturitySelectorPredicate : IMessageSelectorPredicate
- Inheritance
-
MaturitySelectorPredicate
- 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
contractIContractContract under evaluation.
messageIMessageCandidate message.
timePointITimeStampCurrent simulation time.
scenarioHistoryIScenarioHistoryPrior history.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.