📄 client.cpp
字号:
// Client.cpp: implementation of the CClient class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Client.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CClient::CClient()
{
}
CClient::CClient(const CClient &client)
{
*this=client;
}
CClient::SetClient(double need,UINT time_low,UINT time_uper,int previous,int next)
{
this->need=need;
this->time_low=time_low;
this->time_uper=time_uper;
this->next=next;
this->previous=previous;
}
CClient::~CClient()
{
}
double CClient::GetNeed()
{
return this->need;
}
double CClient::GetTime_low()
{
return this->time_low;
}
double CClient::GetTime_uper()
{
return this->time_uper;
}
void CClient::SetNeed(UINT need)
{
this->need=need;
}
void CClient::SetNext(UINT next)
{
this->next=next;
}
void CClient::SetPrevious(UINT prev)
{
this->previous=prev;
}
UINT CClient::GetNext()
{
return next;
}
UINT CClient::GetPrevious()
{
return previous;
}
void CClient::SetNewTime(double index)
{
this->time_new=index;
}
double CClient::GetTime_new()
{
return time_new;
}
void CClient::SetServerTime(double time)
{
this->server_time=time;
}
double CClient::GetServerTime()
{
return server_time;
}
CClient::CClient(double need, //需求
double server_time , //服务时间
double time_low, //时间窗开始时间
double time_uper, //时间窗结束时间
double time_new, //新的开始时间
UINT previous,
UINT next)
{
this->need=need;
this->server_time=server_time;
this->time_low=time_low;
this->time_uper=time_uper;
this->time_new=time_new;
this->previous=previous;
this->next=next;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -