Boilerplate code reduced from factories, GetComponent() and GetControl() added to cfg-s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Xml.Serialization;
|
||||
using TBF.BenchControl.Generic;
|
||||
|
||||
@@ -6,7 +7,13 @@ namespace TBF.BenchControl.Elde.Valve
|
||||
{
|
||||
public class ValveCfg : ComponentCfgBase, IChildComponentCfg
|
||||
{
|
||||
public int BitPosition; /// Bit-position
|
||||
public IComponent GetComponent(IList<IComponent> components) { return new Valve(this, components); }
|
||||
public IComponentCfgCtrl GetControl() { return new ValveCfgCtrl(); }
|
||||
|
||||
///
|
||||
/// Serialized parameters
|
||||
///
|
||||
public int BitPosition; /// Bit-position
|
||||
public ValveCategory Category; /// None, Feeding, Bench or Output
|
||||
public int OpenCloseTime; /// Delay for SetValvesOp operations
|
||||
public bool Inverted; /// The valve is inverted: 0=open, 1=closed
|
||||
|
||||
Reference in New Issue
Block a user