TC Java
2011 Version

gov.nih.nlm.nls.tc.Lib
Class Count2f

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Lib.Countf
      extended by gov.nih.nlm.nls.tc.Lib.Count2f

public class Count2f
extends Countf

This class provides count object with 2 scores in float format.

History:

Version:
V-2011
Author:
NLM Lexical Systems Group

Field Summary
 
Fields inherited from class gov.nih.nlm.nls.tc.Lib.Countf
BY_COUNT1, BY_COUNT2, name_
 
Constructor Summary
Count2f()
          Create a Count2f object (default).
Count2f(float count1, float count2)
          Create a Count2f object by specifying two scores.
Count2f(java.lang.String name)
          Create a Count2f object by specifying the name.
Count2f(java.lang.String name, float count1, float count2)
          Create a Count2f object by specifying the name and two scores.
 
Method Summary
 float GetCount(int index)
          Get the count of the Count2f object by specifying index.
 float GetCount1()
          Get the count 1 of the Count2f object.
 float GetCount2()
          Get the count 2 of the Count2f object.
 void SetCount1(float count)
          Set the count1 of the Count2f object.
 void SetCount2(float count)
          Set the count2 of the Count2f object.
 
Methods inherited from class gov.nih.nlm.nls.tc.Lib.Countf
GetName, SetName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Count2f

public Count2f()
Create a Count2f object (default).


Count2f

public Count2f(java.lang.String name)
Create a Count2f object by specifying the name.

Parameters:
name - name of the Count2f object

Count2f

public Count2f(float count1,
               float count2)
Create a Count2f object by specifying two scores.

Parameters:
count1 - count 1 of the Count2f object
count2 - count 2 of the Count2f object

Count2f

public Count2f(java.lang.String name,
               float count1,
               float count2)
Create a Count2f object by specifying the name and two scores.

Parameters:
name - name of the Count2f object
count1 - count 1 of the Count2f object
count2 - count 2 of the Count2f object
Method Detail

SetCount1

public void SetCount1(float count)
Set the count1 of the Count2f object.

Parameters:
count - count 1 of the Count2f object

SetCount2

public void SetCount2(float count)
Set the count2 of the Count2f object.

Parameters:
count - count 2 of the Count2f object

GetCount1

public float GetCount1()
Get the count 1 of the Count2f object.

Returns:
count 1 of the Count2f object

GetCount2

public float GetCount2()
Get the count 2 of the Count2f object.

Returns:
count 2 of the Count2f object

GetCount

public float GetCount(int index)
Get the count of the Count2f object by specifying index.

Overrides:
GetCount in class Countf
Returns:
specified count of the Count2f object

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine