class documentation

class RenderedPlan:

Constructor: RenderedPlan(entries, parts)

View In Hierarchy

The nodes one plan became, written and read by the names the plan gave its entries.

A complex Variable takes all the values below it in one write, a plain one takes its own. The values are the Projection's: a map from the plan's flat names (PlanVariable.full_name) to the value of that entry, whole, since the structure is built from all of them.

Method __init__ Remember what was created.
Async Method read Return what the nodes hold, by the plan's names, in the form a projection builds a message from.
Async Method write Write every node of the plan in one call, each with the status, from a map of all the values.
Instance Variable entries The plan entry behind each name.
Property initial Return the value each entry was created holding.
Instance Variable _parts Undocumented
def __init__(self, entries: Mapping[str, PlanVariable], parts: Sequence[_Plain | _Complex]):

Remember what was created.

async def read(self) -> dict[str, object]:

Return what the nodes hold, by the plan's names, in the form a projection builds a message from.

Raises
ValueErrorWhen an array of structures holds something that is not one.
async def write(self, values: Mapping[str, object], status: ua.StatusCode = GOOD):

Write every node of the plan in one call, each with the status, from a map of all the values.

The value always travels with the status, because a status alone leaves the variant null. The call is the server's own write service, so each node still goes through its access control and write check, and all carry one SourceTimestamp. A node that refuses does not keep the others from being written; the first refusal is raised once the call is done.

Raises
KeyErrorWhen an entry has no value.
UaStatusCodeErrorWhen a node refuses its value, with the first refusal's status.
entries =

The plan entry behind each name.

@property
initial: dict[str, object] =

Return the value each entry was created holding.

_parts =

Undocumented