com.clarkparsia.pellet.sparqldl.model
Class CoreImpl

java.lang.Object
  extended by com.clarkparsia.pellet.sparqldl.model.QueryAtomImpl
      extended by com.clarkparsia.pellet.sparqldl.model.CoreImpl
All Implemented Interfaces:
Core, QueryAtom

public class CoreImpl
extends QueryAtomImpl
implements Core

Title: Implementation of the Core of undistinguished variables.

Description:

Copyright: Copyright (c) 2007

Company: Clark & Parsia, LLC.

Author:
Petr Kremen

Constructor Summary
CoreImpl(java.util.List<aterm.ATermAppl> arguments, java.util.Collection<aterm.ATermAppl> uv, java.util.Collection<QueryAtom> atoms)
           
 
Method Summary
 QueryAtom apply(ResultBinding binding)
          Applies variable binding to the current atom and returns the result which might be same as the current atom.
 boolean equals(java.lang.Object obj)
           
 java.util.Collection<aterm.ATermAppl> getConstants()
           
 java.util.Collection<aterm.ATermAppl> getDistVars()
           
 java.util.Collection<aterm.ATermAppl> getUndistVars()
           
 int hashCode()
           
 
Methods inherited from class com.clarkparsia.pellet.sparqldl.model.QueryAtomImpl
getArguments, getPredicate, isGround, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.clarkparsia.pellet.sparqldl.model.QueryAtom
getArguments, getPredicate, isGround
 

Constructor Detail

CoreImpl

public CoreImpl(java.util.List<aterm.ATermAppl> arguments,
                java.util.Collection<aterm.ATermAppl> uv,
                java.util.Collection<QueryAtom> atoms)
Method Detail

getConstants

public java.util.Collection<aterm.ATermAppl> getConstants()
Specified by:
getConstants in interface Core

getDistVars

public java.util.Collection<aterm.ATermAppl> getDistVars()
Specified by:
getDistVars in interface Core

getUndistVars

public java.util.Collection<aterm.ATermAppl> getUndistVars()
Specified by:
getUndistVars in interface Core

apply

public QueryAtom apply(ResultBinding binding)
Description copied from class: QueryAtomImpl
Applies variable binding to the current atom and returns the result which might be same as the current atom. Current atom is not affected.

Specified by:
apply in interface QueryAtom
Overrides:
apply in class QueryAtomImpl
Parameters:
binding - QueryBinding to apply
Returns:
a query atom with applied query binding

hashCode

public int hashCode()
Overrides:
hashCode in class QueryAtomImpl

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class QueryAtomImpl


Copyright © 2004 Evren Sirin. All Rights Reserved.