blob: 15ea053a1dc1cb3f2dc6619a0abaa58e9e59c9a7 (
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
|
#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 "StartingNode [shape=box]";
else
return "StartingNode";
}
}
qint64 StartingNode::getPriority() const
{
qint64 priority=0;
if(NULL!=m_nextNode)
{
priority = m_nextNode->getPriority();
}
return priority;
}
|