Table of Contents

Class ModelParsingInfo

Namespace
Cognite.Simulator.Utils
Assembly
Cognite.Simulator.Utils.dll

Represents the information produced during model parsing. That is, when a model is downloaded, the connector will try to open the model with the simulator, extract information from the model and update that information in CDF (if necessary). The parsing info should capture information about this process (error, status, etc)

public class ModelParsingInfo
Inheritance
ModelParsingInfo
Inherited Members

Properties

Error

If there were any errors during parsing

public bool Error { get; set; }

Property Value

bool

LastUpdatedTime

Timestamp of when this entry was updated last

public long LastUpdatedTime { get; set; }

Property Value

long

Parsed

Whether or not the model was parsed

public bool Parsed { get; set; }

Property Value

bool

Status

Model parsing status

[JsonConverter(typeof(JsonStringEnumConverter))]
public SimulatorModelRevisionStatus Status { get; set; }

Property Value

SimulatorModelRevisionStatus

StatusMessage

Status message

public string StatusMessage { get; set; }

Property Value

string

Methods

SetFailure(string)

Update the model info status to failure

public void SetFailure(string statusMessage = "Model parsing failed")

Parameters

statusMessage string

Status message

SetSuccess()

Update the model info status to success

public void SetSuccess()