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
Exemplo n.º 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;
                }
            }
Exemplo n.º 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;
                }
            }
Exemplo n.º 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;
                }
            }
Exemplo n.º 4
0
 public FieldIterator(MamdaAuctionListener listener)
 {
     mListener = listener;
 }
Exemplo n.º 5
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSendTime           = field.getDateTime();
     listener.mAuctionCache.mSendTimeFieldState = MamdaFieldState.MODIFIED;
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 7
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mPartId           = field.getString();
     listener.mAuctionCache.mPartIdFieldState = MamdaFieldState.MODIFIED;
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 10
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSymbol = field.getString();
     listener.mAuctionCache.mSymbolFieldState = MamdaFieldState.MODIFIED;
 }
Exemplo n.º 11
0
 public void onUpdate(MamdaAuctionListener listener, MamaMsgField field)
 {
     listener.mAuctionCache.mSrcTime = field.getDateTime();
     listener.mAuctionCache.mSrcTimeFieldState = MamdaFieldState.MODIFIED;
 }
Exemplo n.º 12
0
 public FieldIterator(MamdaAuctionListener listener)
 {
     mListener = listener;
 }