Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Task #539224 » classes.h

Александр Козлов, 2016-04-02 08:45 PM

 
#include <sstream>
#include <vector>
#include <mutex>
#include <thread>

class Timer
{
public:
static const Timer& Instance()
{
static Timer singleton;
return singleton;
}
time_t Time();
private:
Timer(){}
std::mutex locker;
time_t timer;
};

class VirtualMachine
{
class Process
{
double probability;
time_t start;
time_t end;
double sygma;
double dispersion;

public:
Process(){}
Process(const Process& other){}
~Process(){}


};

class Processor
{
int speed;
int switching;

public:
Processor(){}
Processor(const Processor& other){}
~Processor(){}
};

class Algorithm
{
int type;

public:
int Next();
};


Processor processor;
Algorithm algorithm;
std::vector<Process> loaded;
int running;

public:
void Switch(int next)
{
running = algorithm.Next();
}
void Start(){}
void Shutdown(){}
};
(3-3/6)