org.omwg.logicalexpression.terms
Interface Visitor


public interface Visitor

This interface represents a visitor for the terms of a logical expression tree structure.

The visitor design pattern is a way of separating an algorithm from an object structure. A practical result of this separation is the ability to add new operations to existing object structures without modifying those structures.

The idea is to use a structure of element classes, each of which has an accept method that takes a visitor object as an argument. The visitor is an interface that has a different visit() method for each element class. The accept() method of an element class calls back the visit() method for its class. Separate concrete visitor classes can then be written that perform some particular operations.

Version:
$Revision: 1030 $ $Date: 2005-09-21 11:15:39 +0300 (Wed, 21 Sep 2005) $
Author:
DERI Innsbruck, reto.krummenacher@deri.org
See Also:
Visitor Pattern

Method Summary
 void visitComplexDataValue(ComplexDataValue t)
           
 void visitConstructedTerm(ConstructedTerm t)
           
 void visitIRI(IRI t)
           
 void visitNumberedID(NumberedAnonymousID t)
           
 void visitSimpleDataValue(SimpleDataValue t)
           
 void visitUnnumberedID(UnnumberedAnonymousID t)
           
 void visitVariable(Variable t)
           
 

Method Detail

visitConstructedTerm

void visitConstructedTerm(ConstructedTerm t)
Parameters:
t - ConstructedTerm

visitVariable

void visitVariable(Variable t)
Parameters:
t - Variable

visitSimpleDataValue

void visitSimpleDataValue(SimpleDataValue t)
Parameters:
t - DataValue

visitComplexDataValue

void visitComplexDataValue(ComplexDataValue t)
Parameters:
t - DataValue

visitUnnumberedID

void visitUnnumberedID(UnnumberedAnonymousID t)
Parameters:
t - UnNbAnonymousID

visitNumberedID

void visitNumberedID(NumberedAnonymousID t)
Parameters:
t - NbAnonymousID

visitIRI

void visitIRI(IRI t)
Parameters:
t - IRI


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.