14 #include <dpsim-models/Attribute.h>
27 typedef std::shared_ptr<Task> Ptr;
28 typedef std::vector<Ptr> List;
33 virtual void execute(Real time, Int timeStepCount) = 0;
35 virtual String toString()
const {
return mName; }
37 const std::vector<AttributeBase::Ptr> &getAttributeDependencies() {
38 return mAttributeDependencies;
41 const std::vector<AttributeBase::Ptr> &getModifiedAttributes() {
42 return mModifiedAttributes;
45 const std::vector<AttributeBase::Ptr> &getPrevStepDependencies() {
46 return mPrevStepDependencies;
50 Task(
const std::string &name) : mName(name) {}
52 std::vector<AttributeBase::Ptr> mAttributeDependencies;
53 std::vector<AttributeBase::Ptr> mModifiedAttributes;
54 std::vector<AttributeBase::Ptr> mPrevStepDependencies;
Tasks to be defined by every component.