Zum Hauptinhalt springen

DirectStateMapping

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

One source-state → target-attribute mapping within a DirectControlMappingConfiguration.

public class DirectStateMapping

Inheritance Object → DirectStateMapping

Properties​

StateName​

Source state name (e.g. "actual", "total", "totalNeg", "Gpwr"). Emitted as the mapping's SourceAttributePath. When the control exposes a States RecordArray the state must be present; otherwise the mapping is skipped (so a non-bidirectional meter produces no ExportedEnergy mapping).

public string StateName { get; set; }

Property Value​

String

TargetAttribute​

Target attribute on the target entity (e.g. "ActivePower", "ImportedEnergy", "ExportedEnergy").

public string TargetAttribute { get; set; }

Property Value​

String

Expression​

Optional mXparser expression applied at runtime (e.g. "value / 1000" for W→kW).

public string Expression { get; set; }

Property Value​

String

Constructors​

DirectStateMapping()​

public DirectStateMapping()