x4Trace Documentation v1.0
|
Represents the controller of flow. More...
Public Member Functions | |
FlowController () | |
Constructor. | |
Block | CreateBlock (BlockDescriptor blockDescriptor) |
Creates block by descriptor. | |
Block | CreateBlock (Block blockOriginal) |
Creates block by existing block. | |
void | AddBlock (Block block) |
Adds block. | |
Connection | AddConnection (Port sourcePort, Port destinationPort) |
Creates a connection between blocks. | |
void | CreateConnections (List< ConnectionDescriptor > descriptors) |
Creates a connections between blocks by descriptors. | |
void | RemoveBlock (Block block) |
Removes block. | |
Block | GetBlock (int blockID) |
Returns block by ID. | |
Properties | |
int | Count [get] |
Count of blocks. | |
Block | this[int index] [get] |
Indexer of blocks. | |
string | Name [get, set] |
Name of flow. | |
Events | |
BlockCreated | BlockCreated |
Event of block created. | |
Private Attributes | |
string | name = "" |
Name of the flow. | |
List< Block > | blockList |
List of blocks. | |
int | currentBlockID = 1 |
Latest block ID. | |
Represents the controller of flow.
void FlowLib.Engine.FlowController.AddBlock | ( | Block | block | ) |
Adds block.
block |
Connection FlowLib.Engine.FlowController.AddConnection | ( | Port | sourcePort, |
Port | destinationPort ) |
Creates a connection between blocks.
sourcePort | Source port. |
destinationPort | Destination port. |
ConnectionIsExistException | Excepption when connection is exist. |
Creates block by existing block.
blockDescriptor | Descriptor. |
Block FlowLib.Engine.FlowController.CreateBlock | ( | BlockDescriptor | blockDescriptor | ) |
Creates block by descriptor.
blockDescriptor | Descriptor. |
void FlowLib.Engine.FlowController.CreateConnections | ( | List< ConnectionDescriptor > | descriptors | ) |
Creates a connections between blocks by descriptors.
descriptors | List of descriptors. |
Block FlowLib.Engine.FlowController.GetBlock | ( | int | blockID | ) |
Returns block by ID.
blockID | ID of block. |
void FlowLib.Engine.FlowController.RemoveBlock | ( | Block | block | ) |
Removes block.
block | The block. |
|
get |
Indexer of blocks.
index | Index of block. |