Package openllet.core.rules
Class DataRangeBindingHelper
- java.lang.Object
-
- openllet.core.rules.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 Summary
Constructors Constructor Description DataRangeBindingHelper(ABox abox, DataRangeAtom atom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AtomVariable>
getBindableVars(java.util.Collection<AtomVariable> bound)
java.util.Collection<AtomVariable>
getPrerequisiteVars(java.util.Collection<AtomVariable> bound)
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.java.lang.String
toString()
-
-
-
Constructor Detail
-
DataRangeBindingHelper
public DataRangeBindingHelper(ABox abox, DataRangeAtom atom)
-
-
Method Detail
-
getBindableVars
public java.util.Collection<AtomVariable> getBindableVars(java.util.Collection<AtomVariable> bound)
- Specified by:
getBindableVars
in interfaceBindingHelper
- Returns:
- a set of variables which this binding helper can bind.
-
getPrerequisiteVars
public java.util.Collection<AtomVariable> getPrerequisiteVars(java.util.Collection<AtomVariable> bound)
- Specified by:
getPrerequisiteVars
in interfaceBindingHelper
- 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 interfaceBindingHelper
- 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 interfaceBindingHelper
- Returns:
- True if a binding was available for this pattern given the initial binding. False otherwise. Will return if the binding is not set.
-
setCurrentBinding
public void setCurrentBinding(VariableBinding currentBinding)
Description copied from interface:BindingHelper
Set the variables this pattern uses in the given map.- Specified by:
setCurrentBinding
in interfaceBindingHelper
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-