Collapse All Expand All

C#

Clarion Library 6.1.1
AgentInitializer..::..InitializeImplicitDecisionNetwork<(Of <(<'T>)>)> Method
AgentInitializer Class Example See Also Send Feedback

[This is preliminary documentation and is subject to change.]

Initializes an ImplicitComponent of the specified type (to be placed in the bottom level of the ACS upon being committed)

Namespace: Clarion
Assembly: ClarionLibrary (in ClarionLibrary.dll) Version: 6.1.1.0 (6.1.1.0)

# Syntax

C#
    public static T InitializeImplicitDecisionNetwork<T>(
    	Agent destination,
    	IimplicitComponentFactory<T> factory,
    	params Object[] parameters
    )
    where T : ImplicitComponent

#### Parameters

destination
  Type: Clarion.Framework..::..Agent
  The agent in whom the component is being attached

factory
  Type: Clarion.Framework.Templates..::..IimplicitComponentFactory<(Of <(<'T>)>)>
  The factory to use to generate the implicit component

parameters
  Type: array<System..::..Object>[]()[][]
  (optional) Any parameters that may be needed by the factory in order to initialize the component.
  To find-out the list of required and optional parameters, please consult the documentation of the factory for the component being generated

# Type Parameters

T
  The type of implicit component that is to be initialized

#### Return Value

An implicit component of the type specified initialized within the agent specified

# Remarks

Caution
Don't forget that the component being initialized by this method MUST be committed to the agent in which it was initialized! Failure to do so WILL result in an error!

# Examples

CopyC#

    SimplifiedQBPNetwork net = AgentInitializer.InitializeImplicitDecisionNetwork(John, SimplifiedQBPNetwork.Factory);

    //Elided code further initializing the network

    John.Commit(net);

# See Also

AgentInitializer Class
Clarion Namespace