Class ExternalScenario
An external scenario is a special kind of complexe sequence created from a full scenario file.
Inheritance
ExternalScenario
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
public class ExternalScenario : ProxySequence
Constructors
ExternalScenario(string, string)
Declaration
public ExternalScenario(string id, string label = "")
Parameters
Type |
Name |
Description |
string |
id |
The Id must be unique
|
string |
label |
The label (optional)
|
Properties
FileAbsolutePath
Get the file path abstolute path using the root scenario file as reference
Declaration
public string FileAbsolutePath { get; }
Property Value
FileRelativeToParent
Get the file path relative to the parent scenario
Declaration
public string FileRelativeToParent { get; }
Property Value
FileRelativeToRoot
Get the file path relative to the root scenario
Declaration
public string FileRelativeToRoot { get; }
Property Value
Functions
Declaration
public override IEnumerable<Function> Functions { get; }
Property Value
Overrides
Loaded
Declaration
public bool Loaded { get; }
Property Value
LocalFunctions
Declaration
public override IEnumerable<Function> LocalFunctions { get; }
Property Value
Overrides
Scenario
The scenario (null if not loaded)
Declaration
public Scenario Scenario { get; set; }
Property Value
ScenarioFile
The scenario file path (when setting: relative to parent scenario or absolute, when getting: relative to parent scenario only)
Declaration
public string ScenarioFile { get; set; }
Property Value
SubSequences
Declaration
public override IEnumerable<ASequence> SubSequences { get; }
Property Value
Overrides
file
Declaration
public virtual string file { get; set; }
Property Value
Methods
AddToken(IContext)
Declaration
public override void AddToken(IContext token)
Parameters
Overrides
Apply the configuration. During this step, the configuration context of the parent sequence is used to create the configuration context of the current sequence
The Configuration context used by the function comes from the parent sequence of the current sequence
The Configuration context returned by the function is used by the current sequence
Declaration
public override void Configure()
Overrides
GetToken()
Declaration
public override IContext GetToken()
Returns
Overrides
HasReachedFinalState()
Declaration
public override bool HasReachedFinalState()
Returns
Overrides
HasToken()
Declaration
public override bool HasToken()
Returns
Overrides
ImportConfigurationFromScenario()
Import (i.e. copy) the configuration function from the scenario into this external scenario node
Declaration
public void ImportConfigurationFromScenario()
RemoveToken()
Declaration
public override void RemoveToken()
Overrides
Extension Methods