Class SMTransition
Inherited Members
Namespace: Xareus.Scenarios
Assembly: Xareus.Scenarios.dll
Syntax
[Serializable]
[TypeConverter(typeof(SMTransitionConverter))]
public class SMTransition : Transition
Constructors
SMTransition()
Constructor
Declaration
public SMTransition()
SMTransition(string, string)
Constructor
Declaration
public SMTransition(string id, string label = "")
Parameters
Type | Name | Description |
---|---|---|
string | id | The Id must be unique |
string | label | The label (optional) |
Fields
internalDownstreamState
Declaration
protected State internalDownstreamState
Field Value
Type | Description |
---|---|
State |
Properties
DownstreamState
Declaration
public State DownstreamState { get; set; }
Property Value
Type | Description |
---|---|
State |
Enabled
Checks whether the transition is enabled (i.e. its upstream places all have a token).
Declaration
public override bool Enabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
downstreamState
Declaration
public virtual Reference downstreamState { get; set; }
Property Value
Type | Description |
---|---|
Reference |
Methods
AddDownstreamSequence(ASequence)
Adds the given sequence in the downstream list of the transition
Declaration
public override void AddDownstreamSequence(ASequence sequence)
Parameters
Type | Name | Description |
---|---|---|
ASequence | sequence |
Overrides
AddUpstreamSequence(ASequence)
Adds the given sequence in the upstream list of the transition
Declaration
public override void AddUpstreamSequence(ASequence sequence)
Parameters
Type | Name | Description |
---|---|---|
ASequence | sequence |
Overrides
MergeTokens()
On a state machine, this method consists in simply returning the token of the only upstream sequence. No merge is involved
Declaration
protected override IContext MergeTokens()
Returns
Type | Description |
---|---|
IContext |
Overrides
RemoveDownstreamSequence(ASequence)
Removes the given sequence from the downstream list of the transition
Declaration
public override void RemoveDownstreamSequence(ASequence sequence)
Parameters
Type | Name | Description |
---|---|---|
ASequence | sequence |
Overrides
RenameDownstreamSequence(string, string)
Renames the downstream sequence if it is the one to rename
Declaration
public override void RenameDownstreamSequence(string previousId, string newId)
Parameters
Type | Name | Description |
---|---|---|
string | previousId | |
string | newId |
Overrides
SetTokenMerge()
Declaration
protected override void SetTokenMerge()