LogicEngine.SetModelInputPortValue Method (Guid, Guid, Double)

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Logic.Engine Namespace > LogicEngine Class > LogicEngine Methods > SetModelInputPortValue Method  >

LogicEngine.SetModelInputPortValue Method (Guid, Guid, Double)

Sets the value of a specified input port for a given model instance.

Namespace: BNCS.Logic.Engine
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public static bool SetModelInputPortValue(
 Guid modelId,
 Guid inputId,
 double value
)

Parameters

modelId

Type: Guid
The unique identifier of the model instance.

inputId

Type: Guid
The unique identifier of the input port within the model instance.

value

Type: Double
The value to set for the specified input port.

Return Value

Returns true if the input port value is successfully set; otherwise, throws an exception if the model or input port is not found.

 

Exceptions


Exception

Condition

[KeyNotFoundException]

Thrown when the specified model or input port is not found.

 

See Also


LogicEngine Class

SetModelInputPortValue Overload

BNCS.Logic.Engine Namespace