Style changes to prevent warnings.
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user