Ejemplo n.º 1
0
        }           //	end FireEvents

        public void ChangeSimulationValues()
        {
            if (m_daSimulationElement != null)
            {
                m_daSimulationElement.ValueChanged(
                    new ValueQT(
                        m_random.Next(5000),
                        EnumQuality.GOOD,
                        DateTime.Now));
            }       //	end if
        }           //	end ChangeSimulationValues
Ejemplo n.º 2
0
        }                 //	end HandleReadRequests

        public override int HandleWriteRequests()
        {
            int count = Requests.Count;

            for (int i = 0; i < count; i++)
            {
                DaRequest request = Requests[i] as DaRequest;
                if (request != null)
                {
                    MyDaAddressSpaceElement element = (MyDaAddressSpaceElement)request.AddressSpaceElement;
                    if (element != null)
                    {
                        ValueQT valueQT = request.Value;
                        request.Result = (EnumResultCode)element.ValueChanged(valueQT);
                    } //	end if
                }     //	end if
            }         //	end for
            return(CompleteRequests());
        }             //	end HandleWriteRequests