Access keys

FlowTreeNode

Kind of class: class
Inherits from: TreeNode
Version: 20 July 2005
Author: Arthur Clemens
Classpath: playground.classes.data.tree.FlowTreeNode
File last modified: Wednesday, 13 September 2006, 11:43:37
FlowTreeNode is an instruction storage class used by FlowController.

This is a typical instruction line:
question2, label=This is question 2, text="Was Mick Jagger the lead singer of the Beatles?", type=condition, yes=trunk1end, no=screen5
FlowTreeNode lists a number of reserved instruction attributes:Other attributes can be used, with arbitrary names. For instance, you might want to use the attributes wrong and right:
question2, label=This is question 2, text="Was Mick Jagger the lead singer of the Beatles?", type=condition, wrong=trunk1end, right=screen5
The attribute values of these names can be retrieved with TreeNode.getValueForKey.

Constructor

FlowTreeNode

function FlowTreeNode (
inName:String, inProperties:KeyValueList)
Creates a new FlowTreeNode.

Instance properties

await

await:String
(read)
The node's await attribute.

conditions

conditions:Array
(read)
The node's evaluate conditions attribute.

label

label:String
(read)
The node's label attribute.

method

method:String
(read)
The node's method attribute.

parameters

parameters:Array
(read)
The node's method parameters attribute.

text

text:String
(read)
The node's text attribute.

timeout

timeout:String
(read)
The node's timeout attribute.

type

type:String
(read)
The node's type attribute. Possible types:
  • condition
  • action
  • await
  • exit
See FlowController.run to see how FlowController deals with these types.

Instance methods