org.semanticweb.elk.reasoner.taxonomy.hashing
Class TypeNodeHasher

java.lang.Object
  extended by org.semanticweb.elk.reasoner.taxonomy.hashing.TypeNodeHasher
All Implemented Interfaces:
Hasher<TypeNode<? extends ElkEntity,? extends ElkEntity>>

public class TypeNodeHasher
extends Object
implements Hasher<TypeNode<? extends ElkEntity,? extends ElkEntity>>

Helper class for hashing TypeNodes based on getMembers(), getDirectSubNodes(), getDirectSuperNodes(), and getDirectInstanceNodes().

Author:
Frantisek Simancik

Field Summary
static TypeNodeHasher INSTANCE
          We use one static instance for hashing all nodes.
 
Method Summary
 int hash(TypeNode<? extends ElkEntity,? extends ElkEntity> node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static TypeNodeHasher INSTANCE
We use one static instance for hashing all nodes.

Method Detail

hash

public int hash(TypeNode<? extends ElkEntity,? extends ElkEntity> node)
Specified by:
hash in interface Hasher<TypeNode<? extends ElkEntity,? extends ElkEntity>>


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.