gr.uoa.di.madgik.searchlibrary.operatorlibrary.booleancompare
Class BooleanOperator

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.booleancompare.BooleanOperator

public class BooleanOperator
extends Object

Author:
UoA

Field Summary
protected static String RSRecordName
          Name of the record element in the result set.
 
Constructor Summary
BooleanOperator()
           
 
Method Summary
 URI compareMe(URI[] locators, String expression, StatsContainer stats)
          Main service method.
 URI compareMe(URI[] locators, String expression, StatsContainer stats, long timeout, TimeUnit timeUnit)
          Main service method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RSRecordName

protected static String RSRecordName
Name of the record element in the result set.

Constructor Detail

BooleanOperator

public BooleanOperator()
Method Detail

compareMe

public URI compareMe(URI[] locators,
                     String expression,
                     StatsContainer stats)
              throws Exception
Main service method. Given a hypothesis expression and a set of RS eprs this service decides whether this hypothesis is true or not. It returns a new epr of an RS which only contains <BooleanResult> with boolean value. This version of the method uses the default timeout

Parameters:
eprs - An array of eprs of the services that participate in the hypothesis
expression - hypothesis expression
stats - used to populate statistics
timeout - The timeout which will be used both by the reader and the writer
timeUnit - The time unit of the timeout used
Returns:
RS epr
Throws:
Exception - in case of error

compareMe

public URI compareMe(URI[] locators,
                     String expression,
                     StatsContainer stats,
                     long timeout,
                     TimeUnit timeUnit)
              throws Exception
Main service method. Given a hypothesis expression and a set of RS eprs this service decides whether this hypothesis is true or not. It returns a new epr of an RS which only contains <BooleanResult> with boolean value. This version of the method allows timeout to be configured to the desired value

Parameters:
eprs - An array of eprs of the services that participate in the hypothesis
expression - hypothesis expression
stats - used to populate statistics
timeout - The timeout which will be used both by the reader and the writer
timeUnit - The time unit of the timeout used
Returns:
RS epr
Throws:
Exception - in case of error


Copyright © 2013. All Rights Reserved.