QuantityProxySetWrapperTQuantityProxy Class

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

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class QuantityProxySetWrapper<TQuantityProxy> : IQuantityProxy
where TQuantityProxy : class, IQuantityProxy
Inheritance
Object    QuantityProxySetWrapperTQuantityProxy
Derived
Implements
IQuantityProxy

Type Parameters

TQuantityProxy
Proxy type, derived from IQuantityProxy

Constructors

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

Methods

Accepts List of data types that is accepted, i.e., that you can get a ValueSetter for.
AddToAccepts Add quantities to accept.
AddToOffers(TQuantityProxy) Add quantities to offers.
AddToOffers(TQuantityProxy, IQuantity) Add quantities to offers.
AddToOffers(TQuantityProxy, IListIQuantity) 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)
Offers List of data types that is offered, i.e., that you can get a ValueGetter for.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

_acceptedProxies List of proxies and quantityIndex's for each IQuantity in the _accepts i.e., this list is synchronized with the _accepts
_accepts List of accepts, build by BuildAccepts
_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 offers, build by BuildOffers
_proxies Underlying quantity procies

See Also