#include "Mixer.hpp"
Public Member Functions | |
virtual unsigned | branchIndexForInletModelObject (ModelObject modelObject) const |
virtual boost::optional < ModelObject > | inletModelObject (unsigned branchIndex) const |
virtual std::vector< ModelObject > | inletModelObjects () const |
virtual unsigned | inletPort (unsigned branchIndex) const |
bool | isRemovable () const |
virtual boost::optional < ModelObject > | lastInletModelObject () const |
virtual unsigned | newInletPortAfterBranch (unsigned branchIndex) |
virtual unsigned | nextBranchIndex () const |
virtual unsigned | nextInletPort () const |
virtual boost::optional < ModelObject > | outletModelObject () const |
virtual unsigned | outletPort () const |
virtual void | removePortForBranch (unsigned branchIndex) |
virtual | ~Mixer () |
Protected Types | |
typedef detail::Mixer_Impl | ImplType |
Protected Member Functions | |
Mixer (IddObjectType type, const Model &model) | |
Mixer (std::shared_ptr< ImplType > impl) |
|
protected |
|
inlinevirtual |
|
protected |
|
explicitprotected |
|
virtual |
Returns the branch index for the ModelObject specified by modelObject.
The specified object must be connected to an inlet port of the mixer.
|
virtual |
Returns the optional ModelObject connected to the branch designated by branchIndex.
If there is no connected object then the optional will be false.
|
virtual |
Returns a vector of all objects connected to the mixer's inlet ports.
If no objects are connected to the mixer then an empty vector will be returned.
|
virtual |
Returns the inlet port for branchIndex.
Branches consequtively indexed starting from 0.
Reimplemented in openstudio::model::AirLoopHVACReturnPlenum, openstudio::model::AirLoopHVACZoneMixer, and openstudio::model::ConnectorMixer.
bool openstudio::model::Mixer::isRemovable | ( | ) | const |
|
virtual |
Returns the optional ModelObject connected to the last branch of the mixer.
If there are no connections to the mixer's inlet ports, then the optional will be false.
|
virtual |
Returns a new port after the branch specified by branchIndex.
|
virtual |
Returns the index of the next available branch.
|
virtual |
Returns the next available inlet port.
This will be the first port with no connected objects
Reimplemented in openstudio::model::AirLoopHVACReturnPlenum, openstudio::model::AirLoopHVACZoneMixer, and openstudio::model::ConnectorMixer.
|
virtual |
Returns the optional ModelObject connected to the outlet port.
If there is no connected object then the optional will be false.
|
virtual |
Returns the outlet port to the zone mixer.
Reimplemented in openstudio::model::AirLoopHVACReturnPlenum, openstudio::model::AirLoopHVACZoneMixer, and openstudio::model::ConnectorMixer.
|
virtual |
Effectively disconnects anything connected to the inlet port at the specified branch index.
All branches after the specified branch index are moved to the next lower branch index, thereby removing any unconnected ports between branches.