本文整理汇总了C++中UserModel类的典型用法代码示例。如果您正苦于以下问题:C++ UserModel类的具体用法?C++ UserModel怎么用?C++ UserModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UserModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateChannel
void UserView::updateChannel(const QModelIndex &idx) {
UserModel *um = static_cast<UserModel *>(model());
if(!idx.isValid())
return;
Channel * c = um->getChannel(idx);
for(int i = 0; idx.child(i, 0).isValid(); ++i) {
updateChannel(idx.child(i,0));
}
if(c && idx.parent().isValid()) {
if(g.s.bFilterActive == false) {
setRowHidden(idx.row(),idx.parent(),false);
} else {
if(ChannelHidden(c)) {
QByteArray ba = c->qsName.toLocal8Bit();
setRowHidden(idx.row(),idx.parent(),true);
} else {
if(g.s.bFilterHidesEmptyChannels && !ChannelHasUsers(c)) {
setRowHidden(idx.row(),idx.parent(),true);
} else {
setRowHidden(idx.row(),idx.parent(),false);
}
}
}
}
}
示例2: predict
double predict(UserModel &trainDataModel, NeighborCollection *neighbor_cls,
double *userRanks, int u, int i, long t)
{
double p,q,s;
int count = 0;
vector<Neighbor>::iterator nb_it;
p = q = 0;
for(nb_it = neighbor_cls[u].begin(); nb_it != neighbor_cls[u].end(); nb_it++) {
int n = nb_it->neighbor;
if((s = trainDataModel.getScore(n,i)) >= trainDataModel.min_score) {
double w = 2 * nb_it->similarity*userRanks[n]/(nb_it->similarity+userRanks[n]);
p += (s - trainDataModel.getScore_avg(n)) * (w);
q += abs(w);
count ++;
if(count >= K_NEIGHBOR) {
break;
}
}
}
s = trainDataModel.getScore_avg(u);
if(count >= MIN_NEIGHBOR && q > 0) {
s += p / q;
if(s < trainDataModel.min_score) s = trainDataModel.min_score;
else if(s > trainDataModel.max_score) s = trainDataModel.max_score;
}
return s;
}
示例3:
list<UserModel> EducationSystemDataModel::getStudentsTakingCoursesTaughtBy(int instructorId)
{
list<UserModel> students;
// Iterate over takes entries
list<TakeModel>::iterator takeItem;
for(takeItem = takes.begin(); takeItem != takes.end(); takeItem++){
TakeModel take = *takeItem;
// 'Take' item for this instructor
if(take.getInstructorId() == instructorId){
// Find its matching student
list<UserModel>::iterator userItem;
for(userItem = users.begin(); userItem != users.end(); userItem++){
UserModel user = *userItem;
if(user.getId() == take.getStudentId()){
students.push_back(user);
}
}
}
}
return students;
}
示例4: indexAt
/**
* This function is used to create custom behaviour when clicking
* on user/channel flags (e.g. showing the comment)
*/
void UserView::mouseReleaseEvent(QMouseEvent *evt) {
QPoint qpos = evt->pos();
QModelIndex idx = indexAt(qpos);
if ((evt->button() == Qt::LeftButton) && idx.isValid()) {
UserModel *um = static_cast<UserModel *>(model());
ClientUser *cu = um->getUser(idx);
Channel * c = um->getChannel(idx);
if ((cu && ! cu->qbaCommentHash.isEmpty()) ||
(! cu && c && ! c->qbaDescHash.isEmpty())) {
QRect r = visualRect(idx);
int offset = 18;
if (cu) {
// Calculate pixel offset of comment flag
if (cu->bLocalIgnore)
offset += 18;
if (cu->bRecording)
offset += 18;
if (cu->bPrioritySpeaker)
offset += 18;
if (cu->bMute)
offset += 18;
if (cu->bSuppress)
offset += 18;
if (cu->bSelfMute)
offset += 18;
if (cu->bLocalMute)
offset += 18;
if (cu->bSelfDeaf)
offset += 18;
if (cu->bDeaf)
offset += 18;
if (! cu->qsFriendName.isEmpty())
offset += 18;
if (cu->iId >= 0)
offset += 18;
}
offset = r.topRight().x() - offset;
if ((qpos.x() >= offset) && (qpos.x() <= (offset+18))) {
QString str = um->data(idx, Qt::ToolTipRole).toString();
if (str.isEmpty()) {
um->bClicked = true;
} else {
QWhatsThis::showText(viewport()->mapToGlobal(r.bottomRight()), str, this);
um->seenComment(idx);
}
return;
}
}
}
QTreeView::mouseReleaseEvent(evt);
}
示例5: UserModel
UserModel *NormalLogin::findUserByUserId(std::string userId)
{
// 这里省略具体的处理,仅做示意,返回一个有默认数据的对象
UserModel *um = new UserModel();
um->setUserId(userId);
um->setName("test");
um->setPwd("test");
um->setUuid("User0001");
return um;
}
示例6: dataChanged
void UserView::dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight )
{
UserModel *um = static_cast<UserModel *>(model());
int nRowCount = um->rowCount();
int i;
for(i=0;i<nRowCount;i++)
updateChannel(um->index(i,0));
QTreeView::dataChanged(topLeft,bottomRight);
}
示例7: isUserExists
bool EducationSystemDataModel::isUserExists(int userId)
{
list<UserModel>::iterator userItem;
for(userItem = users.begin(); userItem != users.end(); userItem++){
UserModel user = *userItem;
if(user.getId() == userId){
return true;
}
}
return false;
}
示例8: nodeActivated
void UserView::nodeActivated(const QModelIndex &idx) {
UserModel *um = static_cast<UserModel *>(model());
ClientUser *p = um->getUser(idx);
if (p) {
g.mw->openTextMessageDialog(p);
return;
}
Channel *c = um->getChannel(idx);
if (c) {
// if a channel is activated join it
g.sh->joinChannel(g.uiSession, c->iId);
}
}
示例9: updateChannel
void UserView::updateChannel(const QModelIndex &idx) {
UserModel *um = static_cast<UserModel *>(model());
if(!idx.isValid())
return;
Channel * c = um->getChannel(idx);
for(int i = 0; idx.child(i, 0).isValid(); ++i) {
updateChannel(idx.child(i,0));
}
if(c && idx.parent().isValid()) {
if(g.s.bFilterActive == false) {
setRowHidden(idx.row(),idx.parent(),false);
} else {
bool isChannelUserIsIn = false;
// Check whether user resides in this channel or a subchannel
if (g.uiSession != 0) {
const ClientUser* user = ClientUser::get(g.uiSession);
if (user != NULL) {
Channel *chan = user->cChannel;
while (chan) {
if (chan == c) {
isChannelUserIsIn = true;
break;
}
chan = chan->cParent;
}
}
}
if(channelFiltered(c) && !isChannelUserIsIn) {
setRowHidden(idx.row(),idx.parent(),true);
} else {
if(g.s.bFilterHidesEmptyChannels && !channelHasUsers(c)) {
setRowHidden(idx.row(),idx.parent(),true);
} else {
setRowHidden(idx.row(),idx.parent(),false);
}
}
}
}
}
示例10: removeInstructor
void EducationSystemDataModel::removeInstructor(int id)
{
// Check for existence
if(!isUserExists(id)){
cout << "There's no such user exists" << endl;
return;
}
// Remove this employee
list<UserModel>::iterator userItem;
for(userItem = users.begin(); userItem != users.end(); userItem++){
UserModel user = *userItem;
if(user.getId() == id){
users.erase(userItem++);
}
}
}
示例11: UserModel
UserModel EducationSystemDataModel::getUserByCredentials(int id, string password, bool &exist)
{
// Assume we don't have such user
exist = false;
// Iterate through users list and check for match
list<UserModel>::iterator userItem;
for(userItem = users.begin(); userItem != users.end(); userItem++){
UserModel user = *userItem;
if(user.getId() == id && user.getPassword() == password){
// Match found
exist = true;
return user;
}
}
return UserModel();
}
示例12: login
bool NormalLogin::login(LoginModel *lm)
{
//1:从数据库获取登录人员的信息, 就是根据用户编号去获取人员的数据
UserModel *um = this->findUserByUserId(lm->getUserId());
//2:判断从前台传递过来的登录数据,和数据库中已有的数据是否匹配
//先判断用户是否存在,如果um为null,说明用户肯定不存在
//但是不为null,用户不一定存在,因为数据层可能返回new UserModel();
//因此还需要做进一步的判断
if (um != 0)
{
//如果用户存在,检查用户编号和密码是否匹配
if (um->getUserId().equals(lm->getUserId()) && um->getPwd().equals(lm->getPwd()))
{
return true;
}
}
return false;
}
示例13: predictAll
void predictAll(UserModel &trainDataModel, NeighborCollection *neighbor_cls,
double *userRanks, UserModel &testDataModel, UserModel &resultDataModel)
{
//train(trainDataModel);
for(int u = testDataModel.user_0; u < testDataModel.user_0 + testDataModel.n_user; u++) {
map<int,Rating> &rs = testDataModel.getRatings(u);
for(map<int,Rating>::iterator it_i = rs.begin(); it_i != rs.end(); it_i++) {
int i = it_i->first;
double s = predict(trainDataModel, neighbor_cls, userRanks, u, i, it_i->second.timestamp);
resultDataModel.entities[u].ratings[i] = Rating(u,i,s,it_i->second.timestamp);
}
}
}
示例14: TEST_F
TEST_F(ISOModelFixture, SimModel)
{
//testGenericFunctions();
UserModel userModel;
userModel.load(resourcesPath() / openstudio::toPath("isomodel/exampleModel.ISO"));
ASSERT_TRUE(userModel.valid());
SimModel simModel = userModel.toSimModel();
ISOResults results = simModel.simulate();
EXPECT_DOUBLE_EQ(0, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Heating) );
EXPECT_DOUBLE_EQ(0.34017664200890202, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(0.47747797661595698, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(1.3169933074695126, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(2.4228760061905459, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(3.7268950868670396, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(4.5866846768048868, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(5.2957488941600186, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(4.7728355657234216, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(3.9226543241145793, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(2.5539052604147932, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(1.2308504332601247, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(0.39346302413410666, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Cooling) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(2.7490495805879811, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(2.9454102649156932, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(2.9454102649156932, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(2.9454102649156932, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(2.9454102649156932, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(3.0435906070795506, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::ExteriorLights) );
EXPECT_DOUBLE_EQ(0.63842346693363961, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(0.58652953302205624, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(1.1594322752799191, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(2.0941842853293839, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(3.2204732233014375, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(3.9634287108669861, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(4.5761426152904692, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(4.1242847167812258, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(3.3896293582675732, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(2.2071953370955941, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(1.0817759398239362, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(0.60343839818338818, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Fans) );
EXPECT_DOUBLE_EQ(0.10115033983397403, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.092928384780081766, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.18369777229888676, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.33179772221319914, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.51024434068463553, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.62795649247899088, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.72503346859816364, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.65344214660243516, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.53704504808815079, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.34970293228646099, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.17139408183562516, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(0.095607386329774752, results.monthlyResults[11].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::Pumps) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[0].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.4914553103722721, results.monthlyResults[1].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[2].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.6694164039702915, results.monthlyResults[3].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[4].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.6694164039702915, results.monthlyResults[5].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[6].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[7].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.6694164039702915, results.monthlyResults[8].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.7583969507693009, results.monthlyResults[9].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
EXPECT_DOUBLE_EQ(2.6694164039702915, results.monthlyResults[10].getEndUse(EndUseFuelType::Electricity, EndUseCategoryType::InteriorEquipment) );
//.........这里部分代码省略.........
示例15: TEST_F
TEST_F(ISOModelFixture, UserModel)
{
UserModel userModel;
userModel.setTerrainClass(0.366569597990189);
userModel.setFloorArea(0.13797878192703);
userModel.setBuildingHeight(0.425419263581922);
userModel.setBuildingOccupancyFrom(0.665995505182317);
userModel.setBuildingOccupancyTo(0.400372234106352);
userModel.setEquivFullLoadOccupancyFrom(0.254850243633116);
userModel.setEquivFullLoadOccupancyTo(0.713362082549865);
userModel.setPeopleDensityOccupied(0.0453028919599623);
userModel.setPeopleDensityUnoccupied(0.374398515315959);
userModel.setHeatingOccupiedSetpoint(0.308476836073534);
userModel.setHeatingUnoccupiedSetpoint(0.96115521837837);
userModel.setCoolingOccupiedSetpoint(0.0182141291000549);
userModel.setCoolingUnoccupiedSetpoint(0.47279017381788);
userModel.setElecPowerAppliancesOccupied(0.0159043563230605);
userModel.setElecPowerAppliancesUnoccupied(0.877197046873451);
userModel.setGasPowerAppliancesOccupied(0.413231779700794);
userModel.setGasPowerAppliancesUnoccupied(0.735954395099727);
userModel.setLightingPowerIntensityOccupied(0.827607402688993);
userModel.setLightingPowerIntensityUnoccupied(0.210627783574828);
userModel.setExteriorLightingPower(0.688613300586997);
userModel.setDaylightSensorSystem(0.952066322499152);
userModel.setLightingOccupancySensorSystem(0.191200546809349);
userModel.setConstantIlluminationControl(0.295905191092175);
userModel.setCoolingSystemCOP(0.977647331541828);
userModel.setCoolingSystemIPLVToCOPRatio(0.86953551426846);
userModel.setHeatingEnergyCarrier(0.263002176275548);
userModel.setHeatingSystemEfficiency(0.710454137223511);
userModel.setVentilationType(0.0841726806995226);
userModel.setFreshAirFlowRate(0.903704085971796);
userModel.setSupplyExhaustRate(0.724248760195895);
userModel.setHeatRecovery(0.49985550202677);
userModel.setExhaustAirRecirculation(0.846564029275989);
userModel.setBuildingAirLeakage(0.863462404238138);
userModel.setDhwDemand(0.881916031629701);
userModel.setDhwEfficiency(0.105230439331114);
userModel.setDhwDistributionSystem(0.791092991177229);
userModel.setDhwEnergyCarrier(0.789220796023767);
userModel.setBemType(0.293374792126407);
userModel.setInteriorHeatCapacity(0.590020871911987);
userModel.setSpecificFanPower(0.256509943938684);
userModel.setFanFlowControlFactor(0.171213718831364);
userModel.setRoofSHGC(0.577629926945883);
userModel.setWallAreaS(0.351700449083525);
userModel.setWallAreaSE(0.638796629077831);
userModel.setWallAreaE(0.713877579934114);
userModel.setWallAreaNE(0.0544635225207429);
userModel.setWallAreaN(0.713312047950444);
userModel.setWallAreaNW(0.316883353660591);
userModel.setWallAreaW(0.963602582100428);
userModel.setWallAreaSW(0.950016805325306);
userModel.setRoofArea(0.401348851386038);
userModel.setWallUvalueS(0.479173557940235);
userModel.setWallUvalueSE(0.598665235979741);
userModel.setWallUvalueE(0.592537203218594);
userModel.setWallUvalueNE(0.317076189922438);
userModel.setWallUvalueN(0.857610736439619);
userModel.setWallUvalueNW(0.494959077705813);
userModel.setWallUvalueW(0.710302412967452);
userModel.setWallUvalueSW(0.755347362509827);
userModel.setRoofUValue(0.508937055452772);
userModel.setWallSolarAbsorptionS(0.91461449925898);
userModel.setWallSolarAbsorptionSE(0.928931093579599);
userModel.setWallSolarAbsorptionE(0.435542934183637);
userModel.setWallSolarAbsorptionNE(0.793609339380358);
userModel.setWallSolarAbsorptionN(0.902389688647158);
userModel.setWallSolarAbsorptionNW(0.336318028981842);
userModel.setWallSolarAbsorptionW(0.37153202026125);
userModel.setWallSolarAbsorptionSW(0.418783890513947);
userModel.setRoofSolarAbsorption(0.223964378497134);
userModel.setWallThermalEmissivityS(0.583098358149272);
userModel.setWallThermalEmissivitySE(0.141381800284656);
userModel.setWallThermalEmissivityE(0.837222292557137);
userModel.setWallThermalEmissivityNE(0.49538931179426);
userModel.setWallThermalEmissivityN(0.871379477772421);
userModel.setWallThermalEmissivityNW(0.170422643070764);
userModel.setWallThermalEmissivityW(0.761063022176878);
userModel.setWallThermalEmissivitySW(0.186495812844654);
userModel.setRoofThermalEmissivity(0.907924653508436);
userModel.setWindowAreaS(0.606074602940241);
userModel.setWindowAreaSE(0.404342798081098);
userModel.setWindowAreaE(0.0612029472801275);
userModel.setWindowAreaNE(0.289843899154198);
userModel.setWindowAreaN(0.540818859803666);
userModel.setWindowAreaNW(0.41253025448177);
userModel.setWindowAreaW(0.014956739105872);
userModel.setWindowAreaSW(0.899839246505665);
userModel.setSkylightArea(0.135269594888848);
userModel.setWindowUvalueS(0.232560858068808);
userModel.setWindowUvalueSE(0.431164085960324);
userModel.setWindowUvalueE(0.00477022329159593);
userModel.setWindowUvalueNE(0.71516207439754);
userModel.setWindowUvalueN(0.280649559810701);
userModel.setWindowUvalueNW(0.355908313708148);
userModel.setWindowUvalueW(0.112872065367925);
userModel.setWindowUvalueSW(0.398611796542468);
userModel.setSkylightUvalue(0.712266965230007);
userModel.setWindowSHGCS(0.255902968619523);
//.........这里部分代码省略.........