edu.umass.cs.sase.engine
Class EngineController

java.lang.Object
  extended by edu.umass.cs.sase.engine.EngineController

public class EngineController
extends java.lang.Object

This class is used to wrap the Engine class, such that when you write code, you can quickly locate the related methods.

Author:
haopeng

Constructor Summary
EngineController()
          Default constructor.
EngineController(java.lang.String engineType)
          Constructor, can set different kinds of engines by different parameters
 
Method Summary
 void initializeEngine()
          Initializes the engine
 void runEngine()
          starts to run the engine
 void setInput(Stream input)
          Sets the input stream for the engine
 void setNfa(java.lang.String nfaLocation)
          Sets the nfa for the engine.
 void setNfa(java.lang.String selectionStrategy, java.lang.String nfaLocation)
          Sets the nfa and selection strategy for the engine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineController

public EngineController()
Default constructor.


EngineController

public EngineController(java.lang.String engineType)
Constructor, can set different kinds of engines by different parameters

Parameters:
engineType - specifies the engine type, currently supports "sharingengine"
Method Detail

initializeEngine

public void initializeEngine()
Initializes the engine


setNfa

public void setNfa(java.lang.String selectionStrategy,
                   java.lang.String nfaLocation)
Sets the nfa and selection strategy for the engine

Parameters:
selectionStrategy - the selection strategy
nfaLocation - the nfa file for the query

setNfa

public void setNfa(java.lang.String nfaLocation)
Sets the nfa for the engine.

Parameters:
nfaLocation - the nfa file for the query

setInput

public void setInput(Stream input)
Sets the input stream for the engine

Parameters:
input - the input stream

runEngine

public void runEngine()
               throws java.lang.CloneNotSupportedException,
                      net.sourceforge.jeval.EvaluationException
starts to run the engine

Throws:
java.lang.CloneNotSupportedException
net.sourceforge.jeval.EvaluationException