-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SetpointManagerMixedAir): fully support SetpointManagerMixedAir
- Loading branch information
1 parent
3d1a6e4
commit e880348
Showing
7 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions
47
...Ironbug.Grasshopper/Component/Ironbug/SetpointManagers/Ironbug_SetpointManagerMixedAir.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Linq; | ||
using Grasshopper.Kernel; | ||
|
||
namespace Ironbug.Grasshopper.Component.Ironbug | ||
{ | ||
public class Ironbug_SetpointManagerMixedAir : Ironbug_DuplicableHVACWithParamComponent | ||
{ | ||
|
||
public Ironbug_SetpointManagerMixedAir() | ||
: base("IB_SetpointManagerMixedAir", "SPM_MxAir", | ||
"Description", | ||
"Ironbug", "05:SetpointManager & AvailabilityManager", | ||
typeof(HVAC.IB_SetpointManagerMixedAir_FieldSet)) | ||
{ | ||
} | ||
public override GH_Exposure Exposure => GH_Exposure.primary ; | ||
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) | ||
{ | ||
} | ||
|
||
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) | ||
{ | ||
pManager.AddGenericParameter("SetpointManagerMixedAir", "SPM", "TODO:...", GH_ParamAccess.item); | ||
} | ||
|
||
|
||
protected override void SolveInstance(IGH_DataAccess DA) | ||
{ | ||
var obj = new HVAC.IB_SetpointManagerMixedAir(); | ||
|
||
var objs = this.SetObjDupParamsTo(obj); | ||
if (objs.Count() == 1) | ||
{ | ||
DA.SetData(0, obj); | ||
} | ||
else | ||
{ | ||
DA.SetDataList(0, objs); | ||
} | ||
} | ||
|
||
protected override System.Drawing.Bitmap Icon => Properties.Resources.SetpointMxAir; | ||
|
||
public override Guid ComponentGuid => new Guid("{721290AC-8BA7-473B-8C83-39BD5E6B579F}"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters