4 #include "../datastructures/maybe.hpp"
5 #include "resource.hpp"
23 using JobId =
unsigned int;
40 Job(
unsigned int release,
unsigned int deadline,
unsigned int duration,
41 ResVec usages,
unsigned int id);
57 Job(
unsigned int release,
unsigned int deadline,
const Job & other);
85 Maybe<unsigned int>
get_hint()
const;
118 void set_id(
unsigned int id);
126 void set_hint(Maybe<unsigned int> hint);
129 operator==(
const Job & other)
const
131 return other.jid == this->jid;
146 ResVec resource_usage;
147 unsigned int duration;
148 unsigned int release;
149 unsigned int deadline;
150 Maybe<unsigned int> hint;
void set_hint(Maybe< unsigned int > hint)
Definition: job.cpp:49
A job of an TCPSP instance.
Definition: job.hpp:21
unsigned int get_duration() const
Definition: job.cpp:37
unsigned int get_release() const
Definition: job.cpp:79
void set_id(unsigned int id)
Definition: job.cpp:73
unsigned int get_deadline() const
Definition: job.cpp:85
Job clone() const
Definition: job.cpp:20
Maybe< unsigned int > get_hint() const
Definition: job.cpp:43
unsigned int get_jid() const
Definition: job.cpp:67
const ResVec & get_resource_usage() const
Definition: job.cpp:61