Show / Hide Table of Contents

Class WorkItemStatusEntity

Class containing info about one row from TaskStatusTable.

Inheritance
object
WorkItemStatusEntity
SQLiteStorageWorkItemStatusEntity
Implements
ICloneable
IWorkItemStatusEntity
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.StorageLibrary.Entities
Assembly: DNVGL.One.Compute.StorageLibrary.dll
Syntax
public class WorkItemStatusEntity : ICloneable, IWorkItemStatusEntity

Constructors

View Source

WorkItemStatusEntity()

Initializes a new instance of the WorkItemStatusEntity class.

Declaration
public WorkItemStatusEntity()
View Source

WorkItemStatusEntity(WorkItemInfo)

Initializes a new instance of the WorkItemStatusEntity class.

Declaration
public WorkItemStatusEntity(WorkItemInfo workItemInfo)
Parameters
Type Name Description
WorkItemInfo workItemInfo

The work item information.

View Source

WorkItemStatusEntity(string, string, int, double, string, string)

Initializes a new instance of the WorkItemStatusEntity class.

Declaration
public WorkItemStatusEntity(string jobId, string taskId, int state, double progress, string message, string groupId)
Parameters
Type Name Description
string jobId

The job id.

string taskId

The task id.

int state

The state.

double progress

The progress.

string message

The message.

string groupId

Id of the task group.

Properties

View Source

JobId

Gets or sets job identifier.

Declaration
public string JobId { get; set; }
Property Value
Type Description
string
View Source

Message

Gets or sets Message.

Declaration
public string Message { get; set; }
Property Value
Type Description
string
View Source

ParentId

Gets or sets the parent identifier.

Declaration
public string ParentId { get; set; }
Property Value
Type Description
string

The parent task identifier.

View Source

Progress

Gets or sets progress.

Declaration
public double Progress { get; set; }
Property Value
Type Description
double
Remarks

Progress is defined as a fraction of 1, where 0 = no progress and 1 = complete.

View Source

State

Gets or sets State.

Declaration
public int State { get; set; }
Property Value
Type Description
int
View Source

TaskDuration

Gets or sets the task duration (milliseconds).

Declaration
public long TaskDuration { get; set; }
Property Value
Type Description
long

The task duration (milliseconds).

View Source

TaskId

Gets or sets task identifier.

Declaration
public string TaskId { get; set; }
Property Value
Type Description
string

Methods

View Source

Clone()

Returns memberwise clone.

Declaration
public virtual object Clone()
Returns
Type Description
object

Cloned object.

View Source

UpdateState(WorkStatus)

Sets state.

Declaration
public void UpdateState(WorkStatus state)
Parameters
Type Name Description
WorkStatus state

State of the work item.

Implements

ICloneable
IWorkItemStatusEntity
  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.