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

Method sourceObject

src/model/Connection.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 boost::optional<ModelObject> Connection_Impl::sourceObject() const {
48 if (boost::optional<WorkspaceObject> oCandidate = getTarget(openstudio::OS_ConnectionFields::SourceObject)) {
49 return oCandidate->optionalCast<ModelObject>();
50 }
51 return boost::none;
52 }
53
54 boost::optional<unsigned> Connection_Impl::sourceObjectPort() const {
55 return this->getUnsigned(openstudio::OS_ConnectionFields::OutletPort);

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected