27 lines
562 B
C#
27 lines
562 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
|
|
namespace TBF.BenchControl.MettlerToledo
|
|
{
|
|
public class TankDraining : ComponentBase
|
|
{
|
|
public GenericDevices.IValve DrainValve;
|
|
|
|
GenericDevices.ITankDrainingCfg tankManagementCfg;
|
|
|
|
public TankDraining()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public TankDraining(Generic.IComponentCfg cfg)
|
|
: base(cfg)
|
|
{
|
|
tankManagementCfg = cfg as GenericDevices.ITankDrainingCfg;
|
|
if (tankManagementCfg == null) throw new Exception(string.Format("Cannot create component {0}", cfg.Name));
|
|
}
|
|
}
|
|
}
|