Skip to content

Commit

Permalink
fix(IB_DistrictHeating): add IB_DistrictHeating_Obsolete to support o…
Browse files Browse the repository at this point in the history
…ld files
  • Loading branch information
MingboPeng committed Mar 6, 2024
1 parent 0a0f22d commit 3d1a6e4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/Ironbug.HVAC/LoopObjs/IB_DistrictHeating_Obsolete.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Ironbug.HVAC.BaseClass;
using OpenStudio;
using System;

namespace Ironbug.HVAC
{
[Obsolete("Use IB_DistrictHeatingWater instead.", true)]
public class IB_DistrictHeating : IB_HVACObject, IIB_PlantLoopObjects
{
protected override Func<IB_ModelObject> IB_InitSelf => () => new IB_DistrictHeating();

private static DistrictHeatingWater NewDefaultOpsObj(Model model) => new DistrictHeatingWater(model);
public IB_DistrictHeating() : base(NewDefaultOpsObj(new Model()))
{
}

public override HVACComponent ToOS(Model model)
{
return base.OnNewOpsObj(NewDefaultOpsObj, model);
}
}

public sealed class IB_DistrictHeating_FieldSet
: IB_FieldSet<IB_DistrictHeating_FieldSet, DistrictHeatingWater>
{
private IB_DistrictHeating_FieldSet() { }

}
}

0 comments on commit 3d1a6e4

Please sign in to comment.