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

Method targetObject

src/model/Connection.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 boost::optional<ModelObject> Connection_Impl::targetObject() const {
59 if (boost::optional<WorkspaceObject> oCandidate = getTarget(openstudio::OS_ConnectionFields::TargetObject)) {
60 return oCandidate->optionalCast<ModelObject>();
61 }
62 return boost::none;
63 }
64
65 boost::optional<unsigned> Connection_Impl::targetObjectPort() const {
66 return this->getUnsigned(openstudio::OS_ConnectionFields::InletPort).get();

Callers 4

connectedObjectMethod · 0.80
connectedObjectPortMethod · 0.80
removePortMethod · 0.80
disconnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected