MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / edges

Method edges

src/model/Node.cpp:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 std::vector<HVACComponent> Node_Impl::edges(const boost::optional<HVACComponent>& /*prev*/) {
103 std::vector<HVACComponent> edges;
104 if (boost::optional<ModelObject> edgeModelObject = this->outletModelObject()) {
105 if (boost::optional<PortList> portList = edgeModelObject->optionalCast<PortList>()) {
106 if (boost::optional<ThermalZone> thermalZone = portList->thermalZone()) {
107 edges.push_back(*thermalZone);
108 }
109 } else if (boost::optional<HVACComponent> edgeObject = edgeModelObject->optionalCast<HVACComponent>()) {
110 edges.push_back(*edgeObject);
111 }
112 }
113 return edges;
114 }
115
116 std::vector<IdfObject> Node_Impl::remove() {
117 if (isRemovable()) {

Callers 2

findModelObjectFunction · 0.45
findModelObjectsFunction · 0.45

Calls 3

outletModelObjectMethod · 0.45
thermalZoneMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected