20#include <dpsim/Config.h>
36 using Ptr = std::shared_ptr<Event>;
48 return l->mTime > r->mTime;
68 std::shared_ptr<CPS::Base::Ph1::Switch>
mSwitch;
89 std::shared_ptr<CPS::Base::Ph3::Switch>
mSwitch;
110 std::priority_queue<Event::Ptr, std::deque<Event::Ptr>,
EventComparator>
AttributePointer< Attribute< T > > Ptr
CPS::Attribute< T >::Ptr mAttribute
AttributeEvent(CPS::Real t, typename CPS::Attribute< T >::Ptr attr, T val)
bool operator()(const Event::Ptr &l, const Event::Ptr &r)
friend class EventComparator
std::shared_ptr< Event > Ptr
void handleEvents(CPS::Real currentTime)
std::priority_queue< Event::Ptr, std::deque< Event::Ptr >, EventComparator > mEvents
void addEvent(Event::Ptr e)
std::shared_ptr< CPS::Base::Ph3::Switch > mSwitch
SwitchEvent3Ph(CPS::Real t, const std::shared_ptr< CPS::Base::Ph3::Switch > &sw, CPS::Bool state)
SwitchEvent(CPS::Real t, const std::shared_ptr< CPS::Base::Ph1::Switch > &sw, CPS::Bool state)
std::shared_ptr< CPS::Base::Ph1::Switch > mSwitch
static std::shared_ptr< SwitchEvent > make(Args &&...args)