public override void GetChildren( ISystemContext context, IList<BaseInstanceState> children) { if (m_flowTransmitter1 != null) { children.Add(m_flowTransmitter1); } if (m_valve != null) { children.Add(m_valve); } base.GetChildren(context, children); }