Class AContextInit
Inherited Members
Namespace: Xareus.Scenarios.ContextInit
Assembly: Xareus.Scenarios.dll
Syntax
public abstract class AContextInit : AFunction
Constructors
AContextInit()
Base constructor for context init
Declaration
protected AContextInit()
AContextInit(Scenario, Dictionary<string, Parameter>, IContext)
Constructor for a context initializer
Declaration
protected AContextInit(Scenario scenario, Dictionary<string, Parameter> parameters, IContext externalContext)
Parameters
Type | Name | Description |
---|---|---|
Scenario | scenario | |
Dictionary<string, Parameter> | parameters | The parameters of the context initializer |
IContext | externalContext | The external context |
Properties
ExternalContext
The external context
Declaration
protected IContext ExternalContext { get; set; }
Property Value
Type | Description |
---|---|
IContext |
Scenario
Declaration
protected Scenario Scenario { get; set; }
Property Value
Type | Description |
---|---|
Scenario |
Methods
ContextInit()
Creates the scenario context.
Declaration
public abstract IContext ContextInit()
Returns
Type | Description |
---|---|
IContext | The scenario context |
FillParameters()
Fill the parameters of the effector. Should only be called when creating the effector as we run it right after
Declaration
public virtual void FillParameters()