34 BidSubmission(std::string task_uuid, std::string participant_connection,
37 : task_uuid_(std::move(task_uuid)),
38 participant_connection_(std::move(participant_connection)),
39 participant_ability_(participant_ability),
40 metrics_composition_(metrics_composition) {}
42 const std::string &getTaskUuid()
const {
return task_uuid_; }
44 const std::string &getParticipantConnection()
const {
return participant_connection_; }
48 const MetricsComposition &getMetricsComposition()
const {
return metrics_composition_; }
51 if (metrics_composition_ != other.metrics_composition_) {
52 return metrics_composition_ > other.metrics_composition_;
59 if (participant_ability_ != other.participant_ability_) {
60 return participant_ability_ < other.participant_ability_;
64 return participant_connection_ > other.participant_connection_;
67 solanet::UUID getUUID()
const {
return uuid_; }
69 SERIALIZE(uuid_, task_uuid_, participant_connection_, participant_ability_, metrics_composition_);
72 solanet::UUID uuid_ = solanet::generateUUID();
74 std::string task_uuid_;
76 std::string participant_connection_;