chemaxon.sss.search
Class SearchHit

java.lang.Object
  extended by chemaxon.sss.search.SearchHit

public class SearchHit
extends java.lang.Object

Search hit object. Provides different views of the hit (single hit, group hit).

Since:
JChem 5.4, 04/18/2010
Author:
Nora Mate

Constructor Summary
SearchHit(int[] singleHit)
          Constructor: creates a single (1-dimensional) hit object.
SearchHit(int[][] groupHit)
          Constructor: creates a group (2-dimensional) hit object.
SearchHit(int[] singleHit, int[][] groupHit)
          Constructor: creates a hit object with separate single and group hit view.
 
Method Summary
 int[][] getGroupHit()
          Returns the group hit view.
 int[] getSingleHit()
          Returns the single hit view.
 void setGroupHit(int[][] groupHit)
          Sets the group hit.
 void setSingleHit(int[] singleHit)
          Sets the single hit.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchHit

public SearchHit(int[] singleHit)
Constructor: creates a single (1-dimensional) hit object.

Parameters:
singleHit - the 1-dim hit array

SearchHit

public SearchHit(int[][] groupHit)
Constructor: creates a group (2-dimensional) hit object.

Parameters:
groupHit - the 2-dim hit glove array

SearchHit

public SearchHit(int[] singleHit,
                 int[][] groupHit)
Constructor: creates a hit object with separate single and group hit view.

Parameters:
singleHit - the 1-dim hit array
groupHit - the 2-dim hit glove array
Method Detail

setSingleHit

public void setSingleHit(int[] singleHit)
Sets the single hit.

Parameters:
singleHit - the 1-dim hit array

setGroupHit

public void setGroupHit(int[][] groupHit)
Sets the group hit.

Parameters:
groupHit - the 2-dim hit glove array

getSingleHit

public int[] getSingleHit()
Returns the single hit view. For interpretation of hit array elements, refer to the description in Search.findNext().

Returns:
the single hit view of the hit object

getGroupHit

public int[][] getGroupHit()
Returns the group hit view. For interpretation of hit array elements, refer to the description in Search.findNext().

Returns:
the group hit view of the hit object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object