org.semanticweb.elk.owl
Class ElkAxiomBuffer

java.lang.Object
  extended by org.semanticweb.elk.owl.ElkAxiomBuffer
All Implemented Interfaces:
ElkAxiomProcessor

public class ElkAxiomBuffer
extends Object
implements ElkAxiomProcessor

Simple ElkAxiomProcessor that merely buffers axioms to send them to another processor later on. This is useful for performance measurements, in particular for decoupling parsing time from indexing time. It can also be used for re-using the same set of axioms in more than one place without having to re-parse them again.

Author:
Markus Kroetzsch

Field Summary
protected  ArrayList<ElkAxiom> axioms
           
 
Constructor Summary
ElkAxiomBuffer()
           
 
Method Summary
 void sendAxiomsToProcessor(ElkAxiomProcessor elkAxiomProcessor)
          Send all axioms that have hitherto been processed by this object to the given axiom processor.
 void visit(ElkAxiom elkAxiom)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axioms

protected final ArrayList<ElkAxiom> axioms
Constructor Detail

ElkAxiomBuffer

public ElkAxiomBuffer()
Method Detail

visit

public void visit(ElkAxiom elkAxiom)
Specified by:
visit in interface ElkAxiomProcessor

sendAxiomsToProcessor

public void sendAxiomsToProcessor(ElkAxiomProcessor elkAxiomProcessor)
Send all axioms that have hitherto been processed by this object to the given axiom processor.

Parameters:
elkAxiomProcessor -


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