Aimsun Next Scripting
24.0
|
Public Member Functions | |
NodeCompositor (FourStepsExperiment *iExperiment) | |
~NodeCompositor () | |
void | addNode (NodeCompute *iNode) |
bool | addConnection (NodeConnection *iConnection) |
NodeCompute * | getNode (qint32 storeId) const |
std::vector< FourStepLoop * > | getLoops () const |
void | removeNode (NodeCompute *iNode) |
void | removeConnection (NodeConnection *iConnection) |
const QVector< NodeCompute * > & | getNodes () |
const QVector< NodeConnection * > & | getConnections () |
NodeCompute * | findImplicitLoop (const QVector< NodeCompute * > &iNodes) const |
This class is the four-step model diagram in the four-step model experiment: it's a container of the nodes (NodeCompute) and their connections (NodeConnection). It defines a graph which is used in the FourStepsExperiment to determine the execution order of the different nodes included.
NodeCompositor::NodeCompositor | ( | FourStepsExperiment * | iExperiment | ) |
NodeCompositor::~NodeCompositor | ( | ) |
bool NodeCompositor::addConnection | ( | NodeConnection * | iConnection | ) |
Adds the connection to the compositor.
void NodeCompositor::addNode | ( | NodeCompute * | iNode | ) |
Adds the node to the compositor.
NodeCompute * NodeCompositor::findImplicitLoop | ( | const QVector< NodeCompute * > & | iNodes | ) | const |
If the nodes form a loop, returns the first node found of this loop.
const QVector< NodeConnection * > & NodeCompositor::getConnections | ( | ) |
Gets the nodes included in the compositor.
std::vector< FourStepLoop * > NodeCompositor::getLoops | ( | ) | const |
Gets the loop nodes in the compositor.
NodeCompute * NodeCompositor::getNode | ( | qint32 | storeId | ) | const |
Gets the node in the compositor from its storeId.
const QVector< NodeCompute * > & NodeCompositor::getNodes | ( | ) |
Gets the connections included in the compositor.
void NodeCompositor::removeConnection | ( | NodeConnection * | iConnection | ) |
Removes the connection from the compositor.
void NodeCompositor::removeNode | ( | NodeCompute * | iNode | ) |
Removes the node from the compositor.