Class DataRangeBindingHelper

  • All Implemented Interfaces:
    BindingHelper

    public class DataRangeBindingHelper
    extends java.lang.Object
    implements BindingHelper

    Title: Data Range Binding Helper

    Copyright: Copyright (c) 2007

    Company: Clark & Parsia, LLC.

    Author:
    Ron Alford
    • Constructor Detail

      • DataRangeBindingHelper

        public DataRangeBindingHelper​(ABox abox,
                                      DataRangeAtom atom)
    • Method Detail

      • getPrerequisiteVars

        public java.util.Collection<AtomVariable> getPrerequisiteVars​(java.util.Collection<AtomVariable> bound)
        Specified by:
        getPrerequisiteVars in interface BindingHelper
        Returns:
        a set of variables which must be bound before this helper can generate bindings.
      • rebind

        public void rebind​(VariableBinding newBinding)
        Description copied from interface: BindingHelper
        Set the incoming binding for this helper. This fixes any variables that are already bound by a preceding Binding Helper.
        Specified by:
        rebind in interface BindingHelper
        Parameters:
        newBinding - Binding map. Implementation will copy map if needed.
      • selectNextBinding

        public boolean selectNextBinding()
        Description copied from interface: BindingHelper
        Selects the next binding.
        Specified by:
        selectNextBinding in interface BindingHelper
        Returns:
        True if a binding was available for this pattern given the initial binding. False otherwise. Will return if the binding is not set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object