operator
Class TUFFYOperator

java.lang.Object
  extended by java.lang.Thread
      extended by dstruct.StatOperator
          extended by operator.TUFFYOperator
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable

public class TUFFYOperator
extends StatOperator

A Tuffy operator in Felix.

Author:
Ce Zhang

Nested Class Summary
 
Nested classes/interfaces inherited from class dstruct.StatOperator
StatOperator.OPType
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  grounding.Grounding grounding
          The grounding worker of this Tuffy operator.
(package private)  mln.MarkovLogicNetwork mln
          Markov logic network used by this Tuffy operator.
 
Fields inherited from class dstruct.StatOperator
allDMOs, allRelevantFelixClause, belongsToBucket, clauseConstraints, dataCrackerSignature, db, fq, inputPredicates, isMarginal, options, outputPredicates, partitionedInto, precedence, type
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TUFFYOperator(FelixQuery _fq, java.util.HashSet<FelixPredicate> _goalPredicates, parser.CommandOptions _opt)
          The constructor of TUFFYOperator.
 
Method Summary
 java.lang.String explain()
          Human-readable representation of the logic plan.
 void prepare()
          Generate the operator-specified logic plan, i.e., all data movement operators that will be used for inference.
 void run()
          Method that executes this operator.
 
Methods inherited from class dstruct.StatOperator
clone, getAllDMOs, getPrecedence, getTargetPredicateIfHasOnlyOne, toString, translateFelixClasesIntoFactorGraphEdgeQueries
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

grounding

grounding.Grounding grounding
The grounding worker of this Tuffy operator.


mln

mln.MarkovLogicNetwork mln
Markov logic network used by this Tuffy operator.

Constructor Detail

TUFFYOperator

public TUFFYOperator(FelixQuery _fq,
                     java.util.HashSet<FelixPredicate> _goalPredicates,
                     parser.CommandOptions _opt)
The constructor of TUFFYOperator.

Parameters:
_fq - Felix query.
_goalPredicates - target predicates of this coref operator.
_opt - Command line options of this Felix run.
Method Detail

prepare

public void prepare()
Description copied from class: StatOperator
Generate the operator-specified logic plan, i.e., all data movement operators that will be used for inference. This function should be invoked after a new instance of operator is created. Any valid Felix operator should implement this method.

Specified by:
prepare in class StatOperator

run

public void run()
Description copied from class: StatOperator
Method that executes this operator. Any valid Felix operator should implement this method.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class StatOperator

explain

public java.lang.String explain()
Description copied from class: StatOperator
Human-readable representation of the logic plan. Any valid Felix operator should implement this method. TODO: need to think out a better to explain physical plan. (e.g., a graph?)

Specified by:
explain in class StatOperator