Class MultiSuccessorList
Denotes a default implementation of a successor list
Implements
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class MultiSuccessorList : ISuccessorList
Properties
| Edit this page View SourceAllSuccessors
Declaration
public IEnumerable<INotifiable> AllSuccessors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INotifiable> |
Count
The number of elements
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
HasSuccessors
True, if there is any successor, otherwise False
Declaration
public bool HasSuccessors { get; }
Property Value
Type | Description |
---|---|
bool |
IsAttached
True, if successors are attached, otherwise False
Declaration
public bool IsAttached { get; }
Property Value
Type | Description |
---|---|
bool |
this[int]
Declaration
public INotifiable this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index |
Property Value
Type | Description |
---|---|
INotifiable |
Methods
| Edit this page View SourceGetSuccessor(int)
Gets the successor at the given index
Declaration
public INotifiable GetSuccessor(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index |
Returns
Type | Description |
---|---|
INotifiable | The DDG node with the given index |
Set(INotifiable)
Add the given DDG node to the list
Declaration
public void Set(INotifiable node)
Parameters
Type | Name | Description |
---|---|---|
INotifiable | node | The DDG node to add |
SetDummy()
Sets a dummy
Declaration
public void SetDummy()
Unset(INotifiable, bool)
Unset the given DDG node as successor
Declaration
public void Unset(INotifiable node, bool leaveDummy = false)
Parameters
Type | Name | Description |
---|---|---|
INotifiable | node | the DDG node |
bool | leaveDummy | True, to leave the dummy in operation, otherwise False |
UnsetAll()
Clear the list
Declaration
public void UnsetAll()
Events
| Edit this page View SourceAttached
Declaration
public event EventHandler Attached
Event Type
Type | Description |
---|---|
EventHandler |
Detached
Declaration
public event EventHandler Detached
Event Type
Type | Description |
---|---|
EventHandler |