39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
///
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using log4net;
|
|
using Config.Entities;
|
|
using TBF.Rig.GenericDevices;
|
|
|
|
namespace TBF.Rig.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(8), Cfg.ToString(1));
|
|
}
|
|
|
|
public Component()
|
|
{
|
|
}
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
|
: base(cfg)
|
|
{
|
|
log.Warn(this.ToString());
|
|
}
|
|
|
|
public bool State { get { return false; } }
|
|
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; } }
|
|
}
|
|
}
|