edu.vt.marian.server
Class match

java.lang.Object
  |
  +--edu.vt.marian.server.match

public class match
extends java.lang.Object

class name: match class description: this class parses the query strings and provides information for query. uses the services of class(es): designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu) implementator(s): Jian Zeng (jizeng@vt.edu) finished time: known bugs: JDK version: 1.1.7A side effects:


Field Summary
static int INVALID_PARSER_FLAG
          define return value for method get_inexact_parser_flag and get_exact_parser_flag
static int NULL_DATA
          data from coverage string pair is null
static int SUCCESS
          define returned constants
 
Constructor Summary
match(edu.vt.marian.common.Debug debug)
          method description: this constructor will create a match object with empty exact and inexact string.
 
Method Summary
 int add(coverage_string_pair csp)
          method description: this method constructs exact or inexact string from the converage string pair.
 int get_cover_conference_author_flag()
          method description: this method will return the value of the cover conference author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover conference author flag synchronization consideration: none
 int get_cover_corporate_author_flag()
          method description: this method will return the value of the cover corporate author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover corporate author flag synchronization consideration: none
 int get_cover_notes_flag()
          method description: this method will return the value of the cover notes flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover notes flag synchronization consideration: none
 int get_cover_personal_author_flag()
          method description: this method will return the value of the cover personal author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover personal author flag synchronization consideration: none
 int get_cover_subject_entry_flag()
          method description: this method will return the value of the cover subject entry flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover subject entry flag synchronization consideration: none
 int get_cover_subject_flag()
          method description: this method will return the value of the cover subject flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover subject flag synchronization consideration: none
 int get_cover_title_flag()
          method description: this method will return the value of the cover title flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover title flag synchronization consideration: none
 int get_date_flag()
          method description: this method will return the value of the date flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the date flag synchronization consideration: none
 int get_exact_parser_flag(int parser_index)
          method description: this method will return the exact parser flag.
 java.lang.String get_exact_string(int parser_index)
          method description: this method will return the an element (string) from the exact string uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: the element of the exact string which locates at parser_index.
 int get_inexact_parser_flag(int parser_index)
          method description: this method will return the inexact parser flag.
 java.lang.String get_inexact_string(int parser_index)
          method description: this method will return the an element (string) from the inexact string uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: the element of the inexact string which locates at parser_index.
 int get_number_parsers()
          method description: this method will return the number of parsers uses the services of class(es): input parameter(s): none output parameter(s): none return value: the number of parsers synchronization consideration: none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS
define returned constants

NULL_DATA

public static final int NULL_DATA
data from coverage string pair is null

INVALID_PARSER_FLAG

public static final int INVALID_PARSER_FLAG
define return value for method get_inexact_parser_flag and get_exact_parser_flag
Constructor Detail

match

public match(edu.vt.marian.common.Debug debug)
method description: this constructor will create a match object with empty exact and inexact string. uses the services of class(es): Debug input parameter(s): debug -- used for debugging. output parameter(s): none return value: none synchronization consideration: none
Method Detail

get_number_parsers

public int get_number_parsers()
method description: this method will return the number of parsers uses the services of class(es): input parameter(s): none output parameter(s): none return value: the number of parsers synchronization consideration: none

add

public int add(coverage_string_pair csp)
method description: this method constructs exact or inexact string from the converage string pair. uses the services of class(es): input parameter(s): csp --- this coverage string pair output parameter(s): none return value: SUCCESS -- execute correctly NULL_DATA -- data from coverage string pair is null synchronization consideration: this is a synchronized method because writing to the exact and inexact string

get_inexact_string

public java.lang.String get_inexact_string(int parser_index)
method description: this method will return the an element (string) from the inexact string uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: the element of the inexact string which locates at parser_index. synchronization consideration: none

get_exact_string

public java.lang.String get_exact_string(int parser_index)
method description: this method will return the an element (string) from the exact string uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: the element of the exact string which locates at parser_index. synchronization consideration: none

get_inexact_parser_flag

public int get_inexact_parser_flag(int parser_index)
method description: this method will return the inexact parser flag. uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: correct- the inexact parser flag according to the parser index INVALID_PARSER_FLAG - parser_index is invalid synchronization consideration: none

get_exact_parser_flag

public int get_exact_parser_flag(int parser_index)
method description: this method will return the exact parser flag. uses the services of class(es): input parameter(s): parser_index --- the index of the parser output parameter(s): none return value: correct -- the exact parser flag according to the parser index INVALID_PARSER_FLAG -- parser_index is invalid synchronization consideration: none

get_cover_title_flag

public int get_cover_title_flag()
method description: this method will return the value of the cover title flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover title flag synchronization consideration: none

get_cover_subject_flag

public int get_cover_subject_flag()
method description: this method will return the value of the cover subject flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover subject flag synchronization consideration: none

get_cover_notes_flag

public int get_cover_notes_flag()
method description: this method will return the value of the cover notes flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover notes flag synchronization consideration: none

get_cover_personal_author_flag

public int get_cover_personal_author_flag()
method description: this method will return the value of the cover personal author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover personal author flag synchronization consideration: none

get_cover_corporate_author_flag

public int get_cover_corporate_author_flag()
method description: this method will return the value of the cover corporate author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover corporate author flag synchronization consideration: none

get_cover_conference_author_flag

public int get_cover_conference_author_flag()
method description: this method will return the value of the cover conference author flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover conference author flag synchronization consideration: none

get_cover_subject_entry_flag

public int get_cover_subject_entry_flag()
method description: this method will return the value of the cover subject entry flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the cover subject entry flag synchronization consideration: none

get_date_flag

public int get_date_flag()
method description: this method will return the value of the date flag uses the services of class(es): input parameter(s): none output parameter(s): none return value: the value of the date flag synchronization consideration: none