public class ObjectVariableBindingHelper extends Object implements BindingHelper
Title: Object Variable Binding Helper
Description: A binding helper that will iterate over all named individuals in the abox.
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
ObjectVariableBindingHelper(ABox abox,
AtomIVariable var) |
| Modifier and Type | Method and Description |
|---|---|
Collection<AtomIVariable> |
getBindableVars(Collection<AtomVariable> bound)
Returns a set of variables which this binding helper can bind.
|
Collection<AtomIVariable> |
getPrerequisiteVars(Collection<AtomVariable> bound)
Returns a set of variables which must be bound before this helper can generate bindings.
|
void |
rebind(VariableBinding newBinding)
Set the incoming binding for this helper.
|
boolean |
selectNextBinding()
Selects the next binding.
|
void |
setCurrentBinding(VariableBinding currentBinding)
Set the variables this pattern uses in the given map.
|
String |
toString() |
public ObjectVariableBindingHelper(ABox abox, AtomIVariable var)
public Collection<AtomIVariable> getBindableVars(Collection<AtomVariable> bound)
BindingHelpergetBindableVars in interface BindingHelperpublic Collection<AtomIVariable> getPrerequisiteVars(Collection<AtomVariable> bound)
BindingHelpergetPrerequisiteVars in interface BindingHelperpublic void rebind(VariableBinding newBinding)
BindingHelperrebind in interface BindingHelpernewBinding - Binding map. Implementation will
copy map if needed.public boolean selectNextBinding()
BindingHelperselectNextBinding in interface BindingHelperpublic void setCurrentBinding(VariableBinding currentBinding)
BindingHelpersetCurrentBinding in interface BindingHelperCopyright © 2019. All rights reserved.