24 package org.lightjason.agentspeak.language.unify;
26 import com.codepoetics.protonpack.StreamUtils;
33 import java.util.stream.Stream;
43 public final <T extends ITerm>
boolean unify(
final Set<
IVariable<?>> p_variables,
final Stream<T> p_source,
final Stream<T> p_target )
45 return StreamUtils.zip(
51 if ( ( t instanceof
IVariable<?> ) && ( s instanceof IVariable<?> ) )
54 ( (IVariable<?>) t ).mutex()
62 if ( t instanceof IVariable<?> )
interface of an unification algorithm
unify on at hash-based quality
class for a mutex relocated variable
class for a relocated variable
final< T extends ITerm > boolean unify(final Set< IVariable<?>> p_variables, final Stream< T > p_source, final Stream< T > p_target)
unify algorithm