35 Task(
const ns3::Vector &from,
const ns3::Vector &to);
36 Task(std::string uuid,
const ns3::Vector &from,
const ns3::Vector &to);
38 ns3::Vector getPickupLocation()
const;
39 ns3::Vector getDeliveryLocation()
const;
41 cpps::OrderStates getOrderState()
const;
42 void setOrderState(
const cpps::OrderStates &state);
44 ns3::Vector getCurrentPosition()
const;
45 void setCurrentPosition(
const ns3::Vector ¤tPosition);
47 std::string getUuid()
const;
49 void setConnection(
const std::string &connection);
50 std::string getConnection()
const;
52 void setName(
const std::string &name);
53 std::string getName()
const;
55 SERIALIZE(uuid_, from_x_, from_y_, to_x_, to_y_, connection_, name_);
59 std::string connection_;
62 double from_x_ = 0.0, from_y_ = 0.0;
63 double to_x_ = 0.0, to_y_ = 0.0;
65 ns3::Vector current_pos_;
66 cpps::OrderStates order_state_ = cpps::OrderStates::kError;