Interface IScenarioEngine
Defines the interface to the #SEVEN scenario engine.
Namespace: Xareus.Scenarios.Unity
Assembly: Xareus.Scenarios.Unity.dll
Syntax
public interface IScenarioEngine
Properties
Ready
Is the scenario engine ready to be used?
Declaration
bool Ready { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
AddRealizationExecuted(XURealization)
Informs the scenario engine of the execution of a realization.
Declaration
void AddRealizationExecuted(XURealization xuRealization)
Parameters
Type | Name | Description |
---|---|---|
XURealization | xuRealization | The realization |
AddRealizationExecuted(XURealization, Action)
Informs the scenario engine of the execution of a realization.
Declaration
void AddRealizationExecuted(XURealization xuRealization, Action resultCallback)
Parameters
Type | Name | Description |
---|---|---|
XURealization | xuRealization | The realization |
Action | resultCallback | Returns on completion. |
GetEnabledTransitions()
Get the transitions that are enabled (i.e. all of their upstream places have a token)
Declaration
IEnumerable<Transition> GetEnabledTransitions()
Returns
Type | Description |
---|---|
IEnumerable<Transition> |
GetEnabledTransitions(Action<IEnumerable<Transition>>)
Get the transitions that are enabled (i.e. all of their upstream places have a token)
Declaration
void GetEnabledTransitions(Action<IEnumerable<Transition>> resultCallback)
Parameters
Type | Name | Description |
---|---|---|
Action<IEnumerable<Transition>> | resultCallback |
GetRealizationsToExecute(Action<List<XURealization>>)
Gets the realizations which the scenario engine ordered the execution.
Declaration
void GetRealizationsToExecute(Action<List<XURealization>> resultCallback)
Parameters
Type | Name | Description |
---|---|---|
Action<List<XURealization>> | resultCallback | Returns the realizations. |
GetRealizationsToPropose()
Gets the realizations that correspond to the currently active relation sensors
Declaration
List<XURealization> GetRealizationsToPropose()
Returns
Type | Description |
---|---|
List<XURealization> |
GetRealizationsToPropose(Action<List<XURealization>>)
Gets the realizations that correspond to the currently active relation sensors
Declaration
void GetRealizationsToPropose(Action<List<XURealization>> resultCallback)
Parameters
Type | Name | Description |
---|---|---|
Action<List<XURealization>> | resultCallback | Returns the realizations. |
NextStep(Action<bool>)
Performs a step of the execution of the scenario.
Declaration
void NextStep(Action<bool> resultCallback)
Parameters
Type | Name | Description |
---|---|---|
Action<bool> | resultCallback | Returns |