MamdaAuctionListener is a class that specializes in handling Auction updates. Developers provide their own implementation of the MamdaAuctionHandler interface and will be delivered notifications for Auctions and Auction closing prices. An obvious application for this MAMDA class is any kind of Auction tick capture application.
Note: The MamdaAuctionListener class caches Auction-related field values. Among other reasons, caching of these fields makes it possible to provide complete Auction-related callbacks, even when the publisher (e.g., feed handler) is only publishing deltas containing modified fields.
Наследование: MamdaMsgListener, MamdaAuctionRecap, MamdaAuctionUpdate
Пример #1
0
            public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
            {
                double volume = field.getF64();

                if (listener.mAuctionCache.mUncrossVolume != volume)
                {
                    listener.mAuctionCache.mUncrossVolume           = volume;
                    listener.mAuctionCache.mUncrossVolumeFieldState = MamdaFieldState.MODIFIED;
                }
            }
Пример #2
0
            public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
            {
                string indicator = listener.getFieldAsString(field);

                if (string.Compare(listener.mAuctionCache.mUncrossPriceIndStr, indicator) != 0)
                {
                    listener.mAuctionCache.mUncrossPriceIndStr           = indicator;
                    listener.mAuctionCache.mUncrossPriceIndStrFieldState = MamdaFieldState.MODIFIED;
                }
            }
Пример #3
0
            public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
            {
                MamaPrice price;

                price = field.getPrice();
                if (listener.mAuctionCache.mUncrossPrice.getValue() != price.getValue())
                {
                    listener.mAuctionCache.mUncrossPrice.copy(price);
                    listener.mAuctionCache.mUncrossPriceFieldState = MamdaFieldState.MODIFIED;
                }
            }
Пример #4
0
 public FieldIterator(MamdaAuctionListener listener)
 {
     mListener = listener;
 }
Пример #5
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSendTime           = field.getDateTime();
     listener.mAuctionCache.mSendTimeFieldState = MamdaFieldState.MODIFIED;
 }
Пример #6
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     double volume = field.getF64();
     if (listener.mAuctionCache.mUncrossVolume != volume)
     {
         listener.mAuctionCache.mUncrossVolume = volume;
         listener.mAuctionCache.mUncrossVolumeFieldState = MamdaFieldState.MODIFIED;
     }
 }
Пример #7
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mPartId           = field.getString();
     listener.mAuctionCache.mPartIdFieldState = MamdaFieldState.MODIFIED;
 }
Пример #8
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     string indicator = listener.getFieldAsString(field);
     if (string.Compare(listener.mAuctionCache.mUncrossPriceIndStr, indicator) != 0)
     {
         listener.mAuctionCache.mUncrossPriceIndStr = indicator;
         listener.mAuctionCache.mUncrossPriceIndStrFieldState = MamdaFieldState.MODIFIED;
     }
 }
Пример #9
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     MamaPrice price;
     price = field.getPrice();
     if (listener.mAuctionCache.mUncrossPrice.getValue() != price.getValue())
     {
         listener.mAuctionCache.mUncrossPrice.copy(price);
         listener.mAuctionCache.mUncrossPriceFieldState = MamdaFieldState.MODIFIED;
     }
 }
Пример #10
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSymbol = field.getString();
     listener.mAuctionCache.mSymbolFieldState = MamdaFieldState.MODIFIED;
 }
Пример #11
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSrcTime = field.getDateTime();
     listener.mAuctionCache.mSrcTimeFieldState = MamdaFieldState.MODIFIED;
 }
Пример #12
0
 public FieldIterator(MamdaAuctionListener listener)
 {
     mListener = listener;
 }