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.
Inheritance: 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;
 }