Table of Contents

Namespace Virtufin.Core

Namespaces

Virtufin.Core.Behavior
Virtufin.Core.Clock
Virtufin.Core.Contracts
Virtufin.Core.Events
Virtufin.Core.Execution
Virtufin.Core.Identifiers
Virtufin.Core.Position
Virtufin.Core.Predicates
Virtufin.Core.Scenario
Virtufin.Core.VirtufinTypes
Virtufin.Core.Wire

Classes

AttributeTypeMismatchException

An attribute was requested with another value type than the one its provider holds under the attribute's name.

DictionaryValueProvider

Values kept per (entity, attribute name), of any value types: one provider may hold a double attribute and an int attribute. Requesting a held attribute with another value type throws AttributeTypeMismatchException; a missing value is null.

EntityAttributeTypeSpecifier

An IEntityAttributeValueTypeSpecifier over entities and attributes only, for providers that serve several value types: every value of a member entity and attribute is a member.

EntityAttributeValueTypeSpecifier<V>

Helper class to implement IEntityAttributeValueTypeSpecifier where the type membership predicate defines a set whose values all have type V. Attributes are matched by name; a value of another type is a mismatch (AttributeTypeMismatchException), never a non-member.

EntityIdentifier<I>
FunctionValueProvider<V>

Values of type V computed by a function of entity, attribute and registry. Requesting an attribute the type specifier accepts with another value type throws AttributeTypeMismatchException.

ObservableProvider

Value streams kept per (entity, attribute name), of any value types. Requesting a held attribute with another value type throws AttributeTypeMismatchException; a missing stream is null. The type specifier's value membership is not checked per value of the stream.

Providers

Combinators over value, task and observable providers. Each result is a provider itself, so combinations nest.

Registry

Asks its providers newest first (FirstOf(IEnumerable<IValueProvider>)): a provider added last overrides earlier ones, one added first is the fallback.

TaskProvider

Tasks of values kept per (entity, attribute name), of any value types. Requesting a held attribute with another value type throws AttributeTypeMismatchException; a missing task is null. The type specifier's value membership is not checked: the value is not known before the task completes.

Structs

Attribute<V, I>

Interfaces

IAttribute

An attribute without its value type: its Name and the ValueType it carries. Providers key their values by name, so an attribute requested under one name with another value type is a mismatch they report with AttributeTypeMismatchException.

IAttribute<V>

An attribute whose values are of type V.

IDependencies
IEntity
IEntityAttributeValueTypeSpecifier

As C# doesn't support dependent types, we cannot define a class which is given by generic constraints to the values of the entities, attributes and values in terms of some (value) dependent type at compile time. We have to check whether an entity/attribute/value triplet belongs to a particular class at runtime via a type membership predicate, IsTypeMember<V>(IEntityIdentifier, IAttribute<V>, V) instead

IEntityIdentifier
IObservableDependencies
IObservableProvider
IObservableProviders
IProviders
IRegistry
ITaskProvider
IValueDependencies
IValueProvider
IValueProviders