GEGELATI

Loading...
Searching...
No Matches
job.h
1
36#ifndef JOB_H
37#define JOB_H
38
39#include <cstdint>
40#include <vector>
41
42#include "tpg/tpgVertex.h"
43
44namespace Learn {
52 class Job
53 {
54 protected:
58 const TPG::TPGVertex* root;
59
63 const uint64_t idx;
64
68 const uint64_t archiveSeed;
69
70 public:
72 Job() = delete;
73
83 Job(const TPG::TPGVertex* root, uint64_t archiveSeed = 0,
84 uint64_t idx = 0)
85 : root(root), archiveSeed(archiveSeed), idx(idx)
86 {
87 }
88
90 virtual ~Job() = default;
91
97 uint64_t getIdx() const;
98
104 uint64_t getArchiveSeed() const;
105
111 virtual const TPG::TPGVertex* getRoot() const;
112 };
113} // namespace Learn
114
115#endif
Learn::Job
This class embeds roots for the simulations.
Definition job.h:53
Learn::Job::getIdx
uint64_t getIdx() const
Getter of index.
Definition job.cpp:39
Learn::Job::Job
Job(const TPG::TPGVertex *root, uint64_t archiveSeed=0, uint64_t idx=0)
Constructor enabling storing elements in the job so that the Learning Agents will be able to use them...
Definition job.h:83
Learn::Job::~Job
virtual ~Job()=default
Default virtual destructor.
Learn::Job::idx
const uint64_t idx
Definition job.h:63
Learn::Job::getRoot
virtual const TPG::TPGVertex * getRoot() const
Getter of the root.
Definition job.cpp:49
Learn::Job::Job
Job()=delete
Deleted default constructor.
Learn::Job::root
const TPG::TPGVertex * root
Definition job.h:58
Learn::Job::getArchiveSeed
uint64_t getArchiveSeed() const
Getter of archiveSeed.
Definition job.cpp:44
Learn::Job::archiveSeed
const uint64_t archiveSeed
Definition job.h:68
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Learn
Definition classificationLearningEnvironment.h:44