gr.uoa.di.madgik.searchlibrary.operatorlibrary.booleancompare
Class BooleanOperator
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSRecordName
protected static String RSRecordName
- Name of the record element in the result set.
BooleanOperator
public BooleanOperator()
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
hypothesisexpression - hypothesis expressionstats - used to populate statisticstimeout - The timeout which will be used both by the reader and the writertimeUnit - 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
hypothesisexpression - hypothesis expressionstats - used to populate statisticstimeout - The timeout which will be used both by the reader and the writertimeUnit - The time unit of the timeout used
- Returns:
- RS epr
- Throws:
Exception - in case of error
Copyright © 2013. All Rights Reserved.