aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/startingnode.cpp
blob: 42fba6fb284e1597565faefb987c8b35233c03c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "startingnode.h"
#include <QDebug>

StartingNode::StartingNode()
{

}
void StartingNode::run(ExecutionNode*)
{
	m_previousNode = NULL;
    if(NULL!=m_nextNode)
    {
        m_nextNode->run(this);
    }
}
QString StartingNode::toString(bool withlabel) const
{
	if(withlabel)
	{
		return QString("%1 [label=\"StartingNode\"]").arg(m_id);
	}
	else
	{
		return m_id;
	}
}


qint64 StartingNode::getPriority() const
{
    qint64 priority=0;
    if(NULL!=m_nextNode)
    {
        priority = m_nextNode->getPriority();
    }


    return priority;
}