main
Class Felix

java.lang.Object
  extended by main.Felix

public class Felix
extends java.lang.Object

Felix, an operator-based statistical inference system.

Author:
Ce Zhang

Field Summary
(package private)  db.RDB db
          Database connection.
(package private)  FelixQuery fq
          Felix's query, which consists of program, query and evidence.
 boolean hasLoadedEvidence
          Whether this Felix object run has loaded evidences.
(package private)  parser.CommandOptions options
          Command line option.
(package private)  StaticAnalyzer sa
          Static Analyzer, which analyzes the property of each predicates according to rules.
 
Constructor Summary
Felix()
           
 
Method Summary
 FelixQuery getFelixQuery()
          Return Felix's query.
 void init()
          Clear static parameters and initialize variables.
 void loadEvidence()
          Load evidence from evidence from to database table.
 void parseFelixQuery()
          Load Felix query from program and query file.
 void run(java.lang.String[] args)
          Run Felix!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fq

FelixQuery fq
Felix's query, which consists of program, query and evidence.


sa

StaticAnalyzer sa
Static Analyzer, which analyzes the property of each predicates according to rules.


db

db.RDB db
Database connection.


options

parser.CommandOptions options
Command line option.


hasLoadedEvidence

public boolean hasLoadedEvidence
Whether this Felix object run has loaded evidences.

Constructor Detail

Felix

public Felix()
Method Detail

getFelixQuery

public FelixQuery getFelixQuery()
Return Felix's query.

Returns:

init

public void init()
Clear static parameters and initialize variables.


parseFelixQuery

public void parseFelixQuery()
Load Felix query from program and query file. If -useEvid is used, evidence file will also be loaded by this function.


loadEvidence

public void loadEvidence()
Load evidence from evidence from to database table.


run

public void run(java.lang.String[] args)
Run Felix!

Parameters:
args - Command line options.