43 ns3::TypeId GetInstanceTypeId()
const override;
45 void execute(
const FunctionalityVariant &functionality,
const AmrDescription &description,
46 const Topology &topology, FunctionalityDoneCallback notifyDone);
51 util::Acceleration getAcceleration()
const;
52 util::Position getPosition()
const;
53 util::Velocity getVelocity()
const;
57 ns3::Vector DoGetPosition()
const override;
59 void DoSetPosition(
const ns3::Vector &position)
override;
61 ns3::Vector DoGetVelocity()
const override;
66 void startNextPhase();
68 util::Duration now()
const {
return ns3::Simulator::Now().GetSeconds(); }
69 std::deque<AmrMobilityStatus> phases_;
70 FunctionalityVariant current_functionality_;
71 std::function<void(
const FunctionalityVariant &)> notifyDone_;
static daisi::cpps::AmrMobilityStatus calculateMobilityStatus(const daisi::cpps::AmrMobilityStatus ¤t_phase, const util::Duration ¤t_timestamp)
Calculates the current status of the AMR for simulation.
Definition amr_mobility_helper.cpp:108