protected override BaseInstanceState FindChild(
ISystemContext context,
QualifiedName browseName,
bool createOrReplace,
BaseInstanceState replacement)
{
if (QualifiedName.IsNull(browseName))
{
return null;
}
BaseInstanceState instance = null;
switch (browseName.Name)
{
case Boiler.BrowseNames.UpdateRate:
{
if (createOrReplace)
{
if (UpdateRate == null)
{
if (replacement == null)
{
UpdateRate = new PropertyState<uint>(this);
}
else
{
UpdateRate = (PropertyState<uint>)replacement;
}
}
}
instance = UpdateRate;
break;
}
}
if (instance != null)
{
return instance;
}
return base.FindChild(context, browseName, createOrReplace, replacement);
}
#endregion