41 lines
1010 B
C#
41 lines
1010 B
C#
///
|
|
/// Copyright (c) 2021 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using log4net;
|
|
using Common;
|
|
using Config.Entities;
|
|
|
|
namespace TBF.Rig.TestMethods.Evacuation
|
|
{
|
|
public class Component : ComponentBase, GenericDevices.ITestMethod
|
|
{
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
|
public override string ToString()
|
|
{
|
|
return string.Format("{0}({1})", GetType().Namespace.Substring(8), Cfg.ToString(1));
|
|
}
|
|
|
|
public bool CanTest(MetersKind meters) { return true; }
|
|
public bool DoTransitions() { return false; }
|
|
|
|
public Component() { }
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
|
: base(cfg)
|
|
{
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
log.FatalFormat("{0} initialized: {1}", Name, this);
|
|
}
|
|
|
|
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
|
{
|
|
return (new EvacuationSeq()).Execute(test, repetNr, isLastRepetition, DebugLevel);
|
|
}
|
|
}
|
|
}
|