Attributes and Scheduling

The attribute system, and how it decides the order everything runs in.

Attributes are the unit of state in DPsim, and they are not only a way to expose a value: the scheduler builds the execution order from the dependencies that components declare over them. The two subjects are one subject, which is why they sit together.

This is also what logging and the co-simulation interfaces operate on, so a quantity that is not an attribute cannot be recorded or exchanged.


Attributes

The attribute system that carries component state and drives task scheduling.

Attribute Usage Guidelines

When a model variable should be an attribute and when a plain member is enough.

Interfaces

Configuring a VILLASnode interface, and the tasks and threads behind it.

Task Scheduling

How DPsim builds, orders, and executes the task graph each timestep.

Adding Tasks to a Component

Giving a component pre-step and post-step tasks and declaring their dependencies.