/// /// Copyright (c) 2016 Sensus Metering Systems /// using System; using System.Collections.Generic; using log4net; using Config.Entities; using TBF.BenchControl.GenericDevices; namespace TBF.BenchControl.Dummy.Valve { public class Component : ComponentBase, IValve { private static readonly ILog log = LogManager.GetLogger(typeof(Component)); public override string ToString() { return string.Format("{0}({1})", this.GetType().Namespace.Substring(17), Cfg.ToString(1)); } public Component() { } public Component(Generic.IComponentCfg cfg) : base(cfg) { log.Debug(this.ToString()); } bool state; public bool State { get { return state; } } public ValveCategory Category { get { return ValveCategory.None; } } public int Delay { get { return 1; } } public IValve CoupledTo { get { return null; } } public bool InvertCouple { get { return false; } } public int LagOpening { get { return 0; } } public int LagClosing { get { return 0; } } } }