Show / Hide Table of Contents

Interface IComputationalWork

Represents work that can be executed directly.

Namespace: DNVGL.One.Compute.WorkExecution.ExecutionModel
Assembly: DNVGL.One.Compute.WorkExecution.dll
Syntax
public interface IComputationalWork

Properties

View Source

Source

Gets the source work item.

Declaration
WorkItem Source { get; }
Property Value
Type Description
WorkItem

The source work item.

Methods

View Source

CanExecute()

Determines whether this instance can execute.

Declaration
bool CanExecute()
Returns
Type Description
bool

true if this instance can execute; otherwise, false.

View Source

Execute(object, IExecutionContext)

Executes with the specified input.

Declaration
object Execute(object input, IExecutionContext executionContext = null)
Parameters
Type Name Description
object input

The input.

IExecutionContext executionContext

The execution context.

Returns
Type Description
object

Result from execution.

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