public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     if (string.Compare(listener.mSecurityStatusCache.mSecStatusOrigStr, field.getString()) != 0)
     {
         listener.mSecurityStatusCache.mSecStatusOrigStr           = field.getString();
         listener.mSecurityStatusCache.mSecStatusOrigStrFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     }
 }
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     if ((field != null) && (listener.mSecurityStatusCache.mShortSaleCircuitBreaker != field.getChar()))
     {
         listener.mSecurityStatusCache.mShortSaleCircuitBreaker           = field.getChar();
         listener.mSecurityStatusCache.mShortSaleCircuitBreakerFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     }
 }
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     if ((field != null) && (listener.mSecurityStatusCache.mLuldIndicator != field.getChar() || listener.mSecurityStatusCache.mLuldIndicatorFieldState == MamdaFieldState.NOT_INITIALISED))
     {
         listener.mSecurityStatusCache.mLuldIndicator           = field.getChar();
         listener.mSecurityStatusCache.mLuldIndicatorFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     }
 }
            public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
            {
                string status = listener.getFieldAsString(field);

                if (string.Compare(listener.mSecurityStatusCache.mSecStatusStr, status) != 0)
                {
                    listener.mSecurityStatusCache.mSecStatusStr           = status;
                    listener.mSecurityStatusCache.mSecStatusStrFieldState = MamdaFieldState.MODIFIED;
                    listener.mUpdated = true;
                }
            }
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mReason           = listener.getFieldAsString(field);
     listener.mSecurityStatusCache.mReasonFieldState = MamdaFieldState.MODIFIED;
 }
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mEventSeqNum           = field.getI64();
     listener.mSecurityStatusCache.mEventSeqNumFieldState = MamdaFieldState.MODIFIED;
 }
        public void testCached()
        {
            mSecStatusListener = new MamdaSecurityStatusListener();
            mSubscription.addMsgListener(mSecStatusListener);

            mMsg = new MamaMsg();
            addMamaHeaderFields(mMsg,
                                (byte)mamaMsgType.MAMA_MSG_TYPE_SEC_STATUS,
                                (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                                (uint)1);
            mMsg.addChar(null, 5248, 'A');
            callMamdaOnMsg(mSubscription, mMsg);
            Assert.AreEqual('A', mSecStatusListener.getShortSaleCircuitBreaker());
            Assert.AreEqual(MamdaFieldState.MODIFIED,
                                mSecStatusListener.getShortSaleCircuitBreakerFieldState());
            mMsg = null;
            mSecStatusListener = null;
        }
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mLuldLowLimit.copy(field.getPrice());
     listener.mSecurityStatusCache.mLuldLowLimitFieldState = MamdaFieldState.MODIFIED;
     listener.mUpdated = true;
 }
Exemplo n.º 9
0
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {            
     if ((field != null) && (listener.mSecurityStatusCache.mLuldIndicator != field.getChar() || listener.mSecurityStatusCache.mLuldIndicatorFieldState == MamdaFieldState.NOT_INITIALISED))
     {
         listener.mSecurityStatusCache.mLuldIndicator = field.getChar();
         listener.mSecurityStatusCache.mLuldIndicatorFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     } 
 }
Exemplo n.º 10
0
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mLuldTime = field.getDateTime();
     listener.mSecurityStatusCache.mLuldTimeFieldState = MamdaFieldState.MODIFIED;
     listener.mUpdated = true;
 }
Exemplo n.º 11
0
			public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
			{
				listener.mSecurityStatusCache.mReason = listener.getFieldAsString(field);
                listener.mSecurityStatusCache.mReasonFieldState = MamdaFieldState.MODIFIED;
			}
Exemplo n.º 12
0
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     string status = listener.getFieldAsString(field);
     if (string.Compare(listener.mSecurityStatusCache.mSecStatusStr,	status) != 0)
     {
         listener.mSecurityStatusCache.mSecStatusStr = status;
         listener.mSecurityStatusCache.mSecStatusStrFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     }
 }
Exemplo n.º 13
0
			public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
			{
				listener.mSecurityStatusCache.mEventSeqNum = field.getI64();
                listener.mSecurityStatusCache.mEventSeqNumFieldState = MamdaFieldState.MODIFIED;
			}
Exemplo n.º 14
0
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {            
     if ((field != null) && (listener.mSecurityStatusCache.mShortSaleCircuitBreaker != field.getChar()))
     {
         listener.mSecurityStatusCache.mShortSaleCircuitBreaker = field.getChar();
         listener.mSecurityStatusCache.mShortSaleCircuitBreakerFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     } 
 }
Exemplo n.º 15
0
			public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
			{
				if (string.Compare(listener.mSecurityStatusCache.mSecStatusOrigStr, field.getString()) != 0)
				{
					listener.mSecurityStatusCache.mSecStatusOrigStr = field.getString();
                    listener.mSecurityStatusCache.mSecStatusOrigStrFieldState = MamdaFieldState.MODIFIED;
					listener.mUpdated = true;
				}
			}
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mLuldTime           = field.getDateTime();
     listener.mSecurityStatusCache.mLuldTimeFieldState = MamdaFieldState.MODIFIED;
     listener.mUpdated = true;
 }
Exemplo n.º 17
0
 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {
     listener.mSecurityStatusCache.mLuldLowLimit.copy(field.getPrice());
     listener.mSecurityStatusCache.mLuldLowLimitFieldState = MamdaFieldState.MODIFIED;
     listener.mUpdated = true;
 }
Exemplo n.º 18
0
			public FieldIterator(MamdaSecurityStatusListener listener)
			{
				mListener = listener;
			}
 public FieldIterator(MamdaSecurityStatusListener listener)
 {
     mListener = listener;
 }
 public void testNotInEffect()
 {
     mSecStatusListener = new MamdaSecurityStatusListener();
     mSubscription.addMsgListener(mSecStatusListener);
     mMsg = new MamaMsg();
     addMamaHeaderFields(mMsg,
                         (byte)mamaMsgType.MAMA_MSG_TYPE_SEC_STATUS,
                         (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                         (uint)1);
     callMamdaOnMsg(mSubscription, mMsg);
     Assert.AreEqual(' ', mSecStatusListener.getShortSaleCircuitBreaker());
     Assert.AreEqual(MamdaFieldState.NOT_INITIALISED,
                         mSecStatusListener.getShortSaleCircuitBreakerFieldState());
     mMsg = null;
     mSecStatusListener = null;
 }