SetpointManagerFollowGroundTemperature::SetpointManagerFollowGroundTemperature(const Model& model)
  : SetpointManager(SetpointManagerFollowGroundTemperature::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerFollowGroundTemperature_Impl>());

  setControlVariable("Temperature");
  setOffsetTemperatureDifference(0);
  setMaximumSetpointTemperature(80);
  setMinimumSetpointTemperature(10);
}
SetpointManagerFollowOutdoorAirTemperature::SetpointManagerFollowOutdoorAirTemperature(const Model& model)
  : SetpointManager(SetpointManagerFollowOutdoorAirTemperature::iddObjectType(),model) 
{
  OS_ASSERT(getImpl<detail::SetpointManagerFollowOutdoorAirTemperature_Impl>());

  setControlVariable("Temperature");
  setReferenceTemperatureType("OutdoorAirWetBulb");
  setOffsetTemperatureDifference(1.5);
  setMaximumSetpointTemperature(80.0);
  setMinimumSetpointTemperature(6.0);
}
SetpointManagerFollowSystemNodeTemperature::SetpointManagerFollowSystemNodeTemperature(const Model& model)
  : SetpointManager(SetpointManagerFollowSystemNodeTemperature::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerFollowSystemNodeTemperature_Impl>());

  setReferenceTemperatureType("NodeDryBulb");
  setControlVariable("Temperature");
  setOffsetTemperatureDifference(0);
  setMaximumLimitSetpointTemperature(100);
  setMinimumLimitSetpointTemperature(0);
}
SetpointManagerScheduled::SetpointManagerScheduled(const Model& model,
                                                   Schedule& schedule)
  : SetpointManager(SetpointManagerScheduled::iddObjectType(),model) 
{
  OS_ASSERT(getImpl<detail::SetpointManagerScheduled_Impl>());
  bool ok = setControlVariable("Temperature");
  OS_ASSERT(ok);
  ok = setSchedule(schedule);
  if (!ok) {
    LOG_AND_THROW("Unable to set " << schedule.briefDescription() << " as "
                  << briefDescription() << "'s temperature setpoint schedule.");
  }
}
Example #5
0
//virtual
void LLUICtrl::setControlName(const std::string& control_name, LLView *context)
{
	if (context == NULL)
	{
		context = this;
	}

	// Register new listener
	if (!control_name.empty())
	{
		LLControlVariable* control = context->findControl(control_name);
		setControlVariable(control);
	}
}
SetpointManagerOutdoorAirReset::SetpointManagerOutdoorAirReset(const Model& model)
  : SetpointManager(SetpointManagerOutdoorAirReset::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerOutdoorAirReset_Impl>());

  setControlVariable("Temperature");
  setSetpointatOutdoorLowTemperature(22.0);
  setOutdoorLowTemperature(10.0);
  setSetpointatOutdoorHighTemperature(10.0);
  setOutdoorHighTemperature(24.0);
  resetSchedule();
  resetSetpointatOutdoorLowTemperature2();
  resetOutdoorLowTemperature2();
  resetSetpointatOutdoorHighTemperature2();
  resetOutdoorHighTemperature2();
}
SetpointManagerScheduled::SetpointManagerScheduled(const Model& model,
                                                   const std::string& controlVariable,
                                                   Schedule& setpointSchedule)
  : SetpointManager(SetpointManagerScheduled::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerScheduled_Impl>());
  bool ok = setControlVariable(controlVariable);
  if (!ok) {
    LOG_AND_THROW("Unable to set " << briefDescription() << "'s control variable to "
                  << controlVariable << ".");
  }
  ok = setSchedule(setpointSchedule);
  if (!ok) {
    LOG_AND_THROW("Unable to set " << setpointSchedule.briefDescription() << " as "
                  << briefDescription() << "'s " << this->controlVariable()
                  << " setpoint schedule.");
  }
}
SetpointManagerMixedAir::SetpointManagerMixedAir(const Model& model)
  : SetpointManager(SetpointManagerMixedAir::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerMixedAir_Impl>());
  setControlVariable("Temperature");
}