SourceProxySetWrapperTSourceProxy Class

Class that wraps a number of source proxies in one proxy.

Definition

Namespace: DHI.Mike1D.Engine
Assembly: DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class SourceProxySetWrapper<TSourceProxy> : ISourcePointProxy
where TSourceProxy : class, ISourcePointProxy
Inheritance
Object    SourceProxySetWrapperTSourceProxy
Implements
ISourcePointProxy

Type Parameters

TSourceProxy
Proxy type, derived from ISourcePointProxy

Constructors

SourceProxySetWrapperTSourceProxy Protected constructor. If using this, remember to initialize the _proxies member variable.
SourceProxySetWrapperTSourceProxy(IEnumerableTSourceProxy) Create a proxy set wrapper that wraps the provided set of proxies into one proxy

Methods

AddToOffers Add quantities to offers.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Initialize Manually initialize offers and accepts data structures. Use this if AddToOffers() and AddToAccepts() is called manually instead of through BuildOffers() and BuildAccepts()
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SourceAccepts List of data types that is accepted for a source, i.e., that you can get a source point for.
SourcePoint Get source point
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

_offeredProxies List of proxies and quantityIndex's for each IQuantity in the _offers i.e., this list is synchronized with the _offers
_offers List of all offers
_proxies Source proxies

Extension Methods

SourcePoint

From the proxy, return an ISourcePoint for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.


(Defined by SourceProxyExtensions)

See Also