Style changes to prevent warnings.

This commit is contained in:
Milan Hanajik
2021-04-03 00:54:18 +02:00
parent e651244601
commit 535038bce1
83 changed files with 161 additions and 381 deletions
+15 -22
View File
@@ -12,25 +12,12 @@ namespace TBF.Rig.Dummy.Balance
public class Component : ComponentBase, IScale, IOperation
{
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 override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(1)); }
public int ScaleNr { get { return 0; } }
public double Capacity { get { return 10000.0; } }
public IValve DrainValve { get { return null; } }
public IValve DrainValve2 { get { return null; } }
public IValve DrainValve { get { return null; } }
public IValve DrainValve2 { get { return null; } }
public bool ContainsMoreThen(float thld) { return (thld == 0); }
public bool IsEmpty() { return true; }
public double EvaporationRate(double t) { return 0; }
@@ -40,6 +27,16 @@ namespace TBF.Rig.Dummy.Balance
public float BuoyancyPress { get { return 1.013f; } }
public float BuoyancyHumi { get { return 50.0f; } }
public Component() { }
public Component(Generic.IComponentCfg cfg)
: base(cfg)
{
log.Warn(this.ToString());
}
public IOperation ZeroOp()
{
return this;
@@ -63,9 +60,7 @@ namespace TBF.Rig.Dummy.Balance
}
/// <summary>Start this operation</summary>
public void Start()
{
}
public void Start() { }
/// <summary>Run this operation</summary>
public Event Run()
@@ -74,8 +69,6 @@ namespace TBF.Rig.Dummy.Balance
}
/// <summary>Stop this operation</summary>
public void Stop()
{
}
public void Stop() { }
}
}