#pragma once #include "ratatoskrUtils/processingElement/ProcessingElementVC.h" #include "utils/PacketFactoryCS.h" #include "utils/GlobalResourcesCS.h" class ProcessingElementCS : public ProcessingElementVC { public: std::map> neededFor; std::map, int> neededAmount; std::map> needs; std::map receivedData; std::map destToTask; std::map> taskToDest; std::map taskRepeatLeft; std::map taskStartTime; std::map taskTerminationTime; std::map countLeft; std::map destWait; GlobalResourcesCS& globalResources = GlobalResourcesCS::getInstance(); PacketFactoryCS& packetFactoryCS = PacketFactoryCS::getInstance(); ProcessingElementCS(sc_module_name mn, Node& node, TrafficPool* tp): ProcessingElementVC(mn, node, tp) {}; void thread() override; void execute(TaskCS&); void receive() override; void startSending(TaskCS&); void checkNeed(); };