Class Representation
- Namespace
- Nexus.DataModel
- Assembly
- Nexus.Extensibility.dll
A representation is part of a resource.
public record Representation : IEquatable<Representation>
- Inheritance
-
Representation
- Implements
- Inherited Members
Constructors
Representation(NexusDataType, TimeSpan, IReadOnlyDictionary<string, JsonElement>?)
Initializes a new instance of the Representation.
public Representation(NexusDataType dataType, TimeSpan samplePeriod, IReadOnlyDictionary<string, JsonElement>? parameters = null)
Parameters
dataTypeNexusDataTypeThe NexusDataType.
samplePeriodTimeSpanThe sample period.
parametersIReadOnlyDictionary<string, JsonElement>An optional list of representation parameters.
Exceptions
- ArgumentException
Thrown when the resource identifier, the sample period or the detail values are not valid.
Properties
DataType
The data type.
public NexusDataType DataType { get; }
Property Value
ElementSize
The number of bits per element.
[JsonIgnore]
public int ElementSize { get; }
Property Value
Id
The identifer of the representation. It is constructed using the sample period.
[JsonIgnore]
public string Id { get; }
Property Value
Parameters
The optional list of parameters.
public IReadOnlyDictionary<string, JsonElement>? Parameters { get; init; }
Property Value
SamplePeriod
The sample period.
public TimeSpan SamplePeriod { get; }