45 void start()
override;
47 void notifyTaskAssigned();
52 server_socket_->GetSockName(addr);
53 return ns3::InetSocketAddress::ConvertFrom(addr);
57 void initAlgorithms()
override;
68 bool connectionRequest(ns3::Ptr<ns3::Socket> socket,
const ns3::Address &addr);
72 void newConnectionCreated(ns3::Ptr<ns3::Socket> socket,
const ns3::Address &addr);
74 void readFromPhysicalSocket(ns3::Ptr<ns3::Socket> socket);
76 void processMessageAmrDescription(
const AmrDescription &description);
77 void processMessageAmrStatusUpdate(
const AmrStatusUpdate &status_update);
78 void processMessageAmrOrderUpdate(
const AmrOrderUpdate &order_update);
80 void sendTopologyToPhysical();
81 void sendTaskToPhysical();
83 void checkSendingNextTaskToPhysical();
86 void logPositionUpdate();
87 void forwardOrderUpdate();
89 void sendToPhysical(std::string payload);
95 bool description_set_ =
false;
104 ns3::Ptr<ns3::Socket> server_socket_;
108 ns3::Ptr<ns3::Socket> physical_socket_;
111 ns3::Address physical_address_;
113 std::shared_ptr<TaskManagement> task_management_;