Packages

c

com.jafpl.graph

OptionBinding

class OptionBinding extends Binding

An option binding.

When pipelines are constructed, option bindings associate expressions with variable names. At runtime, the association is between the name and its computed value.

An OptionBinding is just like a Binding except that a specific, computed value may be provided before the graph begins executing. In that case, the provided value is used and the expression is not evaluated.

Linear Supertypes
Binding, AtomicNode, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionBinding
  2. Binding
  3. AtomicNode
  4. Node
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OptionBinding(graph: Graph, name: String, expression: Any, params: Option[BindingParams])

    Use the addBinding() method on com.jafpl.graph.ContainerStart to construct a binding.

    Use the addBinding() method on com.jafpl.graph.ContainerStart to construct a binding.

    graph

    The graph into which this node is to be inserted.

    name

    The variable's name

    expression

    Its initializer expression

    Attributes
    protected[com.jafpl]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val _label: String
    Attributes
    protected
    Definition Classes
    Binding
  5. var _start: Option[ContainerStart]
    Attributes
    protected
    Definition Classes
    Binding
  6. val _staticBindings: HashMap[Binding, Message]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  7. var _value: Option[Any]
  8. def addInputInjectable(injectable: PortInjectable): Unit
    Definition Classes
    Node
  9. def addOutputInjectable(injectable: PortInjectable): Unit
    Definition Classes
    Node
  10. def addStepInjectable(injectable: StepInjectable): Unit
    Definition Classes
    Node
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def bindingFor: Node
    Definition Classes
    Binding
  13. def bindings: Set[String]

    The names of this step's variable bindings.

    The names of this step's variable bindings.

    This method returns the names of the variables for which this step will receive bindings at runtime.

    returns

    The variable names.

    Definition Classes
    Node
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. def dependsOn(node: Node): Unit

    Add a dependency edge.

    Add a dependency edge.

    This method asserts that the current node depends on another node. Ordinarily, data flow establishes dependencies automatically. If step A consumes the output of step B, the pipeline will assure that step B runs before step A.

    In cases where there is no data flow dependency, but it's still necessary to force an order, you can impose one by saying that A.dependsOn(B).

    node

    The node in the graph which must be run before this one

    Definition Classes
    Node
  16. def dumpClosed(depth: Int): Elem
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  17. def dumpClosedChildren(depth: Int): scala.xml.Node
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  18. def dumpOpen(depth: Int): Elem
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  19. def dumpOpenChildren(depth: Int): scala.xml.Node
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. val expression: Any
    Definition Classes
    OptionBindingBinding
  23. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. val graph: Graph
    Definition Classes
    OptionBindingBindingAtomicNodeNode
  26. def hasOutputEdge(port: String): Boolean
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. val id: String

    A unique identifier for this node.

    A unique identifier for this node.

    Every node has a unique identifier.

    Definition Classes
    Node
  29. val inputCardinalities: HashMap[String, Long]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  30. def inputEdge(port: String): Edge
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  31. val inputInjectables: ListBuffer[PortInjectable]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  32. def inputs: Set[String]

    The names of this step's input ports.

    The names of this step's input ports.

    returns

    The input port names.

    Definition Classes
    Node
  33. def internal_name: String
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  34. def internal_name_=(newname: String): Unit
    Attributes
    protected[com.jafpl.graph]
    Definition Classes
    Node
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def label: String

    The node label.

    The node label.

    Labels are used in output to help identify the node in question. The id of the node is always appended to the label.

    Definition Classes
    BindingNode
  37. def location: Option[Location]

    The node's location.

    The node's location.

    The node location will be used for reporting (for example in errors).

    Definition Classes
    Node
  38. def location_=(loc: Location): Unit
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  39. val logger: Logger
    Attributes
    protected
    Definition Classes
    Node
  40. def manifold: Option[ManifoldSpecification]
    Definition Classes
    Node
  41. def manifold_=(man: ManifoldSpecification): Unit
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  42. val name: String
    Definition Classes
    OptionBindingBinding
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. val outputCardinalities: HashMap[String, Long]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  47. def outputEdge(port: String): Edge
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  48. val outputInjectables: ListBuffer[PortInjectable]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  49. def outputs: Set[String]

    The names of this step's output ports.

    The names of this step's output ports.

    returns

    The output port names.

    Definition Classes
    BindingNode
  50. val params: Option[BindingParams]
    Definition Classes
    OptionBindingBinding
  51. def parent: Option[ContainerStart]

    This node's parent.

    This node's parent.

    returns

    This node's parent.

    Definition Classes
    Node
  52. def state: NodeState
    Definition Classes
    Node
  53. def stateTransition(newState: NodeState): Unit
    Definition Classes
    Node
  54. def staticBindings: Map[Binding, Message]
    Definition Classes
    Node
  55. def staticBindings_=(bindings: Map[Binding, Message]): Unit

    Specify the static bindings that are in scope for this node.

    Specify the static bindings that are in scope for this node.

    Static bindings are known at "compile time" and don't appear in the graph. (You aren't required to have statics in your graph.)

    This method provides the node with the set of static bindings that are in-scope.

    bindings

    The static bindings that are in-scope for this node.

    Definition Classes
    Node
  56. val step: Option[Step]
    Definition Classes
    AtomicNodeNode
  57. val stepInjectables: ListBuffer[StepInjectable]
    Attributes
    protected[com.jafpl]
    Definition Classes
    Node
  58. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  59. def toString(): String

    A string representation of this node.

    A string representation of this node.

    Definition Classes
    BindingNode → AnyRef → Any
  60. val userLabel: Option[String]
    Definition Classes
    AtomicNodeNode
  61. def value: Option[Any]
  62. def value_=(value: Any): Unit
  63. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Binding

Inherited from AtomicNode

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped